question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to add scrollbar?

See original GitHub issue

How can I add a scroll bar? Currently when I scroll it with mouse wheel it is okay, but I think it changes the dom to do so by having the exact number of divs as height, and modifying its content on mousewheel.

There is Terminal.prototype.bindMouse = function() { , by looking its context all I see it sends some characters but I am not sure. Any thoughts on this? I can at least bind two buttons, one up and down for emulating that mouse movement one by one.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
jakirkhamcommented, Oct 9, 2015

Part of why a scrollbar would be nice is scrolling in other ways is really sensitive. So, I will skip past the interesting section. Plus, the other reasons scrollbars are nice.

0reactions
soichihcommented, Aug 8, 2016

I tried to switch to xterm.js, but it doesn't seem to support terminal colors. All text is displayed in black & white. Also, xterm.js doesn't seem to support scrollbar..

xterm.js does support colors. I just had to add TERM=xterm-256color to the ENV.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you add a scroll bar to a div? - Stack Overflow
You need to add style="overflow-y:scroll;" to the div tag. (This will force a scrollbar on the vertical). If you only want a scrollbar...
Read more >
How To Create a Custom Scrollbar - W3Schools
Learn how to create a custom scrollbar with CSS. Custom Scrollbars. Custom Scrollbar Example. Note: The -webkit-scrollbar is not supported in Firefox or...
Read more >
Learn How to Create a Scrollbar in Html Table? - eduCBA
Suppose we want to add a scroll bar option in HTML, use an “overflow” option and set it as auto-enabled for adding both...
Read more >
How to add scrollbar to div - Educative.io
To add scrollbar on both axes, you can add the overflow property instead of adding both overflow-x and overflow-y properties. RELATED TAGS. html....
Read more >
Create custom scrollbars using CSS - YouTube
Having a custom scrollbar can help tie the branding of a site together on the page, as well as help ... Create custom...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found