[dev] [st] [PATCH 2/2] Keep end of lines in memory when resizing terminal

2017-03-25 Thread Alexander Krotov
Updated patch to clear up to maxcol in some cases and avoid glitches when using ncurses programs. -- >8 -- Subject: [st] [PATCH 2/2] Keep end of lines in memory when resizing terminal --- st.c | 50 ++ st.h | 1 + 2 files changed, 27 insertions(+),

Re: [dev] [announce] ff2sixel: view farbfeld images in terminal

2017-03-25 Thread Alexander Krotov
On Sat, Mar 25, 2017 at 09:55:14PM +0200, Amer wrote: > > It is a bug in st and xterm. tmux and screen handle it by > > reflowing lines, wrapping them if necessary. > > ... And this tmux wrapping is thoroughly broken. > E.g. https://github.com/tmux/tmux/issues/516 > > > dvtm makes end of lines

[dev] [st] [PATCH 2/2] Keep end of lines in memory when resizing terminal

2017-03-25 Thread Alexander Krotov
--- st.c | 32 +--- st.h | 1 + 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/st.c b/st.c index ae93ade..2eab32a 100644 --- a/st.c +++ b/st.c @@ -1238,8 +1238,8 @@ tclearregion(int x1, int y1, int x2, int y2) if (y1 > y2) temp

[dev] [st] [PATCH 1/2] Fix commented out code

2017-03-25 Thread Alexander Krotov
--- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/st.c b/st.c index d7bd32a..ae93ade 100644 --- a/st.c +++ b/st.c @@ -2537,7 +2537,7 @@ tresize(int col, int row) } /* allocate any new rows */ - for (/* i == minrow */; i < row; i++) { + for (

Re: [dev] [announce] ff2sixel: view farbfeld images in terminal

2017-03-25 Thread Amer
It is a bug in st and xterm. tmux and screen handle it by reflowing lines, wrapping them if necessary. ... And this tmux wrapping is thoroughly broken. E.g. https://github.com/tmux/tmux/issues/516 dvtm makes end of lines invisible [1] but keeps them in memory. But this idea seems reasonable

Re: [dev] [announce] ff2sixel: view farbfeld images in terminal

2017-03-25 Thread Alexander Krotov
On Wed, Mar 22, 2017 at 11:55:33AM +0100, hiro wrote: > example: make the terminal smaller, make it bigger again: lines have > been cut off... It is a bug in st and xterm. tmux and screen handle it by reflowing lines, wrapping them if necessary. dvtm makes end of lines invisible [1] but keeps th