selectel / pyte

Simple VTXXX-compatible linux terminal emulator
http://pyte.readthedocs.org/
GNU Lesser General Public License v3.0
649 stars 101 forks source link

[Question] How to implement a scrollbar? #165

Closed matkuki closed 1 year ago

matkuki commented 1 year ago

Hi,

Is there a way to get information of a HistoryScreen to get:

and a way to set the currently visible first line in the screen? I only found the HistoryScreen.position and the prev_page / next_page methods.

mumu-lhl commented 1 year ago

You can refer to QTerminalScreen of EAF PyQterminal. It implements the scrollbar.

matkuki commented 1 year ago

Ah, excellent thanks 👍