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

Elvish shell on Windows receives pasted text slowly (ConHost/ConPTY related?) #16549

Closed
lilacse opened this issue Jan 9, 2024 · 1 comment
Closed
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@lilacse
Copy link

lilacse commented Jan 9, 2024

Windows Terminal version

1.18.3181.0

Windows build number

Microsoft Windows [Version 10.0.22621.2861]

Other Software

Elvish (0.20.0-dev.0.20240108164435-9112eb1ab2f4+official) (latest HEAD)

Steps to reproduce

Run Elvish on Windows, and paste a sufficiently long chunk of text into the shell's prompt, about 1k to 2k characters.

Expected Behavior

The entire pasted content to be received by the shell in one go, matching the behaviour exhibited by the shell on Unix-like environments and WSL2.

Actual Behavior

The pasted content is received by the shell gradually.

2024-01-10.01-23-37.mp4

(This happens on both Windows Terminal and Alacritty)

I previously reported this to the Elvish repo (elves/elvish#1744), and the discussion pointed that this might be an issue with Windows's ConHost/ConPTY and bracketed pasting. Hopefully this is the right place for the issue :)

@lilacse lilacse added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jan 9, 2024
@lhecker
Copy link
Member

lhecker commented Jan 10, 2024

Yep this is the right place! It's not an issue with our code however and so I'll close this issue. It's also not really an issue with elvish either and fixing it requires just 1 line change in elvish. I'll comment in the linked elvish issue how to fix this. 😊

@lhecker lhecker closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants