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

drawing wrapped lines in REPL

Open kleinschmidt opened this issue 8 years ago • 5 comments

When typing in the REPL, as soon as the line wraps around, it starts "gobbling up" lines above. Every time I type another character, it re-prints everything on the wrapped part on a new line, instead of re-writing the wrapped part:

screenshot from 2018-01-26 12-32-14

This is with:

  • Julia 0.6.2
  • julia-repl from melpa (20171116.46)
  • GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.26) of 2017-12-04

kleinschmidt avatar Jan 26 '18 17:01 kleinschmidt

This is unfortunately a bug in Emacs, I already reported it.

tpapp avatar Jan 27 '18 11:01 tpapp

Is there any quick fix for this?

hcarlsso avatar Oct 12 '19 10:10 hcarlsso

I don't know, one would have to dig into the terminal code. Maybe alternative terminals packages in Emacs don't have this problem, or would be more willing to fix this.

tpapp avatar Oct 12 '19 11:10 tpapp

Thanks for reporting the bug upstream!

In case this may be of any help to anyone (maybe it'll work for you too @hcarlsoo?):

I was having issues with this with long paths. It would make the repl so messy that I had to kill the session.

Breaking the string representing the path and concatenating the fragments is working well as a workaround for me.

Example:

file = string("../../xxxx/xxxx/xxxxxxxx/",
              "xxxxxx/xxxxxx/xxxxxx/xxxxx.csv")

or

file = "../../xxxx/xxxx/xxxxxxxx/" *
       "xxxxxx/xxxxxx/xxxxxx/xxxxx.csv"

Note:

There is no issue when the reply is printing wrapped lines. It is only in input (whether typed directly in it or sent from julia-mode) that it was messing everything up. So after running the above, I can print file without any problem.

prosoitos avatar May 28 '20 17:05 prosoitos

The vterm backend doesn't have this problem. All the more reason to get #51 in!

christopher-dG avatar May 28 '20 21:05 christopher-dG