lylek / vintage-basic

Vintage BASIC Interpreter
BSD 3-Clause "New" or "Revised" License
95 stars 23 forks source link

TAB count is not reset after INPUT statement #3

Open sorenroug opened 4 years ago

sorenroug commented 4 years ago

Description: A program displays some data in columns and then asks for information at the end of the line with an INPUT statement. The user submits the input by hitting RETURN. This sends the cursor back to column 1 on the screen, but the TAB count is not reset. Example:

10 REM TAB count is not reset after INPUT statement
20 REM Program asks for input at end of line of information
30 PRINT TAB(10);"TEN";TAB(20);"XX";TAB(30);30;TAB(40);"TYPE HERE:";TAB(60);
40 INPUT A$
50 GOTO 30

This issue is found in line 112 in the Defuse game in More BASIC Computer Games - See Atariarchives.org.

lylek commented 4 years ago

Good catch! I'll look into it.

lylek commented 3 years ago

I've fixed this in the master branch. Have not yet created a distribution.