about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-23 11:48:28 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-23 11:48:28 -0700
commit8f060500abd2a6581b0b14a531c1a131b5babd85 (patch)
tree9eaae0ebb2beebb8a85bd3d54878396919158023
parentc6c19a27befd261ec3b205bdcbcf70f7047953e8 (diff)
downloadmu-8f060500abd2a6581b0b14a531c1a131b5babd85.tar.gz
1627 - new plan for backspace
First, undo our existing hacky pseudo-support.

Some repl tests currently breaking.
-rw-r--r--075scenario_console.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/075scenario_console.cc b/075scenario_console.cc
index 2dc730af..214b7621 100644
--- a/075scenario_console.cc
+++ b/075scenario_console.cc
@@ -69,8 +69,7 @@ case ASSUME_CONSOLE: {
       Current_routine->alloc += size_of_event();
     }
     else if (curr.name == "press") {
-      // todo: use 'keycode' tag to distinguish left-arrow from unicode U+ffeb, etc.
-      Memory[Current_routine->alloc] = /*tag for 'text' variant of 'event' exclusive-container*/0;
+      Memory[Current_routine->alloc] = /*tag for 'keycode' variant of 'event' exclusive-container*/1;
       Memory[Current_routine->alloc+1] = to_integer(curr.ingredients.at(0).name);
 //?       cerr << "AA press: " << Memory[Current_routine->alloc+1] << '\n'; //? 3
       Current_routine->alloc += size_of_event();
@@ -183,7 +182,7 @@ scenario events-in-scenario [
     14 <- 65513  # mouse click
     15 <- 0  # row
     16 <- 1  # column
-    17 <- 0  # 'text' (todo: make this 'keycode')
+    17 <- 1  # 'keycode'
     18 <- 65515  # up arrow
     19 <- 0  # unused
     20 <- 0  # unused