Date: Sat, 11 Mar 2017 13:56:06 +0000 (UTC) From: Bruce Evans <bde@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315066 - head/sys/dev/syscons Message-ID: <201703111356.v2BDu6Z0073990@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bde Date: Sat Mar 11 13:56:06 2017 New Revision: 315066 URL: https://svnweb.freebsd.org/changeset/base/315066 Log: Fix the attribute for scteken_clear() (change it back from the user user default normal attribute to the current attribute). This change only fixes a logic error. scterm_clear() used to be used for terminal reset, but teken uses a general fill function for that, leaving scterm_clear() only used for initialization and mode change, when using the user default attribute is correct. It is not really a terminal function, but needs to sync its changes with the terminal layer. Syncing of the attribute is currently broken for terminal reset, but works for initialization and mode change. Modified: head/sys/dev/syscons/scterm-teken.c Modified: head/sys/dev/syscons/scterm-teken.c ============================================================================== --- head/sys/dev/syscons/scterm-teken.c Sat Mar 11 11:31:06 2017 (r315065) +++ head/sys/dev/syscons/scterm-teken.c Sat Mar 11 13:56:06 2017 (r315066) @@ -227,10 +227,13 @@ scteken_default_attr(scr_stat *scp, int static void scteken_clear(scr_stat *scp) { + teken_stat *ts = scp->ts; sc_move_cursor(scp, 0, 0); scteken_set_cursor(scp, 0, 0); - sc_vtb_clear(&scp->vtb, scp->sc->scr_map[0x20], SC_NORM_ATTR << 8); + sc_vtb_clear(&scp->vtb, scp->sc->scr_map[0x20], + scteken_te_to_sc_attr(teken_get_curattr(&ts->ts_teken)) + << 8); mark_all(scp); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703111356.v2BDu6Z0073990>