Check out my first novel, midnight's simulacra!

Terminfo: Difference between revisions

From dankwiki
No edit summary
No edit summary
Line 1: Line 1:
Terminfo differences that aren't really handled in terminfo include:
Terminal differences that aren't really handled in terminfo include:


* Precise mechanisms of <tt>setaf</tt>/<tt>setbf</tt>
* Precise mechanisms of <tt>setaf</tt>/<tt>setbf</tt> and interactions with palette-indexed color
* Whether ANSI 39 "Default foreground color" / ANSI 49 "Default background color" can be used distinctly (you just get <tt>op</tt>, often defined as <tt>op=\E[39;49m</tt>
* Whether ANSI 39 "Default foreground color" / ANSI 49 "Default background color" can be used distinctly (you just get <tt>op</tt>, often defined as <tt>op=\E[39;49m</tt>
* Strikethrough (<tt>sgr</tt> 9)
* Strikethrough (<tt>sgr</tt> 9)
Line 7: Line 7:
* Ordering of x/y coordinates when retrieving cursor location
* Ordering of x/y coordinates when retrieving cursor location


Some things I'd like to see added:
==Desired additions==


* A string which can match the terminal's reply to <tt>XTVERSION</tt>, to test whether we've got a terminfo database which doesn't correspond to the terminal we're actually using.
* A string which can match the terminal's reply to <tt>XTVERSION</tt>, to test whether we've got a terminfo database which doesn't correspond to the terminal we're actually using.
* [https://gitlab.freedesktop.org/terminal-wg/specifications/-/merge_requests/2 Application Synchronized Updates] (currently discovered via $2026 query) header and footer
* RGB default background discovery query
==Community extensions==
These capabilities are not described in the most recent terminfo man page at the time of this writing, but are more or less widespread.
* <tt>smxx</tt>/<tt>rmxx</tt> begin and end strikeout mode (terminfo has <tt>os</tt>, a boolean capability indicating that the terminal supports strikeout)
* <tt>smulx</tt>/<tt>rmulx</tt> begin and end extended underline mode (supports multiple underline forms)


[[CATEGORY: Terminals]]
[[CATEGORY: Terminals]]

Revision as of 21:05, 25 June 2021

Terminal differences that aren't really handled in terminfo include:

  • Precise mechanisms of setaf/setbf and interactions with palette-indexed color
  • Whether ANSI 39 "Default foreground color" / ANSI 49 "Default background color" can be used distinctly (you just get op, often defined as op=\E[39;49m
  • Strikethrough (sgr 9)
  • Kitty's weird replacement of RGB matching the default background color
  • Ordering of x/y coordinates when retrieving cursor location

Desired additions

  • A string which can match the terminal's reply to XTVERSION, to test whether we've got a terminfo database which doesn't correspond to the terminal we're actually using.
  • Application Synchronized Updates (currently discovered via $2026 query) header and footer
  • RGB default background discovery query

Community extensions

These capabilities are not described in the most recent terminfo man page at the time of this writing, but are more or less widespread.

  • smxx/rmxx begin and end strikeout mode (terminfo has os, a boolean capability indicating that the terminal supports strikeout)
  • smulx/rmulx begin and end extended underline mode (supports multiple underline forms)