summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-12 08:05:24 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-12 08:05:24 +0000
commitea4b92c704834d0e4e715c07f782f619e1366456 (patch)
treee770f8df7d7ec09c976e3c19d70db96cd55858d3 /usr.bin/tmux/tty.c
parent7275216db0bcd727317267142a26d41a0daf540a (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/tty.c')
-rw-r--r--usr.bin/tmux/tty.c5
1 files changed, 3 insertions, 2 deletions
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;
}