coco3: vt: more flesh-out of vtattr_notify().
authorBrett Gordon <beretta42@gmail.com>
Sun, 1 Nov 2015 16:22:07 +0000 (11:22 -0500)
committerBrett Gordon <beretta42@gmail.com>
Sun, 1 Nov 2015 16:41:08 +0000 (11:41 -0500)
Kernel/platform-coco3/devtty.c

index 9ec18ff..df7daef 100644 (file)
@@ -456,8 +456,7 @@ void platform_interrupt(void)
 
 void vtattr_notify(void)
 {
-       curpty->attr += 1;
-
+       curpty->attr = ((vtink&7)<<3) + (vtpaper&7);
 }
 
 int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr)