Skip to content

Commit

Permalink
Disable IEXTEN to solve Ctrl-V conflict
Browse files Browse the repository at this point in the history
While here, sort local mode flags.
  • Loading branch information
mptre committed Jul 18, 2017
1 parent 99152e2 commit 8a70fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pick.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ tty_init(void)
tcgetattr(fileno(tty_in), &original_attributes);
new_attributes = original_attributes;
new_attributes.c_iflag |= ICRNL; /* map CR to NL */
new_attributes.c_lflag &= ~(ICANON | ECHO);
new_attributes.c_lflag &= ~(ECHO | ICANON | IEXTEN);
tcsetattr(fileno(tty_in), TCSANOW, &new_attributes);

if ((tty_out = fopen("/dev/tty", "w")) == NULL)
Expand Down

0 comments on commit 8a70fe7

Please sign in to comment.