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

`PRINT CHR$(10)` should not connect/wrap lines #192

Closed robhagemans closed 2 years ago

robhagemans commented 2 years ago

PRINT CHR$(10) should not connect/wrap lines

Problem Rows printed with CHR$(10) in between are connected, just as if they were typed with Ctrl+J (LF) in between. In GW-BASIC, only typing directly with Ctrl+J connects (wraps) the lines, PRINT CHR$(10) does not.

Steps

  1. `PRINT "yada"; CHR$(10); "yada"
  2. 2x arrow-up, ESC

What happens Both lines of output get cleared

What was expected Only the last line of output to get cleared, as in GW-BASIC

Note By contrast, if we type y a d a Ctrl+J y a d a ESC, both lines do get cleared in both PC-BASIC and GW-BASIC.

PC-BASIC version: 2.0.4 Operating system version: all

robhagemans commented 2 years ago

Fixed by 971110c