You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if it is possible to implement a fixed-height window with blessed. We could have some scrolling feature with this (like less), either programmatically or through keybindings, with other part of the terminal screen being intact (rather than a full-screen window).
One example of similar terminal UI can be found in fzf (e.g. fzf --height 30%):
I quickly searched the current Terminal API but didn't find any relevant methods.
The text was updated successfully, but these errors were encountered:
jquast
changed the title
Feature Request: fixed-height scrollable window?
Feature Request: change scrolling region
May 4, 2020
We can absolutely add this to blessed, it is a very basic capability. This is a vt100 sequence, "set scrolling region", it is \x1b[10;20r, where 10 is starting row, 20 is ending row.
@jquast Thanks, I didn't know it was such a basic sequence. I tried the following example and it works for me. Look forward to blessed having this feature!
printf"\033[5;20r"# needs to set proper value for top,bottom
seq 1 100 | xargs -I{} bash -c 'echo {}; printf "\033[K"; sleep 0.01'printf"\033[r"# reset (it may clear the screen though)
I wonder if it is possible to implement a fixed-height window with blessed. We could have some scrolling feature with this (like
less
), either programmatically or through keybindings, with other part of the terminal screen being intact (rather than a full-screen window).One example of similar terminal UI can be found in fzf (e.g.
fzf --height 30%
):I quickly searched the current
Terminal
API but didn't find any relevant methods.The text was updated successfully, but these errors were encountered: