<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/vt.c, branch 1.2.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.2.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.2.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-02-10T20:54:37Z</updated>
<entry>
<title>vt: tag cells that were form-feed:ed, to allow correct text reflow</title>
<updated>2020-02-10T20:54:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-10T20:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4a169f5643a5fae6ab2df39adeb32a3222d2811c'/>
<id>urn:sha1:4a169f5643a5fae6ab2df39adeb32a3222d2811c</id>
<content type='text'>
To handle text reflow correctly when a line has a printable character
in the last column, but was still line breaked, we need to track the
fact that the slave inserted a line break here.

Otherwise, when the window width is increased, we'll end up pulling up
the next line, when we really should have inserted a line break.
</content>
</entry>
<entry>
<title>vt: ensure we never step outside our parameter and sub-parameter arrays</title>
<updated>2020-02-01T18:44:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-01T18:44:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8c32e3ccf0b7eb5fbb0fc017fdc8719a426bd275'/>
<id>urn:sha1:8c32e3ccf0b7eb5fbb0fc017fdc8719a426bd275</id>
<content type='text'>
We only support 16 parameters, and for each parameter, 16
sub-parameters. If we ever hit that limit (or rather, if the client
writes 17 (sub) parameters), log this and stop incrementing the
parameter index variable.

For performance reason, we implement the following behavior:

* We never increment the parameter index past the supported
  number. This ensures all code *accessing* the parameter list can do
  so without verifying the validity of the index.

* The *first* time we see too many parameters, and the first time we
  see too many sub parameters, log this. Then *never* log again. Even
  if we see too many parameters in a completely different escape. This
  is so that we don't have to keep a "have warned" boolean in the
  terminal struct, but can use a simple function local static
  variable.
</content>
</entry>
<entry>
<title>vt: collect (intermediate): log a warning if user supplied more than two intermediates</title>
<updated>2020-02-01T18:29:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-01T18:29:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=07a0c7238ccd14632816372e8297c1678dd81531'/>
<id>urn:sha1:07a0c7238ccd14632816372e8297c1678dd81531</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: collect (intermediate): log _which_ character we collected</title>
<updated>2020-02-01T18:29:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-01T18:29:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bbb7b60b177e5d9c223878e48d752dcabcda21a8'/>
<id>urn:sha1:bbb7b60b177e5d9c223878e48d752dcabcda21a8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: bug: state machine: csi entry: handle 0x3a/0x3b correctly</title>
<updated>2020-01-25T23:44:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-25T23:44:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4a64e4aebc7950ae810df67e2e3bd1cbf6b362dc'/>
<id>urn:sha1:4a64e4aebc7950ae810df67e2e3bd1cbf6b362dc</id>
<content type='text'>
0x3a/0x3b are ':' and ';'. These should not only switch to the 'csi
param' state, but also be parsed as a parameter.

This fixes an issue where a multi-parameter escape with the first
parameter omitted was parsed incorrectly - as if the first parameter
wasn't there.

I.e. "\e[;123r" was parsed as "\e[123r"
</content>
</entry>
<entry>
<title>vt: bug: fix check for error from mbrtowc()</title>
<updated>2020-01-23T16:39:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-23T16:39:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=75b8fc52b85c945e71a6fb6f2e616ee242b07b43'/>
<id>urn:sha1:75b8fc52b85c945e71a6fb6f2e616ee242b07b43</id>
<content type='text'>
mbrtowc() returns an unsigned. Need to cast to signed before checking
if less than zero.

This fixes an issue where invalid utf-8 sequences where treated as valid.
</content>
</entry>
<entry>
<title>term: factor out character printing to new function term_print()</title>
<updated>2020-01-20T17:34:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-20T17:34:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=300f83e66b08590a600a5356d6c69096fd6a3452'/>
<id>urn:sha1:300f83e66b08590a600a5356d6c69096fd6a3452</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dcs: initial handling of DCS in general</title>
<updated>2020-01-12T10:55:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T10:55:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5a6cbb8c3e4d23f8ab16552a02c6cc13207f8961'/>
<id>urn:sha1:5a6cbb8c3e4d23f8ab16552a02c6cc13207f8961</id>
<content type='text'>
Add data structure to term-&gt;vt. This structure tracks the free-form
data that is passed-through, and the handler to call at the end.

