interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / omega / allen / tests / view.om

25 lines · 553 bytes Raw Blame History
1text Vtext "one two three\nfour\n\nfive"
2fn main to int
3codebeg 1
4put C 1 1
5put C 2 len Vtext
6put C 4 1
7for i ulong len Vtext
8put Code i get Vtext i
9end
10put C 3 ulong codecrc
11check rows 8 4096 901
12check eq get View 0 5 902
13check eq get Rowlen 0 8 903
14check eq get Rowlen 1 5 904
15check eq get Rowline 0 1 905
16check eq get Rowline 1 0 906
17check eq get Rowline 2 2 907
18check eq get Rowlen 3 0 908
19check eq scroll 100 2 3 909
20check eq scroll -1 2 2 910
21check eq scroll -99 2 0 911
22check not rows 0 4096 912
23check eq get View 0 5 913
24ret int get Fails 0
25end