From 2bd39071d3e5add8e734d31566574f7dbf54ee4b Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Fri, 13 Nov 2009 16:57:21 +0000 Subject: Sync OpenBSD patchset 532: 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). --- tty.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index 15cc53b3..a5e1770b 100644 --- a/tty.c +++ b/tty.c @@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.173 2009-11-10 23:27:57 tcunha Exp $ */ +/* $Id: tty.c,v 1.174 2009-11-13 16:57:21 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -716,7 +716,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; } -- cgit