about summary refs log blame commit diff stats
path: root/console.mu
blob: 4073fb9ed7ab8f29e545d37b8700ec672d2b1c30 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12




                                                                 
              





                                                          
               
 
# 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
  {
    _, found?:boolean <- check-for-interaction
    break-if found?:boolean
    print-character-to-display 97:literal, 7:literal/white
    loop
  }
  close-console
]