Closed Muhimen123 closed 4 years ago
Does your number pad work if you run nvim outside of Windows Terminal, from a standard console window?
I tried it in windows command prompt and it works fine.
As a workaround, can you see what happens if you put the following setting at the root of your settings file?
"experimental.input.forceVT": true,
@zadjii-msft Thanks, It's working now.
Triaged into backlog as a bug. The only difference between the numberpad 0 in WT and Conhost is that in WT it's missing the NUM_LOCK
flag. If NeoVim requires this (which it shouldn't), we'll need to figure out how to generate it.
Actually, I'm recanting this. It's by design.
I just checked in vim on my own machine, and vim switches between replace and insert mode in the traditional console when you press VK_NUMPAD0. All the way back to the 2017 versions of Windows.
This is happening in Terminal now because before 1.1, Terminal pretended that the two different versions of 0 on your keyboard were the same thing. Now it knows they're different. input.forceVT
makes it pretend they're the same.
After updating the windows terminal to version 1.1 from Microsoft store, my number pad isn't functioning properly. However, this only happens when I use nvim in the terminal. For other stuffs, it works just fine. At first I thought it's the problem with the nvim I am working with so I reinstalled it but the problem still stayed. I also tried another keyboard and the same problem occurs.
Environment
Steps to reproduce
choco
.Expected behavior
As I type digits using the number pad, the numbers should get properly displayed or typed in the file
Actual behavior
While in
insert
mode of nvim, if I press 0 from the number pad if gets out from the insert mode and takes me intocommand
.