File: testchr.kbs

package info (click to toggle)
basic256 0.9.6.69a-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,304 kB
  • sloc: cpp: 7,778; yacc: 926; lex: 575; sh: 21; makefile: 7
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