Skip to content

Alt doesn't work for most of the non-alphabetic ASCII control characters (Alt-Ctrl-[, Alt-Ctrl-\, Alt-Ctrl-], Alt-Ctrl-^) #15367

@aimfiz

Description

@aimfiz

Windows Terminal version

1.16.10262.0

Windows build number

10.0.22621

Other Software

No response

Steps to reproduce

wsl
showkey -a

[type Ctrl-A, Alt-Ctrl-A, Ctrl-], Alt-Ctrl-], Ctrl-6, Alt-Ctrl-6]

Expected Behavior

^A        1 0001 0x01
^[^A     27 0033 0x1b
          1 0001 0x01
^]       29 0035 0x1d
^[^]     27 0033 0x1b
         29 0035 0x1d
^^       30 0036 0x1e
^[^^     27 0033 0x1b
         30 0036 0x1e

Generally, for any key press that produces the character code C in the range 0 through 127, the same key press but with the Alt key down should produce the character code 27 (i.e., escape) followed by the character code C. (Unless, of course, there is a conflicting, explicit binding. There's a default binding for Alt-Ctrl-6, but removing it doesn't help.)

Actual Behavior

^A        1 0001 0x01
^[^A     27 0033 0x1b
          1 0001 0x01
^]       29 0035 0x1d
^^       30 0036 0x1e

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-InputRelated to input processing (key presses, mouse, etc.)Area-VTVirtual Terminal sequence supportIn-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-ConhostFor issues in the Console codebase

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions