Hi All
Have taken this code from an old BBC micro book and it deals with key inputs, can't seem to get it to do what I wish.
Anyone out there think they can see how its works, try fixing it.
rem Standard Setup Code
sync on : sync rate 0
set text font "arial" : set text size 14
global temp$ temp1$
do
cls
gosub _input
sync
loop
_input:
temp$=""
temp1$=""
repeat
if inkey$()<>"" and keypressed<>1
keypressed=1
`temp$=oldtemp$+inkey$()
temp$=entry$()
if right$(temp$,1)>="a" and right$(temp$,1)<="z"
temp$=upper$(temp$)
endif
if temp$=" " and temp$<="Z" and len(temp1$)<15
temp1$=temp1$+temp$
set cursor 20,20
cls
print ":";temp$
print ":";temp1$
sync
endif
if temp$=chr$(127) and len(temp1$)>0
temp$=left$(temp1$,len(temp1$)-1)
set cursor 20,20
print ":"; temp$
print ":";temp1$
sync
endif
keypressed=0
endif
`oldtemp$=temp$
cls
set cursor 20,20
print ":";temp$
sync
until returnkey()=1 and len(temp1$)>0
return
In Space No One can Hear You Scream! (When your comm Line is cut?)