diff options
author | nicm <nicm> | 2021-10-06 10:33:12 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-10-06 10:33:12 +0000 |
commit | 5359b766195528b9a0763c7f5e4ce5f2797a9b09 (patch) | |
tree | 6aa7c6874e0ba0b233a7795c6a7d9b381174dbe1 | |
parent | da05d0582400d25f44b84c014b446e6685497761 (diff) | |
download | rtmux-5359b766195528b9a0763c7f5e4ce5f2797a9b09.tar.gz rtmux-5359b766195528b9a0763c7f5e4ce5f2797a9b09.tar.bz2 rtmux-5359b766195528b9a0763c7f5e4ce5f2797a9b09.zip |
Do not reset cursor to default if it has never been changed, fixes
problem reported by naddy.
-rw-r--r-- | tty.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -692,10 +692,12 @@ tty_update_cursor(struct tty *tty, int mode, int changed, struct screen *s) tty_putcode(tty, TTYC_CNORM); switch (cstyle) { case SCREEN_CURSOR_DEFAULT: - if (tty_term_has(tty->term, TTYC_SE)) - tty_putcode(tty, TTYC_SE); - else - tty_putcode1(tty, TTYC_SS, 0); + if (tty->cstyle != SCREEN_CURSOR_DEFAULT) { + if (tty_term_has(tty->term, TTYC_SE)) + tty_putcode(tty, TTYC_SE); + else + tty_putcode1(tty, TTYC_SS, 0); + } if (mode & (MODE_CURSOR_BLINKING|MODE_CURSOR_VERY_VISIBLE)) tty_putcode(tty, TTYC_CVVIS); break; |