=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.404 retrieving revision 1.405 diff -c -r1.404 -r1.405 *** src/usr.bin/tmux/tty.c 2021/10/05 12:46:02 1.404 --- src/usr.bin/tmux/tty.c 2021/10/06 10:33:12 1.405 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.404 2021/10/05 12:46:02 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.405 2021/10/06 10:33:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 692,701 **** 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 (mode & (MODE_CURSOR_BLINKING|MODE_CURSOR_VERY_VISIBLE)) tty_putcode(tty, TTYC_CVVIS); break; --- 692,703 ---- tty_putcode(tty, TTYC_CNORM); switch (cstyle) { case SCREEN_CURSOR_DEFAULT: ! 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;