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

Pasting text into PowerShell is slow on Linux #19181

Closed
5 tasks done
diego-crespo opened this issue Feb 19, 2023 · 3 comments
Closed
5 tasks done

Pasting text into PowerShell is slow on Linux #19181

diego-crespo opened this issue Feb 19, 2023 · 3 comments
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. Resolution-Answered The question is answered.

Comments

@diego-crespo
Copy link

diego-crespo commented Feb 19, 2023

Prerequisites

Steps to reproduce

When I paste a line of text into PowerShell on the Raspberry Pi 8gb there is a noticeable lag in the output of the text. I would normally chalk this up to the Raspberry Pi being underpowered, but the pasting action is much faster in Bash. I've uploaded two short videos demoing what I'm talking about.

Expected behavior

I would expect the lines to paste almost instantaneously

Actual behavior

There is a noticeable delay

Error details

No response

Environment data

PowerShell 7.3.2

Visuals

Video of Bash
https://youtu.be/sGbBTsiohCo

Video of PowerShell
https://youtu.be/k2UPThcN0qw

@diego-crespo diego-crespo added the Needs-Triage The issue is new and needs to be triaged by a work group. label Feb 19, 2023
@237dmitry
Copy link

In my environment (X11, clipman):

shell ctrl-v ctrl-shift-v mouse shift-insert (primary) mouse (primary)
pwsh fast slow slow slow slow
bash none fast fast fast fast

@mklement0
Copy link
Contributor

On Unix-like platforms, PowerShell (PSReadLine) uses simulated typing for pasting, which I think is the cause of the slowdown.

See the following for the (long) backstory:

@daxian-dbw daxian-dbw added the Resolution-Answered The question is answered. label Feb 28, 2023
@ghost
Copy link

ghost commented Mar 1, 2023

This issue has been marked as answered and has not had any activity for 1 day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Mar 1, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. Resolution-Answered The question is answered.
Projects
None yet
Development

No branches or pull requests

4 participants