aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-05 07:21:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-05 07:21:12 +0000
commit19cef741530aaf610c5f33f76a1f8eed79836d7d (patch)
tree1ac2b4db6e6f28453777d1893088568a03d47773
parentcsi: manually erase alt screen when switching to it (diff)
main: it's not the terminal emulators job to set LINES and COLUMNS
-rw-r--r--main.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/main.c b/main.c
index 9ac90b7d..11dc46d9 100644
--- a/main.c
+++ b/main.c
@@ -549,13 +549,6 @@ resize(struct context *c, int width, int height)
LOG_INFO("resize: %dx%d, grid: cols=%d, rows=%d",
c->width, c->height, c->term.cols, c->term.rows);
- /* Update environment variables */
- char cols_s[12], rows_s[12];
- sprintf(cols_s, "%d", c->term.cols);
- sprintf(rows_s, "%d", c->term.rows);
- setenv("COLUMNS", cols_s, 1);
- setenv("LINES", rows_s, 1);
-
/* Signal TIOCSWINSZ */
if (ioctl(c->term.ptmx, TIOCSWINSZ,
&(struct winsize){