diff options
-rw-r--r-- | tty-term.c | 4 | ||||
-rw-r--r-- | tty.c | 3 |
2 files changed, 2 insertions, 5 deletions
@@ -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; @@ -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; } |