about summary refs log tree commit diff stats
path: root/html/092persist.cc.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-29 12:10:22 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-29 12:10:22 -0800
commit81c87f08fa4fd9a27908b1d92c8aa897ad20cbb8 (patch)
treeb083537d5a5d7ca4b12970ec287ba52ff1edfaa4 /html/092persist.cc.html
parent691b529e53a608c0837599f2562897e01fda1888 (diff)
downloadmu-81c87f08fa4fd9a27908b1d92c8aa897ad20cbb8.tar.gz
2608 - improve errors when static dispatch fails
Diffstat (limited to 'html/092persist.cc.html')
0 files changed, 0 insertions, 0 deletions
reen.mu?h=main&id=08f4628e8b858120fe3547d8e5431d9abfe46bf8'>08f4628e ^
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
                                                              
 

                                                                            
          
              

                                  



                                                        

                         











                                       
               
 
# example program: managing the display using 'screen' objects

# The zero screen below means 'use the real screen'. Tests can also use fake
# screens.
def main [
  open-console
  10:char <- copy 97/a
  print 0/screen, 10:char/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:char <- copy 98/b
  print 0/screen, 10:char
  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
]