Terminal Breaks Mouse Behavior and Keeps Text Editor In Same Pane as History #14339

Closed
opened 2026-01-31 04:07:35 +00:00 by claunia · 3 comments
Owner

Originally created by @ducksoverip on GitHub (Jun 25, 2021).

I recently installed Windows Terminal and added Git Bash as my main profile. I've noticed that when opening a file in a command-line text editor like nano or Micro, Terminal opens the text editor in line with previous file opens like so:
image
As can be seen above, the current session of the Micro editor displays directly underneath the previous (now-closed) session of the editor, letting you scroll up to see screen it was on when it was last closed. This behavior breaks mouse-scroll functionality, since instead of moving the cursor through the text in the current session, it simply scrolls the screen up to show what the last session looked like, which is very annoying. Furthermore, it further breaks mouse functionality in the Micro editor specifically. Micro normally lets you click text to place the cursor there like modern GUI text editors. However, when using Micro in Windows Terminal, this behavior is gone completely. These issues do not arise when using Git Bash by itself, so the issue appears to be unique to Windows Terminal.

Additionally, when scrolling up the history in the main pane for Git Bash, Windows Terminal displays the last visible screens of my text-editor sessions at the top, which is very distracting.

Originally created by @ducksoverip on GitHub (Jun 25, 2021). I recently installed Windows Terminal and added Git Bash as my main profile. I've noticed that when opening a file in a command-line text editor like nano or Micro, Terminal opens the text editor in line with previous file opens like so: ![image](https://user-images.githubusercontent.com/72049336/123454440-2e1ef400-d5a6-11eb-805e-d957314c29e0.png) As can be seen above, the current session of the Micro editor displays directly underneath the previous (now-closed) session of the editor, letting you scroll up to see screen it was on when it was last closed. This behavior breaks mouse-scroll functionality, since instead of moving the cursor through the text in the current session, it simply scrolls the screen up to show what the last session looked like, which is very annoying. Furthermore, it further breaks mouse functionality in the Micro editor specifically. Micro normally lets you click text to place the cursor there like modern GUI text editors. However, when using Micro in Windows Terminal, this behavior is gone completely. These issues do not arise when using Git Bash by itself, so the issue appears to be unique to Windows Terminal. Additionally, when scrolling up the history in the main pane for Git Bash, Windows Terminal displays the last visible screens of my text-editor sessions at the top, which is very distracting.
claunia added the Resolution-Duplicate label 2026-01-31 04:07:35 +00:00
Author
Owner

@zadjii commented on GitHub (Jun 25, 2021):

This sounds like a side effect of /dup #381 to me

@zadjii commented on GitHub (Jun 25, 2021): This sounds like a side effect of /dup #381 to me
Author
Owner

@zadjii-msft commented on GitHub (Jul 6, 2021):

/dup #381

@zadjii-msft commented on GitHub (Jul 6, 2021): /dup #381
Author
Owner

@ghost commented on GitHub (Jul 6, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jul 6, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14339