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