tabby icon indicating copy to clipboard operation
tabby copied to clipboard

Word-jumping&deleting does not work on Windows

Open BennyFaaren opened this issue 5 years ago • 11 comments

Hello,

I cant jump words with ctrl+arrow key and deleting a word with ctrl+backspace does not work either, beside it is configurated as hotkey.

Copy and Paste with ctrl does work.

Windows 10 and latest version of Terminus.

Funding

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar

BennyFaaren avatar Jun 24 '20 13:06 BennyFaaren

I also have this problem

cavejay avatar Jul 01 '20 01:07 cavejay

So far I can only report it works with windows 10 (Microsoft Windows [Version 10.0.18363.900]) and App-version 1.0.112 using a SSH connection.

THX1188 avatar Jul 01 '20 03:07 THX1188

Which shells are you using?

Eugeny avatar Jul 05 '20 10:07 Eugeny

Which shells are you using?

Specifically - Local Powershell (core and local):

PS C:\Users\cavejay> $PSVersionTable           

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}       
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

PS C:\Users\cavejay> 

When using CTRL+left CTRL+right in Powershell Core 'b' and 'f' get printed respectively. In normal powershell nothing is printed.

Terminus Info:

Version: 1.0.104
Platform: win32 10.0.18363
Plugins: none

cavejay avatar Jul 06 '20 01:07 cavejay

I have the same problem. In cmd ctrl+backslash prints ^H and in powershell nothing happens.

Name                           Value
----                           -----
PSVersion                      5.1.18362.752
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.752
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

BennyAlex avatar Jul 06 '20 07:07 BennyAlex

Only using git bash does work as expected, all other shells print a/f/h or nothing

BennyAlex avatar Jul 06 '20 07:07 BennyAlex

Found some time to poke around this issue:

  • Alt+Arrow Keys work in the way CTRL+Arrow Keys are expected to work
  • Terminus uses the same node library (node-tty although Eugeny did fork it) under the hood as Microsoft's 'Terminal' app.
  • Terminal has a working CTRL+Arrows and CTRL+Backspace/Del function but also prints ^H when using Alt+ ** Terminal's escape codes look similar to Terminus's, with Backspace + Alt's code matching Terminus' delete-previous-word. This is likely why both of these key combos only print ^H.

I've built Terminus to use the \x8 code used by Terminal for Backspace + CTRL and didn't seem to have any success and am at the limit of my knowledge for how tty's etc function. This problem is irritating me so I'll likely find more time in future to explore.

@Eugeny would you have an off the cuff guess at what the cause of this is that I could use to look further?

cavejay avatar Oct 08 '20 05:10 cavejay

@cavejay thanks for the investigation! I've managed to dig up the escape sequences for Ctrl-Left, Ctrl-Right and Ctrl-Delete, but it doesn't looks like there's anything else besides ^H for Ctrl-Backspace and PowerShell doesn't accept it over ConPTY.

Eugeny avatar Dec 06 '20 17:12 Eugeny

Also having this issue :(

jaanli avatar May 19 '21 13:05 jaanli

Also having this issue with Windows 11 and WSL.

Giftora avatar Jan 13 '22 18:01 Giftora

Describe the bug The backspace key not working

Information about your version 1.0.205

Additional context While accessing Nokia/Huawei OLT through telnet, the backspace key doesn't function and you have to use the Ctrl+H key. Whereas the SSH connection to switches and routers the backspace key works fine.

spandanpradhan avatar Dec 07 '23 07:12 spandanpradhan