From: Alan Cox Date: Thu, 19 Apr 2018 22:45:00 +0000 (+0100) Subject: vt: vtattr_notify missing cases X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=db67dae7d3f92acf7e3e11dabd38da76a4e826d6;p=FUZIX.git vt: vtattr_notify missing cases Set sensible colours on startup and notify the platform code so it can set up the correct properties. Also do a notify on a vt switch as the attributes are per vt. --- diff --git a/Kernel/vt.c b/Kernel/vt.c index 90d3dcab..d9c69167 100644 --- a/Kernel/vt.c +++ b/Kernel/vt.c @@ -75,7 +75,7 @@ static uint8_t vtmode; uint8_t vtattr; -uint8_t vtink; +uint8_t vtink = 7; uint8_t vtpaper; static signed char cursorx; static signed char cursory = VT_INITIAL_LINE; @@ -343,6 +343,7 @@ int vt_inproc(uint8_t minor, unsigned char c) void vtinit(void) { vtmode = 0; + vtattr_notify(); clear_lines(0, VT_BOTTOM + 1); cursor_on(0, 0); } @@ -365,6 +366,7 @@ void vt_load(struct vt_switch *vt) cursorx = vt->cursorx; cursory = vt->cursory; ncursory = vt->ncursory; + vtattr_notify(); } #endif