From ddbd11fedc879a55fbc3fc42c78d21311b8a2fd5 Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Thu, 29 Oct 2015 14:11:28 -0400 Subject: [PATCH] CoCo3: give each vt it's own color attributes, turn on color text --- Kernel/platform-coco3/devtty.c | 14 ++++++++------ Kernel/platform-coco3/devtty.h | 1 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Kernel/platform-coco3/devtty.c b/Kernel/platform-coco3/devtty.c index fda56ecb..a85093ec 100644 --- a/Kernel/platform-coco3/devtty.c +++ b/Kernel/platform-coco3/devtty.c @@ -137,10 +137,10 @@ static struct display fmodes[] = { }; static struct mode_s mode[5] = { - { 0x04, 0x74, 80, 25, 79, 24, &(fmodes[0]) }, - { 0x04, 0x6c, 40, 25, 39, 24, &(fmodes[1]) }, - { 0x04, 0x70, 64, 25, 63, 24, &(fmodes[2]) }, - { 0x04, 0x68, 32, 25, 31, 24, &(fmodes[3]) }, + { 0x04, 0x75, 80, 25, 79, 24, &(fmodes[0]) }, + { 0x04, 0x6d, 40, 25, 39, 24, &(fmodes[1]) }, + { 0x04, 0x71, 64, 25, 63, 24, &(fmodes[2]) }, + { 0x04, 0x69, 32, 25, 31, 24, &(fmodes[3]) }, { 0x80, 0x08, 40, 21, 39, 20, &(fmodes[4]) }, }; @@ -158,7 +158,8 @@ static struct pty ptytab[] VSECTD = { 25, 79, 24, - &fmodes[0] + &fmodes[0], + 050 }, { (unsigned char *) 0x3000, @@ -172,7 +173,8 @@ static struct pty ptytab[] VSECTD = { 25, 39, 24, - &fmodes[1] + &fmodes[1], + 0x01 } }; diff --git a/Kernel/platform-coco3/devtty.h b/Kernel/platform-coco3/devtty.h index b76cea49..b3ad58ad 100644 --- a/Kernel/platform-coco3/devtty.h +++ b/Kernel/platform-coco3/devtty.h @@ -17,6 +17,7 @@ struct pty { unsigned char right; /* right most coord */ unsigned char bottom; /* bottom most coord */ struct display *fdisp; /* ptr to struct for ioctl */ + uint8_t attr; /* attribute byte to apply */ }; extern struct pty *curpty; -- 2.34.1