diff options
| -rw-r--r-- | sys/src/9/pc/cga.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/src/9/pc/cga.c b/sys/src/9/pc/cga.c index 528db05f4..824cd62eb 100644 --- a/sys/src/9/pc/cga.c +++ b/sys/src/9/pc/cga.c @@ -199,6 +199,8 @@ cgatokmesg(void) void screeninit(void) { + static int once; + cgapos = cgaregr(0x0E)<<8; cgapos |= cgaregr(0x0F); cgapos *= 2; @@ -208,8 +210,10 @@ screeninit(void) movecursor(); } - cgatokmesg(); + if(once == 0){ + once = 1; + cgatokmesg(); + } screenputs = cgascreenputs; } - |
