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

Paste multiple line text sometimes corrupted in Cygwin bash shell #12453

Open
kery opened this issue Feb 10, 2022 · 5 comments
Open

Paste multiple line text sometimes corrupted in Cygwin bash shell #12453

kery opened this issue Feb 10, 2022 · 5 comments
Labels
Area-Input Related to input processing (key presses, mouse, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-2 A description (P2) Product-Terminal The new Windows Terminal.
Milestone

Comments

@kery
Copy link

kery commented Feb 10, 2022

Windows Terminal version

1.11.2921.0

Windows build number

10.0.19042.1466

Other Software

GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)

Steps to reproduce

Add a profile for Cygwin.

            {
                "commandline": "C:\\cygwin64\\bin\\bash.exe -l",
                "guid": "{09ff2493-xxxx-4ee9-xxxx-d7f90bb2xxxx}",
                "hidden": false,
                "icon": "C:\\cygwin64\\Cygwin-Terminal.ico",
                "name": "Cygwin"
            },

Open Cygwin bash shell in a Terminal tab window and execute vi /tmp/temp.txt and then paste multiple line text. For example:

this is a sample text to test Windows terminal copy-paste issue, line 1
this is a sample text to test Windows terminal copy-paste issue, line 2
this is a sample text to test Windows terminal copy-paste issue, line 3
this is a sample text to test Windows terminal copy-paste issue, line 4
this is a sample text to test Windows terminal copy-paste issue, line 5
this is a sample text to test Windows terminal copy-paste issue, line 6
this is a sample text to test Windows terminal copy-paste issue, line 7
this is a sample text to test Windows terminal copy-paste issue, line 8
this is a sample text to test Windows terminal copy-paste issue, line 9
this is a sample text to test Windows terminal copy-paste issue, line 10
this is a sample text to test Windows terminal copy-paste issue, line 11
this is a sample text to test Windows terminal copy-paste issue, line 12
this is a sample text to test Windows terminal copy-paste issue, line 13
this is a sample text to test Windows terminal copy-paste issue, line 14
this is a sample text to test Windows terminal copy-paste issue, line 15
this is a sample text to test Windows terminal copy-paste issue, line 16
this is a sample text to test Windows terminal copy-paste issue, line 17
this is a sample text to test Windows terminal copy-paste issue, line 18
this is a sample text to test Windows terminal copy-paste issue, line 19
this is a sample text to test Windows terminal copy-paste issue, line 20
this is a sample text to test Windows terminal copy-paste issue, line 21
this is a sample text to test Windows terminal copy-paste issue, line 22
this is a sample text to test Windows terminal copy-paste issue, line 23
this is a sample text to test Windows terminal copy-paste issue, line 24
this is a sample text to test Windows terminal copy-paste issue, line 25
this is a sample text to test Windows terminal copy-paste issue, line 26
this is a sample text to test Windows terminal copy-paste issue, line 27
this is a sample text to test Windows terminal copy-paste issue, line 28
this is a sample text to test Windows terminal copy-paste issue, line 29
this is a sample text to test Windows terminal copy-paste issue, line 30
this is a sample text to test Windows terminal copy-paste issue, line 31
this is a sample text to test Windows terminal copy-paste issue, line 32
this is a sample text to test Windows terminal copy-paste issue, line 33
this is a sample text to test Windows terminal copy-paste issue, line 34
this is a sample text to test Windows terminal copy-paste issue, line 35
this is a sample text to test Windows terminal copy-paste issue, line 36
this is a sample text to test Windows terminal copy-paste issue, line 37
this is a sample text to test Windows terminal copy-paste issue, line 38
this is a sample text to test Windows terminal copy-paste issue, line 39
this is a sample text to test Windows terminal copy-paste issue, line 40

Expected Behavior

The text pasted in Cygwin bash shell as is.

Actual Behavior

The text pasted in Cygwin bash shell corrupted sometimes. There is no such issue when using mintty.

2022-02-10.14-25-15.mp4
@kery kery added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Feb 10, 2022
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Feb 10, 2022
@zadjii-msft
Copy link
Member

Weird. Does this repro with the vintage console host, conhost.exe by any chance?

@zadjii-msft zadjii-msft added Area-Input Related to input processing (key presses, mouse, etc.) Priority-2 A description (P2) Product-Terminal The new Windows Terminal. labels Feb 10, 2022
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Feb 10, 2022
@zadjii-msft zadjii-msft added this to the 22H2 milestone Feb 10, 2022
@kery
Copy link
Author

kery commented Feb 13, 2022

Weird. Does this repro with the vintage console host, conhost.exe by any chance?

The same. The more number of lines the more possibility to reproduce this issue.

2022-02-13.11-40-08.mp4

@kery
Copy link
Author

kery commented Feb 18, 2022

Please note that this issue cannot be reproduced by using ssh.exe in System32\OpenSSH\ with the conhost.exe. However, if using the same ssh.exe with bash.exe, it can be reproduced.

@DHowett DHowett removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Apr 8, 2022
@sykwon66
Copy link

sykwon66 commented May 6, 2022

Also happens in 1.12.10982.0.
No issue with cmd and power shell.

@sykwon66
Copy link

sykwon66 commented May 9, 2022

Looks same issue with #6901

When Copying, Line Wrapped Text Is Inconsistently Broken Into Multiple Lines #6901

@zadjii-msft zadjii-msft modified the milestones: 22H2, Backlog Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Input Related to input processing (key presses, mouse, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-2 A description (P2) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

4 participants