<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/scripts/generate-builtin-terminfo.py, branch 1.18.1</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.18.1</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.18.1'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2024-05-01T18:18:41Z</updated>
<entry>
<title>scripts: generate-builtin-terminfo: fix syntax error</title>
<updated>2024-05-01T18:18:41Z</updated>
<author>
<name>Artturin</name>
<email>Artturin@artturin.com</email>
</author>
<published>2024-05-01T18:18:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3a7ea1f44b5cac16c4d67cddb75c02638d59c55c'/>
<id>urn:sha1:3a7ea1f44b5cac16c4d67cddb75c02638d59c55c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: use \xNN for control characters</title>
<updated>2024-04-30T08:50:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-04-30T08:50:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3c4669061baadac105c274bd0d30aadb27b0b642'/>
<id>urn:sha1:3c4669061baadac105c274bd0d30aadb27b0b642</id>
<content type='text'>
Instead of emitting raw control characters (for e.g. bel, cub1 and
kbs), use \xNN C string escapes.
</content>
</entry>
<entry>
<title>dcs: xtgettcap: always reply with tigetstr(3) formatted "strings"</title>
<updated>2024-04-27T07:38:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-04-27T07:38:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a3debf7741d20826bdc6ab786f4ccf0ef7358619'/>
<id>urn:sha1:a3debf7741d20826bdc6ab786f4ccf0ef7358619</id>
<content type='text'>
That is, instead of sometimes replying with a "source" encoded
string (where e.g. '\E' are returned just like that, and not as an
actual ESC), always unescape all string values.

This also includes \n \r \t \b \f \s, \^ \\ \ \:, as well as ^x-styled
escapes.

Closes #1701
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: escape fixes</title>
<updated>2022-10-05T14:53:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-10-04T19:42:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f359a8d6bcad8c7f12c6f707caa7480fd193c92a'/>
<id>urn:sha1:f359a8d6bcad8c7f12c6f707caa7480fd193c92a</id>
<content type='text'>
* Remove ‘:’ escaping only in raw (non-parameterized) sequences
* Double-escape *all* escape characters in parameterized sequences
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: double-escape backslash in ST</title>
<updated>2022-10-05T14:53:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-09-27T17:05:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fd743b51736e99a097063c1f52c242e5592c298e'/>
<id>urn:sha1:fd743b51736e99a097063c1f52c242e5592c298e</id>
<content type='text'>
Fixes an issue with XTGETTCAP, where escape sequences terminated with
ST, and containing parameters were missing a trailing backslash.
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: add synthetic ‘name’ capability</title>
<updated>2022-09-28T19:09:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-09-28T19:09:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=88c3128515832e64fa78a814402e30c1470f6d37'/>
<id>urn:sha1:88c3128515832e64fa78a814402e30c1470f6d37</id>
<content type='text'>
Same as ‘TN’; reports the terminfo name.
</content>
</entry>
<entry>
<title>xtgettcap: switch from a table based internal structure, to a single char array</title>
<updated>2022-01-13T12:42:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-13T12:37:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5a032c4c6f6517e664ac7b920c3cfae8d5a25b05'/>
<id>urn:sha1:5a032c4c6f6517e664ac7b920c3cfae8d5a25b05</id>
<content type='text'>
Having the builtin terminfo DB as a table, with one entry per
capability/value pair was ineffective memory-wise - we ended up adding
~20K to the final binary size.

This patch changes the internal representation from a table, to a
single NULL-separated (and NULL-terminated) char array:

  cap1-name \0 cap1-value \0 cap2-name \0 cap2-value \0

The capabilities are still sorted; to lookup a capability we need to
scan from the beginning until we either find a match, or until the
capabilities from the DB sort higher (lexicographically) than the
searched-for capability.

The terminfo char array is 3.3K - more better than before.
</content>
</entry>
<entry>
<title>dcs: xtgettcap: handle boolean capabilities</title>
<updated>2022-01-13T12:42:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-04T21:01:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=44aad0941fff3e314ae42c3c578cfa6d61913198'/>
<id>urn:sha1:44aad0941fff3e314ae42c3c578cfa6d61913198</id>
<content type='text'>
Reply with DCS 1 + r &lt;cap&gt; ST
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: add custom capability ‘Co’</title>
<updated>2022-01-13T12:42:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-02T19:22:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7feab6092cf20f2b03f16aa0f147020971268e50'/>
<id>urn:sha1:7feab6092cf20f2b03f16aa0f147020971268e50</id>
<content type='text'>
This is a “special feature”, similar to “TN” and “RGB”:

   Co for termcap colors (or colors for terminfo colors)
</content>
</entry>
<entry>
<title>script: add generate-builtin-terminfo.py</title>
<updated>2022-01-13T12:42:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-02T10:06:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b8fc56ecb49e26ab3fcc37fae7565c279fa43b6b'/>
<id>urn:sha1:b8fc56ecb49e26ab3fcc37fae7565c279fa43b6b</id>
<content type='text'>
This script parses a terminfo source file and generates a C header
file with a static struct containing terminfo names and their values.

The table is sorted on the capability names
</content>
</entry>
</feed>
