Re: [dev] [st] [PATCH 2/2] Keep end of lines in memory when resizing terminal
On Sun, Mar 26, 2017 at 06:10:37PM +0200, Laslo Hunhold wrote:
> On Sun, 26 Mar 2017 06:41:46 +0300
> Alexander Krotov <ilabdsf_AT_gmail.com> wrote:
>
> > Updated patch to clear up to maxcol in some cases and avoid glitches
> > when using ncurses programs.
>
> I support this proposition. It may be "troublesome" for programs which
> depend on terminal size, but if you think about it, ncurses
> applications and the like refresh when the terminal resizes and are not
> affected. Countless times I resized the master here and lost a decent
> amount of terminal output due to that.
The worst thing that can happen is that you reveal some garbage
when you increase size of your terminal, because program tried to clear
it when it was hidden.
I clear it even if it is hidden now with the second version of the
patch. For example when character is deleted and all characters after it
are shifted, invisible characters are just lost.
Glitches that happen when you type a long string at sh prompt and shrink
terminal are not worse, they are just different now.
> As discussed earlier, I would also support a ring-buffer-based
> scrollback for st. I hate using tmux and the like and it's a price
> worth paying.
I can live without scrollback, but what I dislike about st now is
that it loses lines when I just shuffle my terminals around with
dwm. When I have 3 windows (1 master, 2 stack) and move terminal
to stack and then back, half of the lines are lost. With scrollback,
it is stateless: what terminal displays depends only on the layout of
windows you end up with, not the history.
Received on Sun Mar 26 2017 - 19:20:39 CEST
This archive was generated by hypermail 2.3.0
: Sun Mar 26 2017 - 19:24:12 CEST