WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Arrow Keys Not Working in Visual Studio Code Integrated Terminal

Open shavvn opened this issue 10 years ago • 10 comments

Windows Build: 1607.

How to reproduce:

1.Follow the guideline of VS Code document, add bash on windows to integrated terminal in VS Code settings file:

"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"

2.Run VS Code (from Windows), open the terminal, type some commands, the arrow keys don't work. (cannot recall last command or move the cursor for editing)

I searched the previous issues and there seemed to be a few other cases, not sure if it's related though, so I just thought I might as well post it here.

shavvn avatar Aug 04 '16 20:08 shavvn

Same thing happens with conemu unless you run with certain special console flags, probably related.

fpqc avatar Aug 04 '16 22:08 fpqc

I add that Code won't start using the graphic environment Linux side (XFCE): [1632:0805/080354:FATAL:render_sandbox_host_linux.cc(40)] Check failed: 0 == shutdown(renderer_socket_, SHUT_RD). shutdown: Argomento non valido (Invalid argument in english). #0 0x000001befd1e #1 0x000001c05bab #2 0x000001c0616d #3 0x0000025d7752 #4 0x0000023c3f62 #5 0x0000023cac44 #6 0x0000023c35b6 #7 0x00000112c261 #8 0x00000112af50 #9 0x00000307d7ec main #10 0x7f2a71f51f45 __libc_start_main #11 0x00000053dee9

iz0eyj avatar Aug 05 '16 06:08 iz0eyj

I bet the next edition of vs code will have substantial integration with WSL (the way it has ssh remote integration now)

fpqc avatar Aug 05 '16 07:08 fpqc

I believe this is the same issue as #111

wizzard0 avatar Aug 06 '16 22:08 wizzard0

@wizzard0 yep, that's the ConEMU thing.

fpqc avatar Aug 08 '16 00:08 fpqc

This should work now in Version January 2017 (version 1.9): "Windows support The library used to communicate with the terminal process on Windows has been upgraded which fixes many of the problems the terminal had on Windows such as arrow keys not functioning and the prompt line going out of sync. A special thanks to Ryan Prichard for his winpty library and for assisting with the upgrade."

NitroAMD avatar Feb 06 '17 08:02 NitroAMD

I'm running 1.13 and they still do not work on Windows 7. Am I missing something or did they regress. If I use the integrated terminal nothing happens when I press the up or down arrow keys so no command recall.

RangerGH avatar Jun 29 '17 05:06 RangerGH

@RangerGH uhhhhhh you can't run WSL on Windows 7. If you're having a general vscode problem with the arrow keys, please direct your issue to either VSCode or WinPTY.

fpqc avatar Jun 29 '17 14:06 fpqc

I have no idea what WSL is but I'm using VSCode on Windows with the integrated terminal and based on the title thought this the correct bug report. I missed the reference to bash.

RangerGH avatar Jun 29 '17 15:06 RangerGH

Duping #111.

therealkenc avatar May 24 '18 23:05 therealkenc