compiler/src/test/newt/newttest.Mod
Norayr Chilingarian a93d9cb261 newt binding updated -- noch
Former-commit-id: 08668e2495
2015-02-21 14:23:26 +04:00

21 lines
436 B
Modula-2

MODULE newttest;
IMPORT newt, oocIntStr;
VAR i, j, k : newt.Int32;
str : ARRAY 32 OF CHAR;
BEGIN
i := newt.Init();
newt.Cls();
str := "hello world!";
newt.DrawRootText(5, 7, str);
newt.GetScreenSize(i, j);
oocIntStr.IntToStr(i, str);
newt.DrawRootText(5, 9, str);
str := "x";
newt.DrawRootText(7, 9, str);
oocIntStr.IntToStr(j, str);
newt.DrawRootText(9, 9, str);
newt.WaitForKey();
newt.Delay(30);
i := newt.Finished();
END newttest.