Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear screen when launching escape-artist on Windows #11

Open
fdncred opened this issue Apr 12, 2024 · 6 comments
Open

clear screen when launching escape-artist on Windows #11

fdncred opened this issue Apr 12, 2024 · 6 comments

Comments

@fdncred
Copy link

fdncred commented Apr 12, 2024

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. 🤔

@rgwood
Copy link
Owner

rgwood commented Apr 12, 2024

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

@fdncred
Copy link
Author

fdncred commented Apr 12, 2024

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.

@rgwood
Copy link
Owner

rgwood commented Apr 12, 2024

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

@fdncred
Copy link
Author

fdncred commented Apr 12, 2024

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

@rgwood
Copy link
Owner

rgwood commented Apr 12, 2024

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

@fdncred
Copy link
Author

fdncred commented Apr 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants