scripts: generate-builtin-terminfo: add synthetic ‘name’ capability

Same as ‘TN’; reports the terminfo name.
This commit is contained in:
Daniel Eklöf 2022-09-28 21:09:35 +02:00
parent bb02b319d0
commit 88c3128515
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 2 additions and 0 deletions

View file

@ -48,6 +48,7 @@
* Support for adjusting the thickness of regular underlines ([#1136][1136]).
* Support (optional) for utmp logging with libutempter.
* `kxIN` and `kxOUT` (focus in/out events) to terminfo.
* `name` capability to `XTGETTCAP`.
[1136]: https://codeberg.org/dnkl/foot/issues/1136

View file

@ -166,6 +166,7 @@ def main():
entry.add_capability(IntCapability('Co', 256))
entry.add_capability(StringCapability('TN', target_entry_name))
entry.add_capability(StringCapability('name', target_entry_name))
entry.add_capability(IntCapability('RGB', 8)) # 8 bits per channel
terminfo_parts = []