julia-repl
julia-repl copied to clipboard
Clear the prompt before sending stuff.
trafficstars
This is not ready for production; sending when the terminal is busy causes artifacts:
julia> @btime f3(2.5)
^A^K^H@btime v1(x = 2.5)
1.775 ns (0 allocations: 0 bytes)
12.182493960703473
julia>
julia> @btime v1(x = 2.5)
^A^K^H@btime v2(x = 2.5)
13.963 ns (0 allocations: 0 bytes)
12.182493960703473
julia> @btime v2(x = 2.5)
13.906 ns (0 allocations: 0 bytes)
12.182493960703473
I guess the issue is term and there is nothing you can really do about it. You can send "\^A\^K\^H\^M" which looks nicer.
What is the difference between "\b"and "\^H"?