about summary refs log tree commit diff stats
path: root/070display.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-25 09:25:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-25 09:25:49 -0700
commit48bb86278826a08e2550f2c49e695167fb137957 (patch)
tree7428588a5270d1c867706ec722d2103e4d4401bb /070display.cc
parentec3aa9e03f1c97e5dd904a448f3b73386a6a4e67 (diff)
downloadmu-48bb86278826a08e2550f2c49e695167fb137957.tar.gz
1655 - first attempt at smooth refresh: hide-cursor
But it doesn't work, because moving the cursor inside 'render' also
starts displaying it again.
Diffstat (limited to '070display.cc')
-rw-r--r--070display.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/070display.cc b/070display.cc
index 9cec82ca..db205d63 100644
--- a/070display.cc
+++ b/070display.cc
@@ -219,6 +219,26 @@ case DISPLAY_HEIGHT: {
   break;
 }
 
+:(before "End Primitive Recipe Declarations")
+HIDE_CURSOR_ON_DISPLAY,
+:(before "End Primitive Recipe Numbers")
+Recipe_number["hide-cursor-on-display"] = HIDE_CURSOR_ON_DISPLAY;
+:(before "End Primitive Recipe Implementations")
+case HIDE_CURSOR_ON_DISPLAY: {
+  tb_set_cursor(TB_HIDE_CURSOR, TB_HIDE_CURSOR);
+  break;
+}
+
+:(before "End Primitive Recipe Declarations")
+SHOW_CURSOR_ON_DISPLAY,
+:(before "End Primitive Recipe Numbers")
+Recipe_number["show-cursor-on-display"] = SHOW_CURSOR_ON_DISPLAY;
+:(before "End Primitive Recipe Implementations")
+case SHOW_CURSOR_ON_DISPLAY: {
+  tb_set_cursor(Display_row, Display_column);
+  break;
+}
+
 //:: Keyboard/mouse management
 
 :(before "End Primitive Recipe Declarations")