20 okt. 2023 kl. 19.28 skrev Gerd Möllmann : > Look at these escape sequences that suddenly appear when attaching to a > process! I don't even know what "[1G" and "[8G" do. Fascinating! We should probably look into the source code producing it (libedit probably) but I wrote the attached monstrosity and it... seems to work. (Proof of concept only.) It attempts to edit out the part of strings jumped over by CHA (CSI G), and it also edits out ED (CSI J) which is in this case just used to do exactly that immediately after CHA.