about summary refs log tree commit diff stats
path: root/chessboard.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-21 23:53:17 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-21 23:53:17 -0700
commit290fe117c444399495a83266d602e2f4fc3fc099 (patch)
tree2fed3d6cd61048d2a3043be94cff7f9985719f3b /chessboard.mu
parent6a0f71b9f89df0940a342cd2c91d246cecc18bdf (diff)
downloadmu-290fe117c444399495a83266d602e2f4fc3fc099.tar.gz
1618
Diffstat (limited to 'chessboard.mu')
-rw-r--r--chessboard.mu10
1 files changed, 5 insertions, 5 deletions
diff --git a/chessboard.mu b/chessboard.mu
index 8efe11e7..c5f7ed4f 100644
--- a/chessboard.mu
+++ b/chessboard.mu
@@ -3,7 +3,7 @@
 
 # recipes are mu's names for functions
 recipe main [
-  switch-to-display  # take control of screen and keyboard
+  open-console  # take control of screen, keyboard and mouse
 
   # The chessboard recipe takes keyboard and screen objects as 'ingredients'.
   #
@@ -15,11 +15,11 @@ recipe main [
   # results. Here we clearly modify both keyboard and screen, so we return
   # both.
   #
-  # Here the keyboard and screen are both 0, which usually indicates real
+  # Here the console and screen are both 0, which usually indicates real
   # hardware rather than a fake for testing as you'll see below.
-  0:literal/real-screen, 0:literal/real-keyboard <- chessboard 0:literal/real-screen, 0:literal/real-keyboard
+  0:literal/screen, 0:literal/console <- chessboard 0:literal/screen, 0:literal/console
 
-  return-to-console  # cleanup screen and keyboard
+  close-console  # cleanup screen, keyboard and mouse
 ]
 
 ## But enough about mu. Here's what it looks like to run the chessboard program.
@@ -281,7 +281,7 @@ recipe read-move [
   from-file:number, quit?:boolean, error?:boolean <- read-file stdin:address:channel, screen:address
   reply-if quit?:boolean, 0:literal/dummy, quit?:boolean, error?:boolean
   reply-if error?:boolean, 0:literal/dummy, quit?:boolean, error?:boolean
-#?   return-to-console #? 1
+#?   close-console #? 1
   # construct the move object
   result:address:move <- new move:type
   x:address:number <- get-address result:address:move/deref, from-file:offset