<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/csi.c, branch 1.3.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.3.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.3.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-05-04T18:19:24Z</updated>
<entry>
<title>csi: ignore invalid parameters in 'CSI Ps &lt;space&gt; q'</title>
<updated>2020-05-04T18:19:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-04T18:19:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=af9e5aef2b0fe98320d9964439d5d9dffa2d558f'/>
<id>urn:sha1:af9e5aef2b0fe98320d9964439d5d9dffa2d558f</id>
<content type='text'>
Before this patch, an invalid parameter would not change the cursor
style, but could cause the cursor to start (or stop) blinking.
</content>
</entry>
<entry>
<title>util.h: new header file defining commonly used macros</title>
<updated>2020-05-01T09:46:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-01T09:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=69c3e744983e37662fa7b4f61482fb1d142e257c'/>
<id>urn:sha1:69c3e744983e37662fa7b4f61482fb1d142e257c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: log 'unhandled' for invalid 'target' and 'operation' in CSI ? S</title>
<updated>2020-04-25T09:39:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-25T09:39:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=33a53efa7179718d90f4cf353028bb0989041fc1'/>
<id>urn:sha1:33a53efa7179718d90f4cf353028bb0989041fc1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: fix typo - the '(' was in the wrong place</title>
<updated>2020-04-19T12:52:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-19T12:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=08485ce412ed02c1294187dae1d19e23f26240a8'/>
<id>urn:sha1:08485ce412ed02c1294187dae1d19e23f26240a8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: CSI Ps ; Ps ; Ps t: report logical pixels</title>
<updated>2020-04-18T21:20:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-18T21:20:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e93757198a6894ac36939b96a16a151c78e86a6f'/>
<id>urn:sha1:e93757198a6894ac36939b96a16a151c78e86a6f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: implement CSI Ps ; Ps ; Ps t reporting escape sequences</title>
<updated>2020-04-18T09:51:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-17T21:03:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fa8b0cbd80c5473e648c5fa1a71b0f74537d1af3'/>
<id>urn:sha1:fa8b0cbd80c5473e648c5fa1a71b0f74537d1af3</id>
<content type='text'>
A lot of the escape sequences on the "CSI Ps ; Ps ; Ps t" form are
expected to return a reply. Thus, not having these implemented means
we will hang if the client sends these escapes.

Not all of these escapes can be meaningfully implemented on Wayland,
and thus this implementation is best effort.

We now support the following escapes:

