-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Scrollbar still visible after clearing screen and scrollback buffer with escape sequence #3319
Comments
Greetings @Tyriar . I would like to work on this issue. On preliminary analysis, i am able to trace till when the websocket 'message' event makes a call to terminal.write(). I need your advice on how to process the default prompt string as it can change from one OS to other and even with different bashrcs (on linux). Please guide me through the next steps. |
@Puneethnaik I don't think the prompt format has anything to do with this issue. The scroll bar is managed by the viewport: https://github.com/xtermjs/xterm.js/blob/master/src/browser/Viewport.ts |
@Tyriar my apologies 🙂 Thanks for directing me in the right direction. I will start studying Viewport.ts. |
@Puneethnaik |
@jerch noted. Thanks for the hints. I will take all this into account and also check out the comment. |
@Tyriar @jerch based on your valuable inputs, i have been studying the event listeners of _onScroll of bufferService, inputHandler. In CoreTerminal, there is a callback that fires the onScroll of CoreTerminal,when bufferService.onScroll event is fired. So in similar fashion, i included a callback that fires the onScroll of CoreTerminal, when inputHandler.onScroll event is fired. |
@Puneethnaik 👍 Yes, this sounds like the missing bit in the event propagation. Thanks for looking into it, for grabbing the events paths and locating the early cutoff of that event. Can only imagine how cumbersome it was to find it, events are somewhat hard to trace down due to their "cross-linking" nature. |
Thanks a lot @jerch, i will create a PR for it then after following protocol. As you said, it was a bit tricky to find the event listeners as they are spread out among various objects. But, i was confident mainly because of the beautiful engineering that has gone into creating this wonderful product. |
Scrollbar still visible after clearing screen and scrollback buffer with escape sequence #3319
Details
Steps to reproduce
ls -la
a couple of timesprintf '\u001B[2J\u001B[3J\u001B[H'
Run the previous steps in xterm.js (easiest is probably VS Code). The screen gets cleared, the scrollback buffer gets cleared as well, but the scrollbar is still visible.
Here's a screen capture of that behaviour
More context on this can be found #3315 (comment)
The text was updated successfully, but these errors were encountered: