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.
This commit is contained in:
parent
ad530aa98b
commit
b8188f52eb
@ -227,10 +227,13 @@ scteken_default_attr(scr_stat *scp, int color, int rev_color)
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user