←back to thread

103 points linsomniac | 4 comments | | HN request time: 0s | source
Show context
jchook ◴[] No.42182267[source]
Isn't it true that ANSI sequences can vary depending on the terminal emulator? Does this program account for that somehow?

In my shell scripts I often use `tput bold` etc instead of hardcoding the sequences.

replies(2): >>42182375 #>>42182672 #
1. Joker_vD ◴[] No.42182375[source]
Well, yes, the meaning can depend, although many sequences have standardized meanings. The format of the sequences itself is also standardized but of course, the terminals don't need to use it either! There has been lots of terminals that use their own bespoke control sequences.

Still, nowadays people who write new terminal emulators tend to approach with "do what xterm/libvte does" attitude which is quite sensible: very few people use actual, physical terminals anymore, and the software ones are, well, are generally based on xterm or libvte (or that third library I keep forgetting).

And when was the last time terminfo has been updated anyhow? Not to mention that it lacks info about modern features such as e.g. the version of Unicode used/supported by the terminal.

replies(1): >>42182768 #
2. zokier ◴[] No.42182768[source]
> And when was the last time terminfo has been updated anyhow?

Two weeks ago?

https://lists.gnu.org/archive/html/bug-ncurses/2024-11/msg00...

> misc/terminfo.src | 40 ++++++++++++++++++++++++++++++-------

replies(1): >>42184354 #
3. Joker_vD ◴[] No.42184354[source]
Wow, reading the history at the end of that file is... depressing. Well, good luck to Thomas E. Dickey, testing the vt/xterm-compatibiity of all the newfangled terminal emulators and maintaining capabilities on stuff like DJGPP in perpetuity.
replies(1): >>42189936 #
4. Gormo ◴[] No.42189936{3}[source]
What's depressing about it?