https://github.com/akkartik/mu1/blob/master/screen.mu
1
2
3
4
5 def main [
6 open-console
7 clear-screen null/screen
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 ]