summary refs log tree commit diff stats
path: root/doc/rst.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/rst.txt')
0 files changed, 0 insertions, 0 deletions
rl + arrow keys' href='/akkartik/mu/commit/console.mu?h=main&id=4d6b5173e744173074e191976eb872349a661cd0'>4d6b5173 ^
ce87c19e ^
bc643692 ^
6a0f71b9 ^

290fe117 ^
4d6b5173 ^
6a0f71b9 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15




                                                                 
              
   
                                                    
                   
                                          

        
               
                      
 
# example program: reading events from keyboard or mouse
#
# Keeps printing 'a' until you press a key or click on the mouse.

recipe main [
  open-console
  {
    e:event, found?:boolean <- check-for-interaction
    break-if found?
    print-character-to-display 97, 7/white
    loop
  }
  close-console
  $print e, 10/newline
]