(Ignore the code I wrote… the glitch is about the REPL)
The first time I input something for readline(), nothing happens. I have to enter my input again. And after the code is done running, a weird input not defined pops up
This seems like some known bug. Has this been fixed yet? Any good workarounds?
Also, why does VSCode stick that 0 at the end of my print statement in the REPL? That is not supposed to be there…
using REPL.Terminals
function clear_line()
terminal = Terminals.TTYTerminal("", stdin, stdout, stderr)
Terminals.clear_line(terminal)
end
I came up with this code with a little research. Don’t really know how REPL.Terminals works… but this code works pretty smoothly for me, although the above suggestions work just as fine! Thank you all for them!