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

                                       
             
              
                                                                       
                                                          
                           


                                             
                           

                                             
                           
                             
                           
                              
                           
                             
                           
                           
                           

                      
 
# example program: managing the display

recipe main [
  open-console
  print-character-to-display 97:literal, 1:literal/red, 2:literal/green
  1:number/raw, 2:number/raw <- cursor-position-on-display
  wait-for-some-interaction
  clear-display
  move-cursor-on-display 0:literal, 4:literal
  print-character-to-display 98:literal
  wait-for-some-interaction
  move-cursor-on-display 0:literal, 0:literal
  clear-line-on-display
  wait-for-some-interaction
  move-cursor-down-on-display
  wait-for-some-interaction
  move-cursor-right-on-display
  wait-for-some-interaction
  move-cursor-left-on-display
  wait-for-some-interaction
  move-cursor-up-on-display
  wait-for-some-interaction
#?   $print [aaa] #? 1
  close-console
]