diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-05 07:21:12 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-05 07:21:12 +0000 |
| commit | 19cef741530aaf610c5f33f76a1f8eed79836d7d (patch) | |
| tree | 1ac2b4db6e6f28453777d1893088568a03d47773 | |
| parent | csi: 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.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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){ |
