about summary refs log tree commit diff stats
path: root/apps/ex10
Commit message (Expand)AuthorAgeFilesLines
* 5856Kartik Agaram2020-01-011-0/+0
/cpp/screen.mu?h=main&id=a63ebc9282f1e091aac3e0c8fb1ef9eee6a2faa6'>a63ebc92 ^
290fe117 ^
2d863b1b ^
5497090a ^
6a0f71b9 ^
a63ebc92 ^


6a0f71b9 ^
a63ebc92 ^

6a0f71b9 ^
a63ebc92 ^
6a0f71b9 ^
a63ebc92 ^
6a0f71b9 ^
a63ebc92 ^
6a0f71b9 ^
a63ebc92 ^
6a0f71b9 ^
290fe117 ^
a63ebc92 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27




                                                                            
             
              
                                                             
                                                                
                                  


                                                               
                                  

                                                               
                                  
                              
                                  
                               
                                  
                              
                                  
                            
                                  
               
 
# example program: managing the display using 'screen' objects
#
# The zero screen below means 'use the real screen'. Tests can also use fake
# screens.

recipe main [
  open-console
  print-character 0:literal/screen, 97:literal, 2:literal/red
  1:number/raw, 2:number/raw <- cursor-position 0:literal/screen
  wait-for-event 0:literal/console
  clear-screen 0:literal/screen
  move-cursor 0:literal/screen, 0:literal/row, 4:literal/column
  print-character 0:literal/screen, 98:literal
  wait-for-event 0:literal/console
  move-cursor 0:literal/screen, 0:literal/row, 0:literal/column
  clear-line 0:literal/screen
  wait-for-event 0:literal/console
  cursor-down 0:literal/screen
  wait-for-event 0:literal/console
  cursor-right 0:literal/screen
  wait-for-event 0:literal/console
  cursor-left 0:literal/screen
  wait-for-event 0:literal/console
  cursor-up 0:literal/screen
  wait-for-event 0:literal/console
  close-console
]