Mouse wheel doesn't scroll when terminal launched as "ubuntu" #194

Closed
opened 2026-01-30 21:45:12 +00:00 by claunia · 25 comments
Owner

Originally created by @wigster on GitHub (Mar 15, 2018).

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    16299.309

  • What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

  • Launch wsl terminal as Ubuntu from Start Menu
  • output anything longer than the terminal window.
  • try scrolling with mouse wheel
  • What's wrong / what should be happening instead:

The view does not scroll up. If I launch cmd/powershell first and then Ubuntu, scrolling works as it should. Also dragging with the scroll bar works fine.

Originally created by @wigster on GitHub (Mar 15, 2018). * Your Windows build number: (Type `ver` at a Windows Command Prompt) 16299.309 * What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots) - Launch wsl terminal as Ubuntu from Start Menu - output anything longer than the terminal window. - try scrolling with mouse wheel * What's wrong / what should be happening instead: The view does not scroll up. If I launch cmd/powershell first and then Ubuntu, scrolling works as it should. Also dragging with the scroll bar works fine.
Author
Owner

@wigster commented on GitHub (Mar 15, 2018):

Edit: I've just discovered scrolling works when the console window is inactive, but stops to scroll when activated.

@wigster commented on GitHub (Mar 15, 2018): Edit: I've just discovered scrolling works when the console window is *inactive*, but stops to scroll when activated.
Author
Owner

@zadjii-msft commented on GitHub (Mar 15, 2018):

My guess is that for one reason or another, the buffer height got set to the window height for your ubuntu shortcut. Try changing the "Screen Buffer Height" of the ubuntu command prompt to something like 9001.

image
image

That should make the scroll bar re-appear.

