[W32-input] Terminal send a \0 on every Alt keyup. #9039

Closed
opened 2026-01-31 01:44:30 +00:00 by claunia · 1 comment
Owner

Originally created by @zadjii-msft on GitHub (Jun 15, 2020).

Originally assigned to: @zadjii-msft on GitHub.

This PR seems to send a \0 to the terminal on every Alt keyup. I'm not sure if \0 is a valid keycode but at least some term applications are not able to handle (or ignore?) it correctly. One observable issue is that NeoVim will perform a WORDS forward (as if Shift + w is pressed) when it receives a \0, which makes keybindings using Alt behaves oddly.

image

Originally posted by @richardtsai in https://github.com/microsoft/terminal/pull/6461#issuecomment-643978534

Regressed in #6461

Originally created by @zadjii-msft on GitHub (Jun 15, 2020). Originally assigned to: @zadjii-msft on GitHub. This PR seems to send a `\0` to the terminal on every `Alt` keyup. I'm not sure if `\0` is a valid keycode but at least some term applications are not able to handle (or ignore?) it correctly. One observable issue is that NeoVim will perform a `WORDS forward` (as if `Shift + w` is pressed) when it receives a `\0`, which makes keybindings using `Alt` behaves oddly. ![image](https://user-images.githubusercontent.com/1297550/84633153-8c8cad80-af22-11ea-9e50-6d849b84a97f.png) _Originally posted by @richardtsai in https://github.com/microsoft/terminal/pull/6461#issuecomment-643978534_ Regressed in #6461
Author
Owner

@ghost commented on GitHub (Jun 18, 2020):

:tada:This issue was addressed in #6516, which has now been successfully released as Windows Terminal Preview v1.1.1671.0.🎉

Handy links:

@ghost commented on GitHub (Jun 18, 2020): :tada:This issue was addressed in #6516, which has now been successfully released as `Windows Terminal Preview v1.1.1671.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.1.1671.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9039