about summary refs log tree commit diff stats
path: root/ex8.mu
diff options
context:
space:
mode:
Diffstat (limited to 'ex8.mu')
0 files changed, 0 insertions, 0 deletions
x27; to print integers' href='/akkartik/mu/commit/screen.mu?h=main&id=bbe0801ab1e0b0859c3529ed33fde40b139addd6'>bbe0801a ^
bc643692 ^



455fbac6 ^

bc643692 ^











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
28
29




                                                                            
             
              

                                       



                                                        

                              











                                       
               
 
# 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
  10:character <- copy 97/a
  print 0/screen, 10:character/a, 2/red
  1:number/raw, 2:number/raw <- cursor-position 0/screen
  wait-for-event 0/console
  clear-screen 0/screen
  move-cursor 0/screen, 0/row, 4/column
  10:character <- copy 98/b
  print 0/screen, 10:character
  wait-for-event 0/console
  move-cursor 0/screen, 0/row, 0/column
  clear-line 0/screen
  wait-for-event 0/console
  cursor-down 0/screen
  wait-for-event 0/console
  cursor-right 0/screen
  wait-for-event 0/console
  cursor-left 0/screen
  wait-for-event 0/console
  cursor-up 0/screen
  wait-for-event 0/console
  close-console
]