@zadjii-msft commented on GitHub (Mar 15, 2018): My guess is that for one reason or another, the buffer height got set to the window height for your ubuntu shortcut. Try changing the "Screen Buffer Height" of the ubuntu command prompt to something like 9001. ![image](https://user-images.githubusercontent.com/18356694/37477746-b0b319e0-2835-11e8-9f2d-e7dff1d3c299.png) ![image](https://user-images.githubusercontent.com/18356694/37477776-bf6b1d66-2835-11e8-90ac-851425b2b562.png) That should make the scroll bar re-appear.
Author
Owner

@wigster commented on GitHub (Mar 15, 2018):

The scroll bar is there and I can scroll with it ok. The thing that is broken is scrolling using the mouse wheel, but it is only broken if the windows is active.

(The buffer is 3000 lines, so it's ok)

@wigster commented on GitHub (Mar 15, 2018): The scroll bar is there and I can scroll with it ok. The thing that is broken is scrolling using the *mouse wheel*, but it is only broken if the windows is active. (The buffer is 3000 lines, so it's ok)
Author
Owner

@zadjii-msft commented on GitHub (Mar 15, 2018):

What's in your .bashrc? Does pressing Ctrl+V (from the prompt), then scrolling echo anything to the input? It sounds like VT mouse mode might have gotten enabled for you.

Curious that the scrolling works when the windos is inactive, that might be a hole in the implementation

@zadjii-msft commented on GitHub (Mar 15, 2018): What's in your `.bashrc`? Does pressing Ctrl+V (from the prompt), then scrolling echo anything to the input? It sounds like VT mouse mode might have gotten enabled for you. Curious that the scrolling works when the windos is inactive, that might be a hole in the implementation
Author
Owner

@wigster commented on GitHub (Mar 15, 2018):

I've not touched .bashrc. It's just

.bashrc.txt

Ubuntu straight installed from the Store.

@wigster commented on GitHub (Mar 15, 2018): I've not touched .bashrc. It's just [.bashrc.txt](https://github.com/Microsoft/console/files/1816548/default.bashrc.txt) Ubuntu straight installed from the Store.
Author
Owner

@zadjii-msft commented on GitHub (Mar 15, 2018):

Well that's certainly curious. I have no idea why this would be happening. Does opening a mouse mode application like tmux, vim, or screen and closing it fix it? (each one has different steps for enabling mouse-mode).

Or, try executing echo -e "\033[?1000l\033[?1002l\033[?1005l\033[?1006l" - that should turn off any mouse mode if it's set.

I don't really know how else to debug this - it's particularly odd in that it happens with a fresh Ubuntu install and a new console window. That makes it particularly hard to recreate.

@zadjii-msft commented on GitHub (Mar 15, 2018): Well that's certainly curious. I have no idea why this would be happening. Does opening a mouse mode application like tmux, vim, or screen and closing it fix it? (each one has different steps for enabling mouse-mode). Or, try executing `echo -e "\033[?1000l\033[?1002l\033[?1005l\033[?1006l"` - that should turn off any mouse mode if it's set. I don't really know how else to debug this - it's particularly odd in that it happens with a fresh Ubuntu install and a new console window. That makes it particularly hard to recreate.
Author
Owner

@wigster commented on GitHub (Mar 19, 2018):

Hi,

I've tried the echo command and it didn't fix it. Also running tmux and exiting has no effect.

I will add that the behaviour is the same with the precision touchpad in my surface book: two-finger scroll only works when the window is inactive.

@wigster commented on GitHub (Mar 19, 2018): Hi, I've tried the echo command and it didn't fix it. Also running tmux and exiting has no effect. I will add that the behaviour is the same with the precision touchpad in my surface book: two-finger scroll only works when the window is inactive.
Author
Owner

@zadjii-msft commented on GitHub (Mar 19, 2018):

Oof. That's not great. I have no idea what's causing this now, sorry :/.

If anyone can get me steps that can reproduce this problem, that'd be greatly appreciated.

@zadjii-msft commented on GitHub (Mar 19, 2018): Oof. That's not great. I have no idea what's causing this now, sorry :/. If anyone can get me steps that can reproduce this problem, that'd be greatly appreciated.
Author
Owner

@jeffreykaufman commented on GitHub (Oct 13, 2018):

@zadjii-msft I'm having this issue as well - fresh install of Windows 10 Pro, Ubuntu installed directly from the Microsoft Store, and scrolling does not work. It doesn't work in any program that uses the native MS-DOS emulator window.

@jeffreykaufman commented on GitHub (Oct 13, 2018): @zadjii-msft I'm having this issue as well - fresh install of Windows 10 Pro, Ubuntu installed directly from the Microsoft Store, and scrolling does not work. It doesn't work in any program that uses the native MS-DOS emulator window.
Author
Owner

@zadjii-msft commented on GitHub (Oct 15, 2018):

@jeffreykaufman does this only repro for you with active (focused) console windows?

If you try scrolling with another input method, does it work? For example, does scrolling with the touchscreen work?

Could you post screenshots of the "Properties" pages? Specifically the options and layout pages? You can open them up by right clicking the title bar and selecting "Properties":

image

@zadjii-msft commented on GitHub (Oct 15, 2018): @jeffreykaufman does this only repro for you with active (focused) console windows? If you try scrolling with another input method, does it work? For example, does scrolling with the touchscreen work? Could you post screenshots of the "Properties" pages? Specifically the options and layout pages? You can open them up by right clicking the title bar and selecting "Properties": ![image](https://user-images.githubusercontent.com/18356694/46960954-89a62f00-d054-11e8-99c2-7f89043efcae.png)
Author
Owner

@exal99 commented on GitHub (Nov 9, 2018):

I am having the same problem but strangely enough the scroll wheel works fine as long as I don't have the window selected. But as soon as I bring the window into the foreground the scroll wheel stops working.

@exal99 commented on GitHub (Nov 9, 2018): I am having the same problem but strangely enough the scroll wheel works fine as long as I don't have the window selected. But as soon as I bring the window into the foreground the scroll wheel stops working.
Author
Owner

@GearHeadPB commented on GitHub (Nov 13, 2018):

@wigster Same here with the scroll wheel not working, but not just in Terminal for me. Nothing scrolls at all in Ubuntu unless it's not the active window. Good find on the inactive window for the scroll wheel to "work." Hopefully this gets figured out.

@GearHeadPB commented on GitHub (Nov 13, 2018): @wigster Same here with the scroll wheel not working, but not just in Terminal for me. Nothing scrolls at all in Ubuntu unless it's not the active window. Good find on the inactive window for the scroll wheel to "work." Hopefully this gets figured out.
Author
Owner

@wigster commented on GitHub (Nov 13, 2018):

So to update: I am on build 17763.107, Ubuntu 18.04 on Surface Book 2 and this is still happening.

It is possible to scroll with touch (which activates the window), but not with the touchpad or the scroll wheel of an external mouse while the window is active.

I'm attaching my console properties.

ubuntuconsoleprops1
ubuntuconsoleprops2

@wigster commented on GitHub (Nov 13, 2018): So to update: I am on build 17763.107, Ubuntu 18.04 on Surface Book 2 and this is still happening. It is possible to scroll with touch (which activates the window), but not with the touchpad or the scroll wheel of an external mouse while the window is active. I'm attaching my console properties. ![ubuntuconsoleprops1](https://user-images.githubusercontent.com/10956987/48402886-00eee180-e72d-11e8-8798-96286e9901fc.jpg) ![ubuntuconsoleprops2](https://user-images.githubusercontent.com/10956987/48402888-00eee180-e72d-11e8-80f0-53838b939732.jpg)
Author
Owner

@wigster commented on GitHub (Dec 18, 2018):

I have managed to solve this: I deleted the registry key for the Ubuntu console in HKCU\Console and the scrolling is back.

@wigster commented on GitHub (Dec 18, 2018): I have managed to solve this: I deleted the registry key for the Ubuntu console in HKCU\Console and the scrolling is back.
Author
Owner

@exal99 commented on GitHub (Jan 7, 2019):

@wigster Could you please be more specific? Did you delete the entire HKEY_CURRENT_USER/Console/C:Program Files...ubuntu.exe?

@exal99 commented on GitHub (Jan 7, 2019): @wigster Could you please be more specific? Did you delete the entire HKEY_CURRENT_USER/Console/C:_Program Files_...ubuntu.exe?
Author
Owner

@exal99 commented on GitHub (Jan 7, 2019):

Okay I seem to have solved it as well. For me I only had to change the options (I turned QuickEdit Mode on) and then the scrolling worked again.

@exal99 commented on GitHub (Jan 7, 2019): Okay I seem to have solved it as well. For me I only had to change the options (I turned QuickEdit Mode on) and then the scrolling worked again.
Author
Owner

@jboeshart commented on GitHub (Aug 27, 2019):

Just experienced this issue in the native Ubuntu terminal, as well as a random change of the font size to a much smaller font. Enabling Quick Edit mode restored the scrolling functionality. Doesn't appear to be related to the Terminal app, but no idea why this stopped working.

@jboeshart commented on GitHub (Aug 27, 2019): Just experienced this issue in the native Ubuntu terminal, as well as a random change of the font size to a much smaller font. Enabling *Quick Edit* mode restored the scrolling functionality. Doesn't appear to be related to the Terminal app, but no idea why this stopped working.
Author
Owner

@aguywithcode commented on GitHub (Sep 3, 2019):

Just experienced this issue in the native Ubuntu terminal, as well as a random change of the font size to a much smaller font. Enabling Quick Edit mode restored the scrolling functionality. Doesn't appear to be related to the Terminal app, but no idea why this stopped working.

How do you enable quick edit?

@aguywithcode commented on GitHub (Sep 3, 2019): > Just experienced this issue in the native Ubuntu terminal, as well as a random change of the font size to a much smaller font. Enabling _Quick Edit_ mode restored the scrolling functionality. Doesn't appear to be related to the Terminal app, but no idea why this stopped working. How do you enable quick edit?
Author
Owner

@coupez commented on GitHub (Sep 9, 2019):

I cannot scroll in any shell in Windows Terminal. Not Powershell, not CMD, not Ubuntu. I can move up and down using ctrl+shift+arrow up. When I open Powershell or Ubuntu by itself, scrolling works.

@coupez commented on GitHub (Sep 9, 2019): I cannot scroll in any shell in Windows Terminal. Not Powershell, not CMD, not Ubuntu. I can move up and down using ctrl+shift+arrow up. When I open Powershell or Ubuntu by itself, scrolling works.
Author
Owner

@TeamDman commented on GitHub (Oct 6, 2019):

Holding shift and scrolling on the window seems to work for me :/

@TeamDman commented on GitHub (Oct 6, 2019): Holding shift and scrolling on the window seems to work for me :/
Author
Owner

@AlessandroVol23 commented on GitHub (Nov 4, 2019):

Just experienced this issue in the native Ubuntu terminal, as well as a random change of the font size to a much smaller font. Enabling Quick Edit mode restored the scrolling functionality. Doesn't appear to be related to the Terminal app, but no idea why this stopped working.

I have the same problem and I am not sure how to enable quick edit. Tried it with setting a Reg Key in HKEY_CURRENT_USER\Console\C:_Program Files_WindowsApps_CanonicalGroupLimited.Ubuntu18.04.../QuickEdit with type DWORD -> 1

But it didn't work.

It works for other shells such as PowerShell.

-- Update:
So it is a problem with tmux. If I close tmux it is working for me. Have to figure out a workaround here.

@AlessandroVol23 commented on GitHub (Nov 4, 2019): > Just experienced this issue in the native Ubuntu terminal, as well as a random change of the font size to a much smaller font. Enabling _Quick Edit_ mode restored the scrolling functionality. Doesn't appear to be related to the Terminal app, but no idea why this stopped working. I have the same problem and I am not sure how to enable quick edit. Tried it with setting a Reg Key in `HKEY_CURRENT_USER\Console\C:_Program Files_WindowsApps_CanonicalGroupLimited.Ubuntu18.04.../QuickEdit` with type DWORD -> 1 But it didn't work. It works for other shells such as PowerShell. -- Update: So it is a problem with tmux. If I close tmux it is working for me. Have to figure out a workaround here.
Author
Owner

@suikki commented on GitHub (Sep 1, 2020):

I can confirm that disabling quick edit also breaks scrolling. Also why is there no context menu when quick edit mode is not on?

@suikki commented on GitHub (Sep 1, 2020): I can confirm that disabling quick edit also breaks scrolling. Also why is there no context menu when quick edit mode is not on?
Author
Owner

@zadjii-msft commented on GitHub (Feb 9, 2021):

Hey so, this looks like it's an understood problem now. Disabling quick edit in the vintage console will break scrolling in WSL (as well as disable the context menu, because that's what quick edit does).

That's super weird, but understood, with an easy fix. Re-enable quick-edit mode. I'm gonna close this out. Thanks!

@zadjii-msft commented on GitHub (Feb 9, 2021): Hey so, this looks like it's an understood problem now. Disabling quick edit in the vintage console will break scrolling in WSL (as well as disable the context menu, because that's _what quick edit does_). That's super weird, but understood, with an easy fix. Re-enable quick-edit mode. I'm gonna close this out. Thanks!
Author
Owner

@suikki commented on GitHub (Feb 10, 2021):

(as well as disable the context menu, because that's what quick edit does).

What I meant that for me there is no context menu in the Ubuntu terminal regardless if quick edit is enabled or disabled. Normally if I disable quick edit, I can use the context menu. Also enabling quick edit is not a valid fix as I absolutely don't want to use it.

@suikki commented on GitHub (Feb 10, 2021): > (as well as disable the context menu, because that's _what quick edit does_). What I meant that for me there is no context menu in the Ubuntu terminal regardless if quick edit is enabled or disabled. Normally if I disable quick edit, I can use the context menu. Also enabling quick edit is not a valid fix as I absolutely don't want to use it.
Author
Owner

@Aissam-gif commented on GitHub (Mar 1, 2021):

Actually none of these changes fixed the problem for me , instead i found that i can scroll with "Fn" key + Arrow(Up or Down) hoping to get any other suggestions . Thanks !

@Aissam-gif commented on GitHub (Mar 1, 2021): Actually none of these changes fixed the problem for me , instead i found that i can scroll with "Fn" key + Arrow(Up or Down) hoping to get any other suggestions . Thanks !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#194