Some of you may have realized that the
default console cursor will be invisible when
hiding behind a ‘_’ character.
This little patch will make the cursor a bit thicker, so
the cursor visibility will improve.
–
kabe
Index: devc/con/tto.c
diff -u devc/con/tto.c:1.1.1.1 devc-con-jp/devc/con/tto.c:1.2
— devc/con/tto.c:1.1.1.1 Thu Dec 19 03:31:41 2002
+++ devc/con/tto.c Tue Feb 18 05:37:50 2003
@@ -1891,7 +1891,7 @@
unsigned port;
unsigned ctype[] = {
0x0f00, /* off */
-
0x0d0e, /* underline */
-
0x0c0f, /* makit wider 0x0d0e, /* underline */
0x000e /* block */
};
@@ -2031,6 +2031,7 @@
return;
}
+/* initialize the passed in stp, for each screen */
void
init_state(struct state_entry *stp, struct winsize *winsize) {
static int first = 1;
@@ -2056,7 +2057,6 @@
stp->esc_flag = STATE_NONE;
if(first) {
-
first = 0;
stp->cursor_x = *(unsigned char *)(bios + 0x50);
stp->cursor_y = *(unsigned char *)(bios + 0x51);
stp->screen = screen;
@@ -2076,6 +2076,12 @@
}
reset_term(stp);
- if (first) {
-
con_set_curs_pos( stp->cursor_y, stp->cursor_x, 0, stp );
-
con_set_curs_type( stp->cursor_type & 0x07, 0 );
-
}
- if (first) first=0;
}