tab-rs
tab-rs copied to clipboard
Implement a much more efficient scrollback buffer - which only prints the required output to reconstruct a session
Blockers to merge:
- Needs lots of tests
- Need to merge vt100 changes to upstream.
- Need to make the number of scrollback lines configurable in
~/.config/tab.yml
- Need to make sure this works on: Ubuntu, NixOS, Void Linux, OSX iTerm, OSX Alacritty, OSX Terminal
- Need to make sure this works with: vim, nano, kak, top, ytop, btm
Is there currently a workaround for this issue? Both clear
and reset
do not seem to help.
Is there currently a workaround for this issue? Both
clear
andreset
do not seem to help.
@gregwebs, AFAIK, this pull rquest aims to address https://github.com/austinjones/tab-rs/issues/333.
I think the workaround is to shutdown and restart tab
via:
$ tab --shutdown
I've been closing and reopening tabs with too long/large scrollback buffers. For example:
tab example_tab/ # tab loads for a few seconds with a bunch of shell history
exit
tab example_tab/ # create fresh tab with same name
Yeah, the best workaround at the moment is to exit
or tab -w my-tab
.
I was testing this and it has many 'screen corruption' bugs due to incorrect cursor position calculations. So it's not ready to merge/release yet. Still looking for a solution...
Thanks for the workaround suggestions! What solutions are other terminal multiplexers using for this problem?
Thanks for the workaround suggestions! What solutions are other terminal multiplexers using for this problem?
Tmux seems to use some cell datatype (if I’m correct) and it keeps track of which ones to draw at all times, per pane.
Edit: tmux handles scrolling by itself, by capturing mouse events, and swapping out these so-called cells instead of printing everything for scrollback.
Left: alacritty with neovim Right: alacritty with neovim in tab
For some reason coloring doesn't work?
Edit: I'm an idiot. :syntax on