LightAndLight / ipso

A functional scripting language.
https://ipso.dev
17 stars 1 forks source link

Track REPL cursor position correctly in presence of newlines #212

Closed LightAndLight closed 2 years ago

LightAndLight commented 2 years ago

Closes #203

render_error wrote two lines to stdout, but the REPL's cursor wasn't updated accordingly. This caused the prompt to render over the second error line. I realised that I could trigger similar behaviour by printing a string containing newlines.