[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Request for new terminfo capability (DECCARA extended)
From: |
Kovid Goyal |
Subject: |
Request for new terminfo capability (DECCARA extended) |
Date: |
Wed, 7 Feb 2018 08:23:48 +0530 |
User-agent: |
Mutt/1.9.3 (2018-01-21) |
Hi,
In light of the various problems with background color erase, as
documented here:
http://invisible-island.net/ncurses/ncurses.faq.html#bce_mismatches
I'd like to propose a new boolean capability for terminfo named (something like)
sgr_region.
If set, the terminal emulator should implement the extended DECCARA
escape code, as described here:
https://github.com/kovidgoyal/kitty/blob/master/protocol-extensions.asciidoc#setting-text-styles-colors-in-arbitrary-regions-of-the-screen
and the original DECCARA from the VT 510:
https://vt100.net/docs/vt510-rm/DECCARA.html
This allows applications to set any SGR attribute in an arbitrary
region of the screen, by sending a simple CSI code that starts with the
region co-ordinates followed by the SGR code(s) to set.
Ideally, there would be some way to specify a parametrized capability to
express this, but (and I may be mistaken here) I dont think terminfo has
the ability to encode this, without resorting to a separate capability
for each SGR code. A boolean capability means that ncurses using
applications cannot use it directly, however, for non ncurses using
applications (such as full screen editors) this is very useful.
--
_____________________________________
Dr. Kovid Goyal
https://www.kovidgoyal.net
https://calibre-ebook.com
_____________________________________
- Request for new terminfo capability (DECCARA extended),
Kovid Goyal <=