Terminus: Scrollbars

Created on 2 Jul 2017  路  11Comments  路  Source: Eugeny/terminus

It would be good to have scrollbars so that user can scroll up and down easily.

Confirmed Enhancement

Most helpful comment

All 11 comments

I'm able to scroll on Windows without issue. Do you have anything in your $PSProfile that would affect console behavior/shell size?

@naeemkhan12 which shell are you using?

I'm able to scroll with mouse but not with trackpad.

i am using git bash version 2.13.0.windows.1
Terminus 1.0.0-alpha 15
windows 8.1 pro.

Are you able to scroll with your mouse or are you concerned with the lack of a scroll bar on the side?

As it is difficult to scroll with touch-pad of laptop so scroll bar is what i am concerned with 馃樃 .

Scrollbars would be a great idea as some of the many users faces the issues with touch pad in linux. BTW +1 for the terminus its awesome.

Looks like manipulating the scroll position inside of hterm is actually pretty easy. You can get a handle on the frame, and then the screen component.

frame.contentDocument.querySelector('x-screen').scrollTo(0, 0);

^ Seems to work exactly as expected, which means building a scrollbar component that interacts with hterm screen should be fairly straightforward. I'll take a crack at it and see if I can get something working.

Okay, I've got basic functionality working for a scrollbar

image

xterm frontend will be the default in the future and has a built-in scrollbar, and hterm scrollbar plugin is availabile, so I'm closing this for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

helloxz picture helloxz  路  17Comments

smithomaster picture smithomaster  路  19Comments

lonkaars picture lonkaars  路  14Comments

ponsfrilus picture ponsfrilus  路  15Comments

abalter picture abalter  路  18Comments