summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-14 17:37:40 +0100
committerwm4 <wm4@nowhere>2014-01-14 17:37:40 +0100
commitf3133e87042dbf53f3eb5d3f7605ba07ca175a9a (patch)
treec529f3db141183042a99d21bc57ac7b3f9c3d30c
parentda00282e3a4003a623e3ecb2bff8dda926ab9217 (diff)
downloadmpv-f3133e87042dbf53f3eb5d3f7605ba07ca175a9a.tar.bz2
mpv-f3133e87042dbf53f3eb5d3f7605ba07ca175a9a.tar.xz
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).
-rw-r--r--osdep/terminal-unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c
index 2991141cc5..19e2caf7b2 100644
--- a/osdep/terminal-unix.c
+++ b/osdep/terminal-unix.c
@@ -279,7 +279,7 @@ static int load_termcap(char *termtype){
tmp = tgetstr("ce", &buf_ptr);
if (tmp)
terminal_erase_to_end_of_line = tmp;
- tmp = tgetstr("ku", &buf_ptr);
+ tmp = tgetstr("up", &buf_ptr);
if (tmp)
terminal_cursor_up = tmp;