https://github.com/akkartik/mu1/blob/master/screen.mu
 1 # example program: managing the display using 'screen' objects
 2 
 3 # The zero screen below means 'use the real screen'. Tests can also use fake
 4 # screens.
 5 def main [
 6   open-console
 7   clear-screen null/screen  # non-scrolling app
 8   10:char <- copy 97/a
 9   print null/screen, 10:char/a, 1/red, 2/green
10   1:num/raw, 2:num/raw <- cursor-position null/screen
11   wait-for-event null/console
12   clear-screen null/screen
13   move-cursor null/screen, 0/row, 4/column
14   10:char <- copy 98/b
15   print null/screen, 10:char
16   wait-for-event null/console
17   move-cursor null/screen, 0/row, 0/column
18   clear-line null/screen
19   wait-for-event null/console
20   cursor-down null/screen
21   wait-for-event null/console
22   cursor-right null/screen
23   wait-for-event null/console
24   cursor-left null/screen
25   wait-for-event null/console
26   cursor-up null/screen
27   wait-for-event null/console
28   close-console
29 ]