0
basic256 programming question
Can I program so that I do not have to press "return" on my keyboard?
1 Answer
0
I looked up basic-256 in Google and found a free e-book that has the answer: "So you want to learn to program - basic-256". Chapter 12 has this code example of how to use the "key" function. See the link below, scroll down the page and click on Chapter 12 for the accompanying explanation:
1 # readkey.kbs
2 print "press a key - Q to quit"
3 do
4 k = key
5 if k <> 0 then
6 if k >=32 and k <= 127 then
7 print chr(k) + "=";
8 end if
9 print k
10 end if
11 until k = asc("Q")
12 end
Reference:
So You Want to Learn to Program â BASIC-256 (Third Edition) â The "So You Want To Learn" Project
http://syw2l.org/?page_id=407