Skip to content

Obscure commands, part 2

1 message · 2002-12-09 → 2002-12-09 · Yahoo Group era · View archive on archive.org

Participants: ekrampitzjr

Preserved from the Timex/Sinclair 2068 Yahoo Group (2001–2019), which is no longer online. Text reproduced from the archive.org archive; email addresses masked.

Messages

1. Obscure commands, part 2

ekrampitzjr · Mon, 09 Dec 2002 17:06

2.  INPUT #, INPUT AT, INPUT LINE b$

INPUT #0 inputs at the bottom portion of the screen at line 22.  
INPUT #1 inputs at line 23 and is the same as normal INPUT.

INPUT #2 and INPUT #3 give error report J (invalid input/output 
device).  INPUT #4 and up give error report O (invalid stream).  
These were probably meant for future peripherals.

INPUT AT x,y behaves like "PRINT #1; AT x, y" except for inputting 
instead of printing.  To input on the "top" (note quotes) part of the 
screen requires a statement such as "INPUT AT 22,0;AT x,y; . . ."  
This involves moving the bottom portion of the screen to the top.  
Line 0 remains at the top.

INPUT LINE b$ deletes the quotation marks that usually automatically 
appear when inputting a string variable, so that only the L cursor 
appears, not "L".  You can then use quotation marks within a string 
without having to double them--that is, keying "" to get ".  But the 
keyword STOP is read as a string in this mode, whereas in normal 
input mode you could delete the surrounding quotation marks and key 
the keyword STOP to stop the program.

Strings can generally be printed with the normal INPUT statement and 
these commands.  Example: INPUT "How much money do you wish to bet?";m

Indexed under

BASIC programming