From: Brett Gordon Date: Thu, 29 Oct 2015 18:44:08 +0000 (-0400) Subject: coco3: video: make text cursor a inverted block. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c130823db7447471183552a3ce3f6117041591c3;p=FUZIX.git coco3: video: make text cursor a inverted block. --- diff --git a/Kernel/platform-coco3/video.c b/Kernel/platform-coco3/video.c index 1072ec08..20b88534 100644 --- a/Kernel/platform-coco3/video.c +++ b/Kernel/platform-coco3/video.c @@ -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(); }