From 290fe117c444399495a83266d602e2f4fc3fc099 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 21 Jun 2015 23:53:17 -0700 Subject: 1618 --- chessboard.mu | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chessboard.mu') 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 -- cgit 1.4.1-2-gfad0 -tty/stats/tests/unittests/test_plugins_disco.h'>stats
path: root/tests/unittests/test_plugins_disco.h
blob: 4377e28eb59faffdab6e121b4e5e9746ab7b71f3 (plain) (tree)
1
2
3
4
5
6
7