* 11t   - report if window is iconified (always replies "no")
* 13t   - report window position (always replies 0,0)
* 13;2t - report text area position (replies with margins, since we
          cannot get the window's position)
* 14t   - report text area size, in pixels
* 14;2t - report window size, in pixels
* 15t   - report screen size, in pixels
* 16t   - report cell size, in pixels
* 18t   - report text area size, in cells
* 19t   - report screen size, in cells
</content>
</entry>
<entry>
<title>grid: move 'cursor' state from terminal to grid</title>
<updated>2020-04-16T16:51:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-16T16:51:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=89559d5466502176995720a33316714012a638d1'/>
<id>urn:sha1:89559d5466502176995720a33316714012a638d1</id>
<content type='text'>
This way, the 'normal' and 'alt' grids have their own cursor state,
and we don't need to switch between them.
</content>
</entry>
<entry>
<title>Fix clang warnings</title>
<updated>2020-04-12T16:20:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-12T16:20:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1776f8bf1ecc2daec2573fb45a7dcbbbf7519cd8'/>
<id>urn:sha1:1776f8bf1ecc2daec2573fb45a7dcbbbf7519cd8</id>
<content type='text'>
All are printf() formatter related. Even if a variable is e.g. a
'short', when used in an expression like '&lt;variable&gt; - 1' it is
promoted to an 'int'.

Closes #16
</content>
</entry>
<entry>
<title>alt-screen: use a custom 'saved' cursor when switching to alt screen</title>
<updated>2020-03-16T11:00:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-16T11:00:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1006608093fbbe19103f63fc1140b122a3904500'/>
<id>urn:sha1:1006608093fbbe19103f63fc1140b122a3904500</id>
<content type='text'>
This fixes an issue where we failed to restore the cursor correctly
when exiting from the alternate screen, if the client had sent escapes
to save the cursor position while inside the alternate screen.

This was because we used the *same* storage for saving the cursor
position through escapes, as for saving it when entering the alternate
screen.

Fix by using a custom variable dedicated to normal &lt;--&gt; alt screen
switching.
</content>
</entry>
<entry>
<title>sixel: improve handling of images when reflowing the grids</title>
<updated>2020-03-13T17:47:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-13T17:44:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d482bf0a304b8224499bf9de9e0781518106ec7c'/>
<id>urn:sha1:d482bf0a304b8224499bf9de9e0781518106ec7c</id>
<content type='text'>
Update the sixels' 'row' attribute when re-flowing a grid, to ensure
it is rendered at the correct place.

This should work in most cases, but will break when the cell size has
changed (e.g. font size increase/decrease, or a DPI change).

This patch also moves the sixel image list from the terminal struct
into the grid struct. The sixels are per-grid after all.
</content>
</entry>
<entry>
<title>term: resize: pre-calculate right/bottom margins</title>
<updated>2020-02-24T17:38:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-24T17:38:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d804bc8579c93a57f16214a04b5b625ae380eb78'/>
<id>urn:sha1:d804bc8579c93a57f16214a04b5b625ae380eb78</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: delete all sixels on the 'alt' grid when switching back to 'normal'</title>
<updated>2020-02-22T23:41:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T23:41:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7fd380f253b3dd5768be32ac984294d7d1e13a41'/>
<id>urn:sha1:7fd380f253b3dd5768be32ac984294d7d1e13a41</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: application configurable image max width/height</title>
<updated>2020-02-22T20:03:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T20:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=25b09b909ca39cee6432ffd10e179336dbc178e1'/>
<id>urn:sha1:25b09b909ca39cee6432ffd10e179336dbc178e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: application configurable palette size (color count)</title>
<updated>2020-02-22T13:02:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T13:02:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8e37a18083e8cdba1cfd4ee042d8f8edf7cfad39'/>
<id>urn:sha1:8e37a18083e8cdba1cfd4ee042d8f8edf7cfad39</id>
<content type='text'>
This implements the CSI escapes for retrieving and (re)setting the
palette size.
</content>
</entry>
<entry>
<title>csi: DA: we now implement sixel</title>
<updated>2020-02-22T11:16:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T11:16:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a9971f4c328a1cdeae59dc767b57f10c47224c9d'/>
<id>urn:sha1:a9971f4c328a1cdeae59dc767b57f10c47224c9d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: log only the un-handled parameter in a multi-operation CSI</title>
<updated>2020-02-01T18:42:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-01T18:42:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cc5d596cd9d09082469662c8e867f2f8de786380'/>
<id>urn:sha1:cc5d596cd9d09082469662c8e867f2f8de786380</id>
<content type='text'>
Assume we don't handle 'CSI 4 X'. Furthermore, assume we receive the
following: 'CSI 1;2;3;4X'. In this case, only log '4X' as un-handled,
not the entire CSI string.
</content>
</entry>
<entry>
<title>csi: implement window and cell size reporting escapes</title>
<updated>2020-02-01T18:27:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-01T18:27:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4dde699107fc2203cdffafa68aeb11d9bebfec4b'/>
<id>urn:sha1:4dde699107fc2203cdffafa68aeb11d9bebfec4b</id>
<content type='text'>
This implements the following queries:

* report window size in pixels
* report cell size in pixels
* report window size in chars

We also log a warning for the remaining window operation queries.
</content>
</entry>
<entry>
<title>csi: recognize the X10 mouse tracking enabler/disabler</title>
<updated>2020-02-01T18:27:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-01T18:27:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dfa5cb41e0a804b0a3d39a44a59edf1330263ec3'/>
<id>urn:sha1:dfa5cb41e0a804b0a3d39a44a59edf1330263ec3</id>
<content type='text'>
We still don't implement it, but now we at least recognize it and log
a warning when it is implemented.
</content>
</entry>
<entry>
<title>csi: drop '28' from our DA response</title>
<updated>2020-02-01T18:26:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-01T18:26:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=38e2e037e67e723f19009e0ecc81c4f53010e399'/>
<id>urn:sha1:38e2e037e67e723f19009e0ecc81c4f53010e399</id>
<content type='text'>
We don't support rectangular editing
</content>
</entry>
<entry>
<title>vt: use 8-bit indices for parameters and sub parameters</title>
<updated>2020-02-01T18:24:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-01T18:24:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f13adf50dcbbf94da32c271fe38253113ba61d41'/>
<id>urn:sha1:f13adf50dcbbf94da32c271fe38253113ba61d41</id>
<content type='text'>
We only support 16 (sub) parameters and thus there's no need for
64-bit index variables.
</content>
</entry>
</feed>
