julia-repl icon indicating copy to clipboard operation
julia-repl copied to clipboard

Clear the prompt before sending stuff.

Open tpapp opened this issue 7 years ago • 2 comments
trafficstars

tpapp avatar Sep 02 '18 18:09 tpapp

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

tpapp avatar Sep 03 '18 08:09 tpapp

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"?

gdkrmr avatar Jan 04 '19 15:01 gdkrmr