=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- src/usr.bin/tmux/tty.c 2009/08/12 09:41:59 1.24 +++ src/usr.bin/tmux/tty.c 2009/08/14 08:53:52 1.25 @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.24 2009/08/12 09:41:59 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.25 2009/08/14 08:53:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -134,6 +134,9 @@ tty_putcode(tty, TTYC_SMCUP); + tty_putcode(tty, TTYC_SGR0); + memcpy(&tty->cell, &grid_default_cell, sizeof tty->cell); + tty_putcode(tty, TTYC_SMKX); tty_putcode(tty, TTYC_ENACS); tty_putcode(tty, TTYC_CLEAR); @@ -141,8 +144,6 @@ tty_putcode(tty, TTYC_CNORM); if (tty_term_has(tty->term, TTYC_KMOUS)) tty_puts(tty, "\033[?1000l"); - - memcpy(&tty->cell, &grid_default_cell, sizeof tty->cell); tty->cx = UINT_MAX; tty->cy = UINT_MAX;