Skip to content

Alt arrow keys print extra characters #3101

@paulwhiting

Description

@paulwhiting

Terminal Version: 0.5.2762.0
Microsoft Windows [Version 10.0.18362.356]

Steps to reproduce

Open terminal. Press alt-up, alt-down, alt-right, alt-left.

(For byobu: start byobu with 'byobu'. Press F2 to add a new tab. Press alt-right and alt-left to switch between tabs.)

Expected behavior

Observed behavior

  • c:\windows\system32\bash.exe: ABCD is printed out as expected.
  • c:\windows\system32\bash.exe in byobu: Byobu tabs are switched on alt-left and alt-right. (Only a single session is running so alt-up and alt-down just error out as expected.) No additional characters are printed out, as expected.
  • Windows Powershell terminal (run->powershell): Nothing is printed out. (Expected? I don't know.)
  • Terminal App powershell: ☻♠♦ is printed out.
  • Terminal App ubuntu: A◘B☻C♠D♦ is printed out.
  • Terminal App ubuntu in byobu: Byobu tabs are are switched as expected, BUT when alt is released one of ◘☻♠♦ is printed out depending on which arrow key was pressed last.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-InputRelated to input processing (key presses, mouse, etc.)Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions