Skip to content

Commit

Permalink
Merge pull request #1135 from six809/coco3-vt-init
Browse files Browse the repository at this point in the history
coco3: initialise both VTs
  • Loading branch information
EtchedPixels authored Jan 8, 2025
2 parents 3f76948 + f62d1e7 commit a73e1de
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Kernel/platform/platform-coco3/devtty.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ void set_defmode(char *s)
__attribute__((section(".discard")))
void devtty_init()
{
int i;
/* set default keyboard delay/repeat rates */
keyrepeat.first = REPEAT_FIRST * (TICKSPERSEC / 10);
keyrepeat.continual = REPEAT_CONTINUAL * (TICKSPERSEC / 10);
Expand All @@ -546,6 +547,12 @@ void devtty_init()
memcpy((uint8_t *) 0xffb0, rgb_def_pal, 16);
else /* These are bit dubious see : https://exstructus.com/tags/coco/australia-colour-palette/ */
memcpy((uint8_t *) 0xffb0, cmp_def_pal, 16);
vt_load(&curtty->vt);
clear_lines(0, theight);
for (i = 1; i >= 0; --i) {
curtty = &ttytab[i];
vt_load(&curtty->vt);
twidth = curtty->width << 1; /* One word per symbol */
vt_cursor_off();
clear_lines(0, curtty->height);
vt_cursor_on();
}
}

0 comments on commit a73e1de

Please sign in to comment.