aw / fiveforths

32-bit RISC-V Forth for microcontrollers
https://fiveforths.a1w.ca
MIT License
66 stars 3 forks source link

Fix handling of carriage return #9

Closed aw closed 1 year ago

aw commented 1 year ago

The interpreter behaves well when a \n (LF) is issued, but not when a \r (CR) is sent. There is some code to handle this but it's obviously not working correctly. It also doesn't work well when a \r\n (CRLF) is sent, which I believe is the default behaviour of a few terminal programs.