Thanks for the quick response!
(1) A left-side display-only scrollbar would work fine for me. I just want to be able to see at a glance where I am (thumb position), and (for files) whether it's a big file or a small file (thumb size).
(2) I have not implemented a terminal mouse application myself, but I know mouse information comes from the terminal on stdin. I found <
https://stackoverflow.com/a/5970472>, which has a fairly nice walkthrough. It looks like, if you assume xterm and compatible terminals, you can (1) send an escape sequence on startup; (2) process escape sequences _received on stdin_; and (3) send another escape sequence on shutdown. That would be very cool --- I don't know any other pager with an actual working scrollbar :D . However, my request on this ticket would be fully satisfied by #1.
On Sun Nov 01 14:54:26 2020, JPIERCE wrote:
Show quoted text> On Sun Nov 01 13:25:01 2020, CXW wrote:
> > In tp(1), I would like the right-hand column to be able to show a
> > vertical scrollbar. I have checked the documentation, but cannot
> > find
> > that option. Thanks for considering this request!
> Hmm. I'll have to think about this. It's certainly feasible but:
>
> 1) While breaking with most convention, it would be easier to add to
> the left
> since there's already infrastructure in place for decorating that side
> with
> other information. It could be added to the right of course, but at
> the expense of some additional code complexity.
> 2) More importantly (and perhaps a justification for going with left-
> side if
> implemented) a scroll bar is usually an interactive widget, but there
> would not be any way to do so that I'm aware of. I had looked into
> adding support for mouse scroll wheel, but the only way I know of to
> get that is via ncurses that has been specially compiled with 5+
> button support.
>
> Thoughts?