microsoft / microsoft/terminal

Media and other keys autoscroll the terminal

Open
#5,366 5 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Input Area-TerminalControl Help Wanted Issue-Bug Priority-2 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

Description

Keys that aren't meant to insert characters seem to jump the terminal to the bottom where input is being awaited. This includes media buttons.

Steps to reproduce

Open any terminal tab (tested with both Ubuntu and Powershell) and run anything to fill up the screen (e.g. run ls 5 times). Scroll up until the text input area is off the page.

Press any non-typing character that isn't a modifier (tested with "calculator" key, play/pause, and volume control keys)

Expected Behavior

These keys should have no effect on terminal

Actual behavior

Terminal scrolls to the bottom of the page where a new line is

ezgif-7-c7e99acf7c07

In this video I press the mute key or the calculator key, causing the terminal to jump

Version Info

Windows Terminal
Version: 0.10.781.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce this in a Windows Terminal tab using the listed Ubuntu or PowerShell steps, then inspect the terminal's keyboard-input and scrolling entry points. Verify the behavior with calculator, play/pause, volume, or mute keys; done means these non-typing keys no longer move the view to the bottom.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.