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




                                                                  
                                 


                                                               
                                 

                                                               
                                 
                              
                                 
                               
                                 
                              
                                 
                            
                                 

                   
# example of recipes for working with screen objects
recipe main [
  switch-to-display
  print-character 0:literal/screen, 97:literal
  1:integer/raw, 2:integer/raw <- cursor-position 0:literal/screen
  wait-for-key 0:literal/keyboard
  clear-screen 0:literal/screen
  move-cursor 0:literal/screen, 0:literal/row, 4:literal/column
  print-character 0:literal/screen, 98:literal
  wait-for-key 0:literal/keyboard
  move-cursor 0:literal/screen, 0:literal/row, 0:literal/column
  clear-line 0:literal/screen
  wait-for-key 0:literal/keyboard
  cursor-down 0:literal/screen
  wait-for-key 0:literal/keyboard
  cursor-right 0:literal/screen
  wait-for-key 0:literal/keyboard
  cursor-left 0:literal/screen
  wait-for-key 0:literal/keyboard
  cursor-up 0:literal/screen
  wait-for-key 0:literal/keyboard
  return-to-console
]