1) sel.alt used not to be respected in places where it should have been.
2) 1048 CSI handling turned off if not allowaltscreen following the
behaviour of xterm.
1) Update CURSOR_WRAPNEXT flag on resizing
2) Cleanup alternate screen handling, improving tnew (changed its name
to more appropriate tinit) and treset.
3) Lazy resizing
Separate alternate screen and default screen resizing. Only resize
the visible screen. Apply size to the other screen when swapping
screen.
4) Restore tcursor since the change is no longer required.
5) Improve and clean scrolling functions.
6) Handle 47, 1047, 1049 CSI sequences in the same way as xterm and vte
do.
0) Undid change in maxlatency, Added neomutt bar to worddelimiters.
1) selnormalize specifying tlinelen() to sel.nb.x wasn't a bug.
If sel.nb.x is greater than tlinelen, tlinelen would be less than
term.col - 1. (9708549676)
2) Fixed selsnap where snapping was only limited to the visible region.
3) Fixed externalpipe (close unnecessary fd's after fork).
4) tnew now doesn't call tresize and initializes things itself.
5) Fixed selection and clearing related bugs in tscrollup and simplified
it a little.
6) Fixed selscroll (sel coordinates are always relative to term.scr,
they used to be wrongly compared to absolute coordinates).
7) Fixed selected() function calls (input should be relative to
term.scr).
8) IMPLEMENTED TEXT-REFLOW.
9) Simplified(?) tresize. (It could be further simplified by entirely
removing rscrolldown() and current (col == term.col) handling of
non-alt screen and always using treflow(). But I didn't do it
thinking it would be costly performance wise for 30 odd extra lines
of code.
1) Implemented externalpipe
2) Fixed bug in selnormalize (sel.nb.x was being set over col-1)
3) Fixed bug in alacritty style clear screen
4) No need to use heap in tdumpline
1) chdir is quite costly, save pwd string instead
2) Configurable double-forking
3) Close file descriptors after fork
4) Additions to sigchld (shell is not the only possible child now)
and switch to sigaction
1) Lowered the value of HISTSIZE to 2000.
2) Scroll down on increasing height (on resizing).
3) No need to alloc maxcols to alt screen.
4) term.c.y is taken from tcurbuf for inactive screen. But it can be holding
a value from previous window dimensions if the terminal window was resized
while the screen was inactive. Fixed this bug by limiting the value of
term.c.y to term.row - 1.
5) Improved tresize function overall.