File: testchr.kbs

package info (click to toggle)
basic256 2.0.99.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,888 kB
  • sloc: cpp: 17,185; yacc: 4,025; lex: 1,466; java: 1,091; sh: 39; xml: 33; makefile: 20
file content (18 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# testchr.kbs - test readline, writeline, and eof
# 2008-08-29 jmr

for t = asc("a") to asc("z")
    print chr(t);
next t
print
for t = asc("A") to asc("Z")
    print chr(asc(chr(t)));
next t
print

print "press any key"
loop:
a = key
if a = 0 then goto loop
print "You Pressed " + chr(a) + " with value of " + string(a) + " = " + string(asc(chr(a)))
goto loop