terminal-unix: fix terminfo/termcap name for cursor up

"ku" is for input, not output. This happened to work on urxvt, but broke
on xterm (and probably a dozen of other terminals).
This commit is contained in:
wm4 2014-01-14 17:37:40 +01:00
parent da00282e3a
commit f3133e8704
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ static int load_termcap(char *termtype){
tmp = tgetstr("ce", &buf_ptr); tmp = tgetstr("ce", &buf_ptr);
if (tmp) if (tmp)
terminal_erase_to_end_of_line = tmp; terminal_erase_to_end_of_line = tmp;
tmp = tgetstr("ku", &buf_ptr); tmp = tgetstr("up", &buf_ptr);
if (tmp) if (tmp)
terminal_cursor_up = tmp; terminal_cursor_up = tmp;