Skip to content
Permalink
Browse files

Unset COLUMNS and LINES to fix issues when running ion

  • Loading branch information...
jackpot51 committed Dec 14, 2017
1 parent ebc8e5c commit 4f5ab77aa8c65c418faf51e60aaf32a590fbc06d
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/main.rs
@@ -54,8 +54,10 @@ fn main() {
.stdin(Stdio::from_raw_fd(slave_stdin.as_raw_fd()))
.stdout(Stdio::from_raw_fd(slave_stdout.as_raw_fd()))
.stderr(Stdio::from_raw_fd(slave_stderr.as_raw_fd()))
.env("COLUMNS", format!("{}", columns))
.env("LINES", format!("{}", lines))
// Not setting COLUMNS and LINES fixes many applications that use it
// to quickly get the current terminal size instead of TIOCSWINSZ
.env("COLUMNS", "")
.env("LINES", "")
.env("TERM", "xterm-256color")
.env("TTY", tty_path)
.before_exec(|| {

0 comments on commit 4f5ab77

Please sign in to comment.
You can’t perform that action at this time.