coco3: video: make text cursor a inverted block.
authorBrett Gordon <beretta42@gmail.com>
Thu, 29 Oct 2015 18:44:08 +0000 (14:44 -0400)
committerBrett Gordon <beretta42@gmail.com>
Thu, 29 Oct 2015 18:44:08 +0000 (14:44 -0400)
Kernel/platform-coco3/video.c

index 1072ec0..20b8853 100644 (file)
@@ -44,9 +44,9 @@ void cursor_off(void)
 void cursor_on(int8_t y, int8_t x)
 {
        map_for_video();
-       curpty->csave = *char_addr(y, x);
-       curpty->cpos = char_addr(y, x);
-       *curpty->cpos = VT_MAP_CHAR('_');
+       curpty->csave = *(char_addr(y, x)+1);
+       curpty->cpos = char_addr(y, x)+1;
+               *curpty->cpos = *curpty->cpos ^ 0x3f;
        map_for_kernel();
 }