Yeah, I'm not sure why, but this happens in VS Code's integrated terminal, which also has other readline-related issues (alt+backspace deletes to the previous space instead of deleting the previous word, for example). In any case, I still don't use the REPL except when I need to dynamically inspect some value (which isn't necessary in Go, since it's statically typed).
Re:Yaegi – Yet Another Go Interpreter
by mixmastamyk on Wednesday July 24, 2019 @01:54PM
(#20517774)
Windows is crippled somewhat on that front, but there are workarounds. Often easier and way more functional to just install a wrapper like ptpython, bpython, ipython, etc.
I'm using a Mac.
Re:Yaegi – Yet Another Go Interpreter
by mixmastamyk on Wednesday July 24, 2019 @04:05PM
(#20519103)
Sounds like a broken terminal configuration. Try running python at the standard terminal and see what it does.
Dunno what's wrong with your readline but what you describe is default Python behavior. Try installing ipython, you'll get all that and more (such as syntax highlighting, multi-line editing, and much more).