Skip to content

libtmt revival#7

Open
MurphyMc wants to merge 19 commits intodeadpixi:masterfrom
MurphyMc:revival
Open

libtmt revival#7
MurphyMc wants to merge 19 commits intodeadpixi:masterfrom
MurphyMc:revival

Conversation

@MurphyMc
Copy link
Contributor

@MurphyMc MurphyMc commented May 24, 2023

I get the sense that libtmt does not top your list of priorities at this time, but I've recently done a chunk of work on it and wanted to make sure you were at least aware whether you decide you want any of the changes or not. If for no other reason than so you know that your work on libtmt continues to be appreciated!

(I actually wouldn't recommend just pulling this at any rate, since it includes some potentially breaking changes, e.g., it's more aimed at the "linux" terminfo entry than "ansi" now. "ansi" was no longer working right for me... I suspect changes to the terminfo database broke things, but it also could have been something in tmux.)

MurphyMc added 19 commits May 24, 2023 12:13
Previously, there was no good way to tell which arguments were really
set when doing a mode set.  We now set all the unused ones to -1, which
is probably not valid.  The application can look through 8 arguments
and see the unset ones.

It's still a bit of a hack, but it's better.
Supporting this means setting G0/G1, supporting Shift In/Out, etc.
When Unicode decoding is turned on, if we display the Unicode
equivalent of an ACS character, we actually map it to the ACS
character.
Previously, if we were doing SGR with multiple arguments, the first
argument ends up determining the enabled state of all the others!
Previously, in form 1, this missed clearing the bottom line.
This implements CSI<L>;<H>r, which lets a program specify a range
of lines to scroll, leaving others alone.

It also implements code *similar* to how VT terminals deal with it
when a character is written to the last column in a line.  It
essentially defers actually advancing the line, because there
are cases where we don't want to (at least not yet), e.g., when
the cursor wraps onto the next line and immediately does a CR.
The behavior is not 100% the same as a VT, but it is close, and
I haven't yet noticed bad behavior.
This is used by the linux terminfo to scroll up.
Since we're currently aiming at the "linux" terminfo entry, the
key constants need to be updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant