Category : Miscellaneous Language Source Code
Archive   : T_INT.ZIP
Filename : HELLO.T
% "hello" says hello
%
include colors.t
program
var key : int
scroll( 0, 24, 0, 79, light_gray, black, 0 )
cursor( 0 )
window( 9, 14, 31, 48, yellow, blue )
locate( 11, 37 )
putstr( "Hello", yellow, blue )
locate( 12, 37 )
putstr( "world!", yellow, blue )
key := getkey
locate( 0, 0 )
cursor( 1 )
scroll( 0, 24, 0, 79, light_gray, black, 0 )
end program
procedure window( tp, bt, lt, rt, fg, bg : int )
var i : int
assert tp >= 0
assert bt <= 24
assert lt >= 0
assert rt <= 79
scroll( tp, bt, lt, rt, yellow, blue, 0 )
locate( tp, lt+1 )
putch( chr( 201 ), yellow, blue )
locate( tp, rt-1 )
putch( chr( 187 ), yellow, blue )
locate( bt, lt+1 )
putch( chr( 200 ), yellow, blue )
locate( bt, rt-1 )
putch( chr( 188 ), yellow, blue )
for i := lt+2...rt-2 do
locate( tp, i )
putch( chr( 205 ), yellow, blue )
locate( bt, i )
putch( chr( 205 ), yellow, blue )
end for
for i := tp+1...bt-1 do
locate( i, lt+1 )
putch( chr( 186 ), yellow, blue )
locate( i, rt-1 )
putch( chr( 186 ), yellow, blue )
end for
end window
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/