-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrated terminal scrolling not working in oh-my-zsh #7817
Comments
Are you scrolling using mouse/trackpad? Can you try ctrl+shift+arrow/page up/page down (or whatever the OS X equivalent is). |
|
@wallverb is right. Their points are all correct. |
I have experienced this. However, I am able to scroll with the trackpad if I place the cursor over the left side of the terminal (where my content is). If I move the cursor too far to the right, I cannot scroll. Maybe the scrollable element is assuming the minimum width necessary to contain the terminal text, rather than occupying the full width of the terminal. |
@masonicboom that is expected on stable, on the insiders build scrolling should be working as expected. |
I can't reproduce on Insiders, two finger trackpad scroll seems to work just fine? OS X Yosemite 10.10.5 on a 2014 MacBook Pro. |
@wallverb would you be able to pull down https://github.com/sourcelair/xterm.js and check if you can reproduce on the demo? |
@Tyriar pulled down and started demo - scrolling works fine, let me know what to do next :) |
Found the difference, in
In vscode |
The reason why it's set to true is due to this flow:
which then calls: which then does:
I hope it helps One update: seems like xterm demo is starting with bash, while vscode starts with my zsh (https://github.com/robbyrussell/oh-my-zsh) |
Interesting... Can you check what |
Message content is: It's definitely related to |
Submitted bug at xterm.js repo: xtermjs/xterm.js#151 For time being commenting out line |
Thanks for investigating this @wallverb! 👍 |
I am facing scrolling issues in ubuntu 14.04,VSCode version 1.2.1.On scrolling up the text in the console goes far left sometimes(on using ctrl+shift+PgUp) and invisible at other times(on using trackpad). |
@wallverb I think this is specific to oh my zsh, or at least a zsh that is printing an |
@richarddavenport just tried on my macbook and zsh works fine, I'll update the title accordingly. Since this is an upstream issue, let's centralize discussions in xtermjs/xterm.js#151 |
@Tyriar @wallverb I opened an issue with oh my zsh and found there is a fix for this issue. I'm running with this branch right now, and scrolling is working! |
The fix I had was setting the "width" CSS styling property of the "monoco-scrollable-element" to 100%. This immediately completely fixed the issue. This DIV was located as a child element of the "workbench.panel.terminal". |
@ext0 FYI that element was removed either in 1.3.0 or in the upcoming 1.4.0. |
@Tyriar Ah gotchya, I haven't updated yet. Good to know! |
I am also facing same issue on Windows 10 with VS Code V1.4.0. Ctrl+shift+up/down also not working. |
@technbuzz this is to do with oh-my-zsh, ctrl+up/down should scroll the terminal on Windows in the latest Insiders build. |
Same issue on MAC. Please fix, it's really annoying :(. |
@drptbl The issue is open for OS X, as stated in the opening comment. It's also an upstream issue, meaning that there are other projects that need to be fixed before this one can be fixed. Here's a workaround. |
It's really annoying!!! |
This should be fixed in the next insiders build. |
I'm having the same problem with zhs and bash. Most of the time it scrolls, sometimes it doesn't! VSC 1.15.1 |
@StefanoChiodino please create a new issue with more details |
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: