[unknown sequence] when pasting in WT in Nano via SSH #22985

Closed
opened 2026-01-31 08:29:12 +00:00 by claunia · 5 comments
Owner

Originally created by @voltagex on GitHub (Mar 1, 2025).

Windows Terminal version

1.21.10351.0

Windows build number

10.0.26100.0

Other Software

PSVersion                      5.1.26100.2161
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3....
BuildVersion                   10.0.26100.2161
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

ssh.exe / OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
sshing to OpenWrt, nano 8.3

Steps to reproduce

  1. Open default Windows Terminal with PowerShell 5.
  2. ssh to host
  3. Open nano.
  4. Paste into window

Expected Behavior

Text is pasted completely

Actual Behavior

https://github.com/user-attachments/assets/8e45d6fd-3c1d-4720-9c7e-8a9b70584319

Text is truncated and [unknown sequence] is displayed by Nano

NOTE: if I use cmd in Windows Terminal it appears to work correctly, as shown on the left hand side of my screen recording

Originally created by @voltagex on GitHub (Mar 1, 2025). ### Windows Terminal version 1.21.10351.0 ### Windows build number 10.0.26100.0 ### Other Software ``` PSVersion 5.1.26100.2161 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.... BuildVersion 10.0.26100.2161 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 ssh.exe / OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2 sshing to OpenWrt, nano 8.3 ``` ### Steps to reproduce 1. Open default Windows Terminal with PowerShell 5. 2. ssh to host 3. Open nano. 4. Paste into window ### Expected Behavior Text is pasted completely ### Actual Behavior https://github.com/user-attachments/assets/8e45d6fd-3c1d-4720-9c7e-8a9b70584319 Text is truncated and [unknown sequence] is displayed by Nano NOTE: if I use cmd in Windows Terminal it appears to work correctly, as shown on the left hand side of my screen recording
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 08:29:12 +00:00
Author
Owner

@voltagex commented on GitHub (Mar 1, 2025):

Bracketed paste weirdness again?

~# cat
^[[200~this is the text I want to paste^[[201~
@voltagex commented on GitHub (Mar 1, 2025): Bracketed paste weirdness again? ``` ~# cat ^[[200~this is the text I want to paste^[[201~ ```
Author
Owner

@lhecker commented on GitHub (Mar 10, 2025):

Coincidentally, I had a lengthy conversation about nano and SSH over here: https://github.com/PowerShell/Win32-OpenSSH/discussions/2330
There's indeed a good chance that you're hitting this bug: https://savannah.gnu.org/bugs/index.php?66858

You can try this custom build of SSH I made if you're adventurous: https://github.com/PowerShell/Win32-OpenSSH/discussions/2330#discussioncomment-12417004
It doesn't solve the issue in nano but should make it less likely to occur if it's indeed the bracketed paste bug.

@lhecker commented on GitHub (Mar 10, 2025): Coincidentally, I had a lengthy conversation about nano and SSH over here: https://github.com/PowerShell/Win32-OpenSSH/discussions/2330 There's indeed a good chance that you're hitting this bug: https://savannah.gnu.org/bugs/index.php?66858 You can try this custom build of SSH I made if you're adventurous: https://github.com/PowerShell/Win32-OpenSSH/discussions/2330#discussioncomment-12417004 It doesn't solve the issue in nano but should make it less likely to occur if it's indeed the bracketed paste bug.
Author
Owner

@voltagex commented on GitHub (Mar 31, 2025):

No, this issue is not stale.

@voltagex commented on GitHub (Mar 31, 2025): No, this issue is not stale.
Author
Owner

@DHowett commented on GitHub (Mar 31, 2025):

No, this issue is not stale.

This is not a "stale" bot.

This is a "we offered a remediation and asked you for a timely reply and didn't get one" bot.

Did you get a chance to test out either the updated build of nano or the build of sshd with a larger buffer that Leonard pointed out?

@DHowett commented on GitHub (Mar 31, 2025): > No, this issue is not stale. This is not a "stale" bot. This is a "we offered a remediation and asked you for a timely reply and didn't get one" bot. Did you get a chance to test out either the updated build of nano or the build of sshd with a larger buffer that Leonard pointed out?
Author
Owner

@voltagex commented on GitHub (Mar 31, 2025):

Apologies.
I cannot reproduce this issue, but I am not sure what's changed - wonder if things were fixed by Windows Terminal 1.22.10731.0?

@voltagex commented on GitHub (Mar 31, 2025): Apologies. I cannot reproduce this issue, but I am not sure what's changed - wonder if things were fixed by Windows Terminal 1.22.10731.0?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22985