diff --git a/src/sys/kernel/tty.c b/src/sys/kernel/tty.c index 47bcc15..a05f0fc 100644 --- a/src/sys/kernel/tty.c +++ b/src/sys/kernel/tty.c @@ -57,6 +57,13 @@ terms[i].tty_y = 0x0; /* Set up default Y position */ terms[i].tty_colour = 0x0A + i; /* Set up default tty text colour */ } + + /* Read tty0 current position (to migrate from kprintf). */ + outportByte(0x3D4, 0x0e); + terms[0].tty_y = inportByte(0x3D5); + outportByte(0x3D4, 0x0f); + terms[0].tty_x = inportByte(0x3D5); + /* Set up pointer for the foreground tty */ tty_foreground = &terms[0]; @@ -160,6 +167,9 @@ /*** $Log$ + Revision 1.7 2004/09/06 21:39:21 reddawg + Fixes: Changed the order in which tasks are deleted from the queues. Also fixed backspace to work in the virtual ttys.... + Revision 1.6 2004/08/09 12:58:05 reddawg let me know when you got the surce diff --git a/src/sys/sys/video.c b/src/sys/sys/video.c index 142fd5c..21f3279 100644 --- a/src/sys/sys/video.c +++ b/src/sys/sys/video.c @@ -61,6 +61,12 @@ void kprint(char *string) { + if (tty_foreground) + { + tty_print(string,tty_find(0)); + return; + } + unsigned int bufferOffset = 0x0, character = 0x0, i = 0x0; /* We Need To Get The Y Position */ @@ -119,6 +125,9 @@ /*** $Log$ + Revision 1.10 2004/09/06 21:39:21 reddawg + Fixes: Changed the order in which tasks are deleted from the queues. Also fixed backspace to work in the virtual ttys.... + Revision 1.9 2004/08/06 22:32:16 reddawg Ubix Works Again