diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-12 08:05:24 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-12 08:05:24 +0000 |
commit | ea4b92c704834d0e4e715c07f782f619e1366456 (patch) | |
tree | e770f8df7d7ec09c976e3c19d70db96cd55858d3 /usr.bin/tmux | |
parent | 7275216db0bcd727317267142a26d41a0daf540a (diff) |
Emulate the ri (reverse index) capability: this allows tmux to at least start
on Sun consoles (TERM=sun or sun-color), even if there appear to still be
problems on some boxes (my Blade 100 is fine but edd's Blade 1000 shows odd
screen corruption).
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/tty-term.c | 6 | ||||
-rw-r--r-- | usr.bin/tmux/tty.c | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/tmux/tty-term.c b/usr.bin/tmux/tty-term.c index b2855f8ce27..e99c46c8551 100644 --- a/usr.bin/tmux/tty-term.c +++ b/usr.bin/tmux/tty-term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-term.c,v 1.13 2009/10/26 16:00:51 nicm Exp $ */ +/* $OpenBSD: tty-term.c,v 1.14 2009/11/12 08:05:23 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -378,10 +378,6 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause) xasprintf(cause, "terminal does not support clear"); goto error; } - if (!tty_term_has(term, TTYC_RI)) { - xasprintf(cause, "terminal does not support ri"); - goto error; - } if (!tty_term_has(term, TTYC_CUP)) { xasprintf(cause, "terminal does not support cup"); goto error; diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 96ff8efe0a9..8ef8bff1aad 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.69 2009/11/09 22:50:29 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.70 2009/11/12 08:05:23 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -711,7 +711,8 @@ tty_cmd_reverseindex(struct tty *tty, const struct tty_ctx *ctx) return; if (wp->xoff != 0 || screen_size_x(s) < tty->sx || - !tty_term_has(tty->term, TTYC_CSR)) { + !tty_term_has(tty->term, TTYC_CSR) || + !tty_term_has(tty->term, TTYC_RI)) { tty_redraw_region(tty, ctx); return; } |