about summary refs log tree commit diff stats
path: root/html/linux/survey_baremetal.subx.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-29 07:55:45 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-29 07:55:45 -0700
commitc9382ee2c95e23a9d077d62425f7e9cf6549b6b6 (patch)
tree65e320a5f0c2c3034d9ddb2e1a051065a284a838 /html/linux/survey_baremetal.subx.html
parent295e50f0257fd8d5102ac2077a9431723ba68f58 (diff)
downloadmu-c9382ee2c95e23a9d077d62425f7e9cf6549b6b6.tar.gz
.
Diffstat (limited to 'html/linux/survey_baremetal.subx.html')
0 files changed, 0 insertions, 0 deletions
ref='/akkartik/mu/blame/console.mu?h=main&id=aa0888459fc2ca41b0ad6bef5bfa72223ca33945'>^
6a0f71b9 ^

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



                                                                 
          
             
              
   
                                                    
                   
                                          

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

def main [
  local-scope
  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
]