Skip to content

Commit

Permalink
Enable keyboard_transmit-mode for arrow keys to work with xterm
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenz authored and mptre committed Jul 17, 2017
1 parent 0c3369b commit 2d57016
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pick.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ tty_init(void)
if (use_alternate_screen)
tty_putp(enter_ca_mode, 0);

tty_putp(keypad_xmit, 0);

signal(SIGINT, handle_sigint);
}

Expand All @@ -676,6 +678,7 @@ tty_restore(void)
tcsetattr(fileno(tty_in), TCSANOW, &original_attributes);
fclose(tty_in);

tty_putp(keypad_local, 0);
tty_putp(carriage_return, 1); /* move cursor to first column */
tty_putp(clr_eos, 1);

Expand Down

0 comments on commit 2d57016

Please sign in to comment.