Intermediates and parameters are collected by the normal VT
parser. Then, when we enter the passthrough state, we call dcs_hook().

This function checks the intermediate(s) and parameters, and selects
the appropriate unhook handler (and optionally does some execution
already).

In passthrough mode, we simply append strings to an internal
buffer. This might have to be changed in the future, if we need to
support a DCS that needs to execute as we go.

In unhook (i.e. when the DCS is terminated), we execute the unhook
handler.

As a proof-of-concept, handlers for BSU/ESU (Begin/End Synchronized
Update) has been added (but are left unimplemented).
</content>
</entry>
<entry>
<title>Revert "vt: refactor"</title>
<updated>2019-12-20T22:59:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T22:59:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=56824e459dc67668a4b89743b5747b941ce93615'/>
<id>urn:sha1:56824e459dc67668a4b89743b5747b941ce93615</id>
<content type='text'>
This reverts commit a575204bc77c711047740d2328d26043e8c976cb.
</content>
</entry>
<entry>
<title>vt: refactor</title>
<updated>2019-12-20T22:45:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T22:45:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a575204bc77c711047740d2328d26043e8c976cb'/>
<id>urn:sha1:a575204bc77c711047740d2328d26043e8c976cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: visually compact the switch tables</title>
<updated>2019-12-20T22:38:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T22:38:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1bc8562026a42118771784c58299e213c187e2cf'/>
<id>urn:sha1:1bc8562026a42118771784c58299e213c187e2cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: remove enum action; add separate functions for each action instead</title>
<updated>2019-12-20T22:27:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T22:27:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5a0e27fd6cbb80c3163a1c58cc3e91d1fed84b2d'/>
<id>urn:sha1:5a0e27fd6cbb80c3163a1c58cc3e91d1fed84b2d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: remove debug assert</title>
<updated>2019-12-20T22:26:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T22:26:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=032f478661cb69e99debe7fc486db1cf54c3d4f7'/>
<id>urn:sha1:032f478661cb69e99debe7fc486db1cf54c3d4f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: use a pointer that we increment, instead of indexing</title>
<updated>2019-12-20T22:00:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T22:00:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9ad9e4ccaf1678aa3e77d14f477e0627de7b4aa7'/>
<id>urn:sha1:9ad9e4ccaf1678aa3e77d14f477e0627de7b4aa7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: use break, not continue</title>
<updated>2019-12-20T21:13:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T21:13:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=914b96cc9a552dd020f27df1bd2ae7d073fd7b80'/>
<id>urn:sha1:914b96cc9a552dd020f27df1bd2ae7d073fd7b80</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: no need to assign to term-&gt;vt.state for *every* input byte</title>
<updated>2019-12-20T21:12:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T21:12:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ee8a9674c45d7e552f1f98beef4223312d86874d'/>
<id>urn:sha1:ee8a9674c45d7e552f1f98beef4223312d86874d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: remove dead code</title>
<updated>2019-12-20T21:11:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T21:11:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f36752f4d05c8c93a9e5c6585d3aabdfedb0c3de'/>
<id>urn:sha1:f36752f4d05c8c93a9e5c6585d3aabdfedb0c3de</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: don't special case UTF-8 collect state</title>
<updated>2019-12-20T21:10:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T21:10:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d29de6f90a27a3f29d1ca0d01c26aa799c8aaa6b'/>
<id>urn:sha1:d29de6f90a27a3f29d1ca0d01c26aa799c8aaa6b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: convert SOS/PM/APC string from table lookup to switch</title>
<updated>2019-12-20T20:50:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T20:50:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2d79497093e7975d5fc24fc63dfc46c09a3ad501'/>
<id>urn:sha1:2d79497093e7975d5fc24fc63dfc46c09a3ad501</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: convert DCS from table lookup to switch</title>
<updated>2019-12-20T20:48:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-20T20:48:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ad1773d7bc144c93ae44483e11560662fda8113d'/>
<id>urn:sha1:ad1773d7bc144c93ae44483e11560662fda8113d</id>
<content type='text'>
</content>
</entry>
</feed>
