1 # example program: managing the display
 2 
 3 def main [
 4   open-console
 5   print-character-to-display 97, 1/red, 2/green
 6   1:num/raw, 2:num/raw <- cursor-position-on-display
 7   wait-for-some-interaction
 8   clear-display
 9   move-cursor-on-display 0, 4
10   print-character-to-display 98
11   wait-for-some-interaction
12   move-cursor-on-display 0, 0
13   clear-line-on-display
14   wait-for-some-interaction
15   move-cursor-down-on-display
16   wait-for-some-interaction
17   move-cursor-right-on-display
18   wait-for-some-interaction
19   move-cursor-left-on-display
20   wait-for-some-interaction
21   move-cursor-up-on-display
22   wait-for-some-interaction
23   close-console
24 ]