cylc / cylc-flow

Cylc: a workflow engine for cycling systems.
https://cylc.github.io
GNU General Public License v3.0
335 stars 94 forks source link

tui: support the home/end keys in the log view #6422

Closed oliver-sanders closed 1 month ago

oliver-sanders commented 1 month ago

The widget we are using (urwid.ListBox) does not support the home/end keys. Other widgets bring other problems as ListBox very elegantly handles the issue that we want to keep the focus on the file selector button (so you can change file by pressing enter) whilst being able to scroll the log file (which is a different component all together).

This PR adds a somewhat hacky but rather effective solution. When the user presses "home/end", fire off the "page up/down" key until the window stops scrolling (which happens when we hit the top/bottom of the ListBox).

Check List