Skip to content

Commit

Permalink
Don't clear c_cflag when setting raw mode on our tty.
Browse files Browse the repository at this point in the history
This makes tcsetattr return EINVAL on some systems, and there
shouldn't be any flags in there we care about.
  • Loading branch information
nelhage committed Jan 23, 2011
1 parent 988d4d1 commit aef6251
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion reptyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ void setup_raw(struct termios *save) {
set = *save;
set.c_iflag = 0;
set.c_oflag = 0;
set.c_cflag = 0;
set.c_lflag = 0;
if (tcsetattr(0, TCSANOW, &set) < 0)
die("Unable to set terminal attributes: %m");
Expand Down

0 comments on commit aef6251

Please sign in to comment.