23 lines
851 B
Diff
23 lines
851 B
Diff
--- a/render.c 2020-10-11 17:31:25.000000000 +0000
|
|
+++ b/render.c 2020-10-12 00:34:32.630000000 +0000
|
|
@@ -2174,7 +2174,7 @@
|
|
term->margins.left, term->margins.right, term->margins.top, term->margins.bottom);
|
|
|
|
/* Signal TIOCSWINSZ */
|
|
- if (term->ptmx >= 0 && ioctl(term->ptmx, TIOCSWINSZ,
|
|
+ if (term->ptmx >= 0 && ioctl(term->ptmx, (int) TIOCSWINSZ,
|
|
&(struct winsize){
|
|
.ws_row = term->rows,
|
|
.ws_col = term->cols,
|
|
--- a/terminal.c 2020-10-11 17:31:25.000000000 +0000
|
|
+++ b/terminal.c 2020-10-12 00:37:58.790000000 +0000
|
|
@@ -883,7 +883,7 @@
|
|
goto close_fds;
|
|
}
|
|
|
|
- if (ioctl(ptmx, TIOCSWINSZ,
|
|
+ if (ioctl(ptmx, (int) TIOCSWINSZ,
|
|
&(struct winsize){.ws_row = 24, .ws_col = 80}) < 0)
|
|
{
|
|
LOG_ERRNO("failed to set initial TIOCSWINSZ");
|