rgwood/escape-artist

clear screen when launching escape-artist on Windows

Opened this issue · 6 comments

Related to #8 (comment), I'm seeing something similar but I'm not catching the escapes that are doing the clear screan. This is what I see.
image

The difference may be that I have a print 'Hello, from blah' in each of my files when launching nushell but you'd think that the clear screen would come before those and escape-artist would capture it. 🤔

Isn’t that eraser icon in the first line clearing the screen?

Yes, of course you're right. It is the 2J.

Here's pwsh, just for fun. It does the same thing in WT 1.19.10821.0 and 1.20.10822.0.
image

Update: It does the same thing with pwsh in wezterm and alacritty too.

Interesting. If this is happening in multiple shells, I wonder if it’s a portable_pty thing…

Multiple shells and multiple terminal emulators. You may have a correct guess.

I skimmed the portable_pty code and didn’t find anything obvious. Possible this is happening in the Windows ConPTY library itself…

I'm guessing it could also be a response to the 3 CSI calls before it?