Skip to content

Cannot scroll in terminal window created by api until resize #20505

Closed

Description

From Anton Vildyaev (@hun1ahpu) on February 12, 2017 10:22

Environment data

VS Code version: 1.9.1
Python Extension version: 0.5.8
Python Version: 3
OS and version: win 10

Actual behavior

Mouse wheel scroll doesn't work
Scroll bar is not visible
After resizing the terminal window it starts working

Steps to reproduce:

  • Open any python file and execute any line of it

pythonscrollbar

Copied from original issue: DonJayamanne/pythonVSCode#739

Activity

  1. changed the title [-]Cannot scroll in terminal window[/-] [+]Cannot scroll in terminal window created by api until resize[/+] on Feb 13, 2017
  2. added
    bug
    terminal
    on Feb 13, 2017
  3. daviwil commented on Apr 5, 2017

    @daviwil
    Contributor

    Ahhh! I'm seeing this too in the PowerShell extension. I thought it was something I was doing wrong :)

  4. added
    help wanted
    on Apr 5, 2017
  5. jsk01 commented on May 5, 2017

    @jsk01

    The scrollbar now seems to work correctly in the insiders build when using powershell.

  6. Tyriar commented on May 5, 2017

    @Tyriar
    Contributor

    Jason Knighton (@jsk01) this bug was a little flaky, I don't think any changes were made in this area.

  7. gandhis1 commented on May 10, 2017

    @gandhis1

    Strangely enough, I used to not get this bug, but now I do on the latest official release. I get this behavior with a Python file that is executing in the terminal - I cannot use the mouse scroll button to scroll the terminal, nor is there a scroll bar that I can click on available. However, once I use the resize arrow or actually drag to resize, the scrolling begins to work. It's quite annoying

  8. stayfool commented on May 22, 2017

    @stayfool

    This problem is ok in windows 10.

  9. 3 remaining items

  10. chrmarti commented on Jul 11, 2017

    @chrmarti
    Collaborator

    Daniel Imms (@Tyriar) Can reproduce with Python's 'Run Selection' command on Windows. Logging this.charMeasure.height in Viewport.refresh() shows that charMeasure isn't initialized in time.

  11. added a commit that references this issue on Jul 11, 2017
    025943c
  12. Tyriar commented on Jul 12, 2017

    @Tyriar
    Contributor

    Sat together with Christof Marti (@chrmarti) yesterday to figure this thing out, the fix for this is coming in 1.15 🎉

    It was an obscure bug that was happening when the terminal was created before the panel was shown. It was caused by eb85ea8 to fix #22328. The reason is because since we were not setting the pty and xterm.js to the correct size before the terminal existed, xterm.js didn't bother doing a proper resize and the adjustments necessary (like re-measuring the character size) here https://github.com/sourcelair/xterm.js/blob/85c892c218c5529efd01569b7dc9b1123ae53582/src/xterm.js#L1942

  13. shmutalov commented on Jul 13, 2017

    @shmutalov

    Daniel Imms (@Tyriar) good to hear that 🐱

  14. added a commit that references this issue on Jul 13, 2017
    b800283
  15. added
    verified
    on Aug 2, 2017
  16. locked and limited conversation to collaborators on Nov 17, 2017
  17. added a commit that references this issue on Sep 6, 2026
    1c4f866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bughelp wantedterminalverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions