You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Relevant information from devtools(CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
The issue is reproducible in vanilla Hyper.app: Is Vannila
Issue
I am trying to use Hyper as a an alternative to Cmder/ConEmu as I think it has better support for tmux etc.
However I have come across something that is quite strange.
If I use Hyper and SSH into a Linux machine from Windows PowerShell (SSH is on the path) then cursor keys do not work in vim. Also the terminal is not setup correctly when vi is running, so you can see lines of the command line interspersed, making it impossible to know what is in the file.
(I am unable to provide an Asciinema video for this as it does not run in PowerShell or Command Prompt)
The SSH I am using here is in my path and comes from Git for Windows.
I have also tested this using cmd.exe as the shell in Hyper and I get the same results as above.
However if I do the same thing from WSL, e.g. SSH into my Linux machine then everything works as expected. The cursor keys work and I can edit files using vi.
I have checked the obvious things like the TERM environment variable and it is set to xterm-256color in both cases.
In this case the SSH comes from Ubuntu (which is what I have running in WSL) so the SSH binaries are different. There might be a option I can set in the SSH command in PowerShell that would make this work. I will dig around and post a comment about what I find.
I have found an issue that relates to this, #1968, where the messing with the file display in vim possible due to the TERM variable.
I use PowerShell as my default shell and I have SSH on my path so I can drop into machines as and when I need to. I am assuming there is something in the PowerShell environment that means things are not displayed properly when using SSH. However this is slightly strange as I am getting into WSL by typing bash in the same PowerShell session and it all works OK.
Happy to provide more details to help assist with this. Please let me know if required.
The text was updated successfully, but these errors were encountered:
I think that I have fixed the issue where vim does not display correctly. It I set the TERM in the SSH session on the Linux machine then vim displays the file correctly.
So do this permanently from PowerShell the TERM environment variable needs to be passed. This can be set in the session or in the profile.ps1 file. SSH will forward this value in the SSH session so on the Linux machine it is set correctly.
So do this in the PowerShell session run the following
The cursor keys in vim still do not work, so if anyone has any good ideas for that I will be very grateful. (I can use the h,j,k,l keys but that requires a habitat change :-))
I will now close this issue as I have fixed all the problems.
I wondered if it might be down to the SSH binary I am using. So I installed OpenSSH for Windows using Chocolately (choco install openssh) and all the problems I had have gone away.
Hopefully this will help someone in a similar position.
Issue
I am trying to use Hyper as a an alternative to Cmder/ConEmu as I think it has better support for
tmux
etc.However I have come across something that is quite strange.
If I use Hyper and SSH into a Linux machine from Windows PowerShell (SSH is on the path) then cursor keys do not work in
vim
. Also the terminal is not setup correctly whenvi
is running, so you can see lines of the command line interspersed, making it impossible to know what is in the file.(I am unable to provide an Asciinema video for this as it does not run in PowerShell or Command Prompt)
The SSH I am using here is in my path and comes from Git for Windows.
I have also tested this using
cmd.exe
as the shell in Hyper and I get the same results as above.However if I do the same thing from WSL, e.g. SSH into my Linux machine then everything works as expected. The cursor keys work and I can edit files using
vi
.I have checked the obvious things like the
TERM
environment variable and it is set toxterm-256color
in both cases.In this case the SSH comes from Ubuntu (which is what I have running in WSL) so the SSH binaries are different. There might be a option I can set in the SSH command in PowerShell that would make this work. I will dig around and post a comment about what I find.
I have found an issue that relates to this, #1968, where the messing with the file display in
vim
possible due to theTERM
variable.I use PowerShell as my default shell and I have SSH on my path so I can drop into machines as and when I need to. I am assuming there is something in the PowerShell environment that means things are not displayed properly when using SSH. However this is slightly strange as I am getting into WSL by typing
bash
in the same PowerShell session and it all works OK.Happy to provide more details to help assist with this. Please let me know if required.
The text was updated successfully, but these errors were encountered: