<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/dcs.c, branch 1.6.3</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.3</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-12-16T13:30:49Z</updated>
<entry>
<title>vt: don’t ignore extra private/intermediate characters</title>
<updated>2020-12-16T13:30:49Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-16T13:30:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2e137c0a7e747a781ec311c6aad656873072b96c'/>
<id>urn:sha1:2e137c0a7e747a781ec311c6aad656873072b96c</id>
<content type='text'>
Take ‘\E(#0’ for example - this is *not* the same as ‘\E(0’.

Up until now, foot has however treated them as the same escape,
because the handler for ‘\E(0’ didn’t verify there weren’t any _other_
private characters present.

Fix this by turning the ‘private’ array into a single 4-byte
integer. This allows us to match *all* privates with a single
comparison.

Private characters are added to the LSB first, and MSB last. This
means we can check for single privates in pretty much the same way as
before:

  switch (term-&gt;vt.private) {
  case ‘?’:
      ...
      break;
  }

Checking for two (or more) is much uglier, but foot only supports
a *single* escape with two privates, and no escapes with three or
more:

  switch (term-&gt;vt.private) {
  case 0x243f:  /* ‘?$’ */
      ...
      break;
  }

The ‘clear’ action remains simple (and fast), with a single write
operation.

Collecting privates is potentially _slightly_ more complex than
before; we now need mask and compare, instead of simply comparing,
when checking how many privates we already have.

We _could_ add a counter, which would make collecting privates easier,
but this would add an additional write to the ‘clean’ action which is
really bad since it’s in the hot path.
</content>
</entry>
<entry>
<title>sixel: initial support</title>
<updated>2020-02-21T20:53:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-21T20:53:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9e3bfb1eab2c7b1c7a1ec6021331fddc57e8a266'/>
<id>urn:sha1:9e3bfb1eab2c7b1c7a1ec6021331fddc57e8a266</id>
<content type='text'>
This implements basic parsing of sixel data. Lots of limitations and
temporary solutions as this is still work-in-progress:

* Maximum image size hardcoded to 800x800
* No HLS color format support
* Image is always rendered at 0x0 in the terminal
</content>
</entry>
<entry>
<title>dcs: fix comment: ESU is *End* synchronized update</title>
<updated>2020-01-29T18:43:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-29T18:43:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=26d39fe96e78f835a8c8cee39e2a6f44699c4838'/>
<id>urn:sha1:26d39fe96e78f835a8c8cee39e2a6f44699c4838</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dcs: bsu/esu: convert warning log to debug log</title>
<updated>2020-01-26T14:28:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-26T14:28:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f74364979df99bb5c2b4e5ec1d3440dd21e28e44'/>
<id>urn:sha1:f74364979df99bb5c2b4e5ec1d3440dd21e28e44</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dcs: remove abort() from BSU/ESU</title>
<updated>2020-01-25T22:43:36Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-25T22:43:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=16237eccde23ef0585a3a31be37b780460cdc63b'/>
<id>urn:sha1:16237eccde23ef0585a3a31be37b780460cdc63b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dcs: remove assert; handler may be zero on unimplemented OCS command</title>
<updated>2020-01-20T17:35:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-20T17:35:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=97afba1b14eb60321651de96a8ec5c04c2dcf816'/>
<id>urn:sha1:97afba1b14eb60321651de96a8ec5c04c2dcf816</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: shorten application_synchronized_updates -&gt; app_sync_updates</title>
<updated>2020-01-12T11:55:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:55:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1623fc0c0a9b7b86ae633776d84f2b56b158976a'/>
<id>urn:sha1:1623fc0c0a9b7b86ae633776d84f2b56b158976a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dcs: bsu/esu: add link to spec</title>
<updated>2020-01-12T11:49:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:49:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d9bd1ef2d457220fb4237729b752b7738debcd61'/>
<id>urn:sha1:d9bd1ef2d457220fb4237729b752b7738debcd61</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dcs: abort() in bsu/esu</title>
<updated>2020-01-12T11:47:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:47:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=14982159e43908146ae7d17eef7e231bc6ebb6d4'/>
<id>urn:sha1:14982159e43908146ae7d17eef7e231bc6ebb6d4</id>
<content type='text'>
Since I haven't seen this in the wild, let's abort() to make sure we
catch when an application does this, so we can verify it really works.
</content>
</entry>
<entry>
<title>term/render: move {enable,disable}_application_synchronized_updates()</title>
<updated>2020-01-12T11:43:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:43:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bdf127fc7e26585cfddc73193751996033bbe88c'/>
<id>urn:sha1:bdf127fc7e26585cfddc73193751996033bbe88c</id>
<content type='text'>
From render -&gt; terminal
</content>
</entry>
<entry>
<title>render: rename render_{enable,disable}_refresh()</title>
<updated>2020-01-12T11:28:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:28:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6e474e77e50510d825bc6bf8fd60fad17b66a40d'/>
<id>urn:sha1:6e474e77e50510d825bc6bf8fd60fad17b66a40d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dcs: bsu/esu: call render_{disable,enable}_refresh()</title>
<updated>2020-01-12T11:21:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:21:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7b27fa857f74a884925f3b94b8604313f732a635'/>
<id>urn:sha1:7b27fa857f74a884925f3b94b8604313f732a635</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dcs: abort() in bsu/esu</title>
<updated>2020-01-12T11:02:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:02:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5ef55a7f524361a94270b13ff86e5f5a04226e45'/>
<id>urn:sha1:5ef55a7f524361a94270b13ff86e5f5a04226e45</id>
<content type='text'>
I **really** want to know if someone is using these...
</content>
</entry>
<entry>
<title>dcs: put: don't append data if buffer resize failed</title>
<updated>2020-01-12T11:00:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:00:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a2652d24479870a929a53be53724617f861ef9d7'/>
<id>urn:sha1:a2652d24479870a929a53be53724617f861ef9d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dcs: use default param value of 0 in log message</title>
<updated>2020-01-12T11:00:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:00:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a1ce31cd1df845620e738256535a70a3e3c676b6'/>
<id>urn:sha1:a1ce31cd1df845620e738256535a70a3e3c676b6</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>dcs: we have no parent terminal to pass through to</title>
<updated>2019-07-21T16:22:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-21T16:22:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2096753b522b16f6faafc91eca66fe98ad5b9757'/>
<id>urn:sha1:2096753b522b16f6faafc91eca66fe98ad5b9757</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dcs: sort of implement DCS passthrough</title>
<updated>2019-07-19T07:55:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-19T07:55:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b95332676863d902e410b04305ceb20760297fa3'/>
<id>urn:sha1:b95332676863d902e410b04305ceb20760297fa3</id>
<content type='text'>
We now store the passthrough characters in a buffer, and call
dcs_passthrough() on unhook.

However, dcs_passthrough() doesn't do anything.
</content>
</entry>
</feed>
