robhagemans / pcbasic

PC-BASIC - A free, cross-platform emulator for the GW-BASIC family of interpreters
http://www.pc-basic.org
Other
393 stars 48 forks source link

Edit prompt does not appear when a Syntax Error is trapped and the trap interrupted with Ctrl+Break #194

Closed robhagemans closed 2 years ago

robhagemans commented 2 years ago

Edit prompt does not appear when a Syntax Error is trapped and the trap interrupted with Ctrl+Break

Steps

  1. Run the program below
  2. Press Ctrl+Break

Program

1 ' Ctrl+Break during syntax error trap:
2 ' in GW-BASIC, the edit prompt is shown after the Ok prompt
3 ' e.g. press ctrl+break in the following program
10 ON ERROR GOTO 100
20 FG
30 END
100 A$=INKEY$: IF A$="" THEN 100
110 RESUME NEXT

Expected syntax error trap interrupted

What happens instead syntax error trap interrupted pc-basic Notes

robhagemans commented 2 years ago

Fixed by eb495cd