diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-10-06 12:01:10 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-10-06 12:01:10 +0100 |
commit | 537441742836b4366c47ad60c19e04463bfd02e3 (patch) | |
tree | 780fe987aa897c760d791d2441f662a3c58a1fd4 /tty.c | |
parent | c8802c776a4ca2775278061f9c537886e9158cae (diff) | |
parent | 5359b766195528b9a0763c7f5e4ce5f2797a9b09 (diff) | |
download | rtmux-537441742836b4366c47ad60c19e04463bfd02e3.tar.gz rtmux-537441742836b4366c47ad60c19e04463bfd02e3.tar.bz2 rtmux-537441742836b4366c47ad60c19e04463bfd02e3.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'tty.c')
-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; |