Over SSH, vim configuration for cursor shape is not respected #12567

Closed
opened 2026-01-31 03:18:58 +00:00 by claunia · 4 comments
Owner

Originally created by @Melandel on GitHub (Feb 13, 2021).

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.804]
Windows Terminal version: 1.5.10411.0

Steps to reproduce

  • Open a powershell tab inside Windows Terminal
  • ssh another Windows machine
    • that has the latest vim version
    • and the following vim configuration content:
      let &t_ti.=" \e[1 q"
      let &t_SI.=" \e[5 q"
      let &t_EI.=" \e[1 q"
      let &t_te.=" \e[0 q"
    
  • run vim over ssh on that machine

Expected behavior

  • The vim configuration for cursor shape is respected, ie:
    • The cursor has a blinking box shape in Normal mode
    • The cursor has a blinking bar shape in Insert mode

Actual behavior

  • The vim configuration for cursor shape is not respected
  • Instead, the cursor always has the shape defined in local Windows Terminal's settings file

Additional note

  • The vim configuration is correctly respected if I use vim without ssh
Originally created by @Melandel on GitHub (Feb 13, 2021). # Environment ```none Windows build number: Microsoft Windows [Version 10.0.19041.804] Windows Terminal version: 1.5.10411.0 ``` # Steps to reproduce * Open a powershell tab inside Windows Terminal * `ssh` another Windows machine * that has the latest vim version * and the following vim configuration content: ``` let &t_ti.=" \e[1 q" let &t_SI.=" \e[5 q" let &t_EI.=" \e[1 q" let &t_te.=" \e[0 q" ``` * run `vim` over ssh on that machine # Expected behavior * The vim configuration for cursor shape **is** respected, ie: * The cursor has a blinking box shape in Normal mode * The cursor has a blinking bar shape in Insert mode # Actual behavior * The vim configuration for cursor shape is **not** respected * Instead, the cursor always has the shape defined in local Windows Terminal's settings file # Additional note * The vim configuration is correctly respected if I use vim without ssh
Author
Owner

@skyline75489 commented on GitHub (Feb 19, 2021):

What specific SSH client are you using? If you're using the SSH client provided by Windows itself, you may need to switch to a newer version at https://github.com/powershell/Win32-OpenSSH

@skyline75489 commented on GitHub (Feb 19, 2021): What specific SSH client are you using? If you're using the SSH client provided by Windows itself, you may need to switch to a newer version at https://github.com/powershell/Win32-OpenSSH
Author
Owner

@Melandel commented on GitHub (Feb 19, 2021):

  • The SSH client I'm reproducing the issue with: OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
  • The SSH client downloaded from your link: OpenSSH_for_Windows_8.1p1, LibreSSL 2.9.2

Using the latter, I can still reproduce the issue

  • I also updated SSH on the server from OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 to OpenSSH_for_Windows_8.1p1, LibreSSL 2.9.2

I can still reproduce the issue with an updated OpenSSL on both client and server, after rebooting both.

@Melandel commented on GitHub (Feb 19, 2021): * The SSH client I'm reproducing the issue with: `OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5` * The SSH client downloaded from your link: `OpenSSH_for_Windows_8.1p1, LibreSSL 2.9.2` Using the latter, I can still reproduce the issue * I also updated SSH on the server from `OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5` to `OpenSSH_for_Windows_8.1p1, LibreSSL 2.9.2` I can still reproduce the issue with an updated OpenSSL on both client and server, after rebooting both.
Author
Owner

@zadjii-msft commented on GitHub (Feb 26, 2021):

Weird. This definitely doesn't repro in WSL locally, so I'm guessing that this is definitely a openssh issue. I don't have a remote machine handy to ssh into to confirm unfortunately. I'd file a bug upstream on https://github.com/PowerShell/Win32-OpenSSH/issues, to see if they can verify.

@zadjii-msft commented on GitHub (Feb 26, 2021): Weird. This definitely doesn't repro in WSL locally, so I'm guessing that this is definitely a openssh issue. I don't have a remote machine handy to ssh into to confirm unfortunately. I'd file a bug upstream on https://github.com/PowerShell/Win32-OpenSSH/issues, to see if they can verify.
Author
Owner

@ghost commented on GitHub (Mar 2, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Mar 2, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12567