<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/terminal.c, branch 1.6.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-12-20T14:43:26Z</updated>
<entry>
<title>term: fix builds with debug logging enabled</title>
<updated>2020-12-20T14:43:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-18T16:32:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=eadc1c58a2a556ba094facf2824433345f7d96c8'/>
<id>urn:sha1:eadc1c58a2a556ba094facf2824433345f7d96c8</id>
<content type='text'>
DPI_AWARE_ON has been renamed to DPI_AWARE_YES
</content>
</entry>
<entry>
<title>fonts: size fonts using the scaling factor when output scaling is enabled</title>
<updated>2020-12-17T11:05:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-17T11:05:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0a821f2ed44f46086650a20a39c28f077d954aa2'/>
<id>urn:sha1:0a821f2ed44f46086650a20a39c28f077d954aa2</id>
<content type='text'>
This extends the new ‘dpi-aware’ option with a new default value,
‘auto’.

When set to ‘auto’, fonts are sized using monitors’ DPI when output
scaling is disabled. When output scaling is enabled, fonts are instead
sized using the scaling factor.

The reasoning here is that a user that has enabled output scaling is
obviously *not* relying on DPI scaling.

Output scaling can also be a way to compensate for different viewing
distances, in which case we do *not* want to break that by using DPI
scaling.

Users can still force DPI-only font sizing by setting ‘dpi-aware=yes’,
or disable it completely by setting ‘dpi-aware=no’.
</content>
</entry>
<entry>
<title>term: enabling application synchronized updates clear pending grid refresh</title>
<updated>2020-12-14T18:05:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-14T18:05:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6c8b034affae251cdb6645633c1b965c67e78850'/>
<id>urn:sha1:6c8b034affae251cdb6645633c1b965c67e78850</id>
<content type='text'>
This fixes issues with de-synchronized frames being rendered; we may
have scheduled a redraw earlier, that hasn’t yet triggered (probably
because we’re waiting for a frame callback), when we enable
application synchronized updates.

This means we risk rendering a partially updated state when the frame
callback finally arrives, if the application hasn’t yet ended its
synchronized update.
</content>
</entry>
<entry>
<title>config: add ‘notify’ to possible values for ‘bell’ in foot.ini</title>
<updated>2020-12-10T17:22:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-10T17:22:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=15d20af2a24664b09604f1ec5f121c38f1500c32'/>
<id>urn:sha1:15d20af2a24664b09604f1ec5f121c38f1500c32</id>
<content type='text'>
When `bell=notify`, foot will trigger a desktop notification when it
receives a BEL in an unfocused window.
</content>
</entry>
<entry>
<title>ime: store wchar version of pre-edit string in terminal struct</title>
<updated>2020-12-07T19:44:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-06T11:17:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=194fbff883e605a3a9afac4ecc66c6cf3cc6b7fa'/>
<id>urn:sha1:194fbff883e605a3a9afac4ecc66c6cf3cc6b7fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>codespell: currenly -&gt; currently, second instance</title>
<updated>2020-12-07T19:44:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-04T19:33:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e3b5a98ade9817a0288bdd4b78263c9961e77241'/>
<id>urn:sha1:e3b5a98ade9817a0288bdd4b78263c9961e77241</id>
<content type='text'>
</content>
</entry>
<entry>
<title>codespell: currenly -&gt; currently</title>
<updated>2020-12-07T19:44:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-04T19:08:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0fc2a1188c2d7400be63debaf16339af49fa804a'/>
<id>urn:sha1:0fc2a1188c2d7400be63debaf16339af49fa804a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: add functions to enable/disable IME, simplify code that enables IME</title>
<updated>2020-12-07T19:44:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-04T17:39:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b59d695b2b00157e403399af78b3128848a65e0f'/>
<id>urn:sha1:b59d695b2b00157e403399af78b3128848a65e0f</id>
<content type='text'>
We may want to be able to enable/disable IME run-time, even though we
have received an ‘enter’ IME event.

This enables us to do that.

Also add functions to enable/disable IME on a per-terminal instance
basis.

A terminal may have multiple seats focusing it, and enabling/disabling
IME in a terminal instance enables/disables IME on all those seats.

Finally, the code to enable IME is simplified; the *only* surface that
can ever receive ‘enter’ IME events is the main grid. All other
surfaces are sub-surfaces, without their own keyboard focus.
</content>
</entry>
<entry>
<title>ime: make IME compile-time optional</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-03T17:36:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=05083110c3fad046ccf0838a364150b8d2bab888'/>
<id>urn:sha1:05083110c3fad046ccf0838a364150b8d2bab888</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: render pre-edit text</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-02T17:52:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8c3d48c5cdb2ae4e8bdbdc48f155f53d1a92973b'/>
<id>urn:sha1:8c3d48c5cdb2ae4e8bdbdc48f155f53d1a92973b</id>
<content type='text'>
This is done by allocating cells for the pre-edit text when receiving
the text-input::done() call, and populating them by converting the
utf-8 formatted pre-edit text to wchars.

We also convert the pre-edit cursor position to cell positions (it can
cover multiple cells).

When rendering, we simply render the pre-edit cells on-top off the
regular grid. While doing so, we also mark the underlying, “real”,
cells as dirty, to ensure they are re-rendered when the pre-edit text
is modified or removed.
</content>
</entry>
<entry>
<title>csi: add new private mode that makes the Escape key emit "\E[27;1;27~"</title>
<updated>2020-11-29T04:04:57Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2020-11-29T04:04:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=31c73f0cf01e1d0bdcd1435136b010c1c1ab442c'/>
<id>urn:sha1:31c73f0cf01e1d0bdcd1435136b010c1c1ab442c</id>
<content type='text'>
This mode can be set by client programs with the DECSET, DECRST,
XTSAVE and XTRESTORE sequences by using 27127 as the parameter.

The sequence "\E[27;1;27~" is encoded in the same way as is done by
xterm's "modifyOtherKeys" mode. Even though xterm itself never emits
such a sequence for the Escape key, many programs already have
support for parsing this style of key sequence.
</content>
</entry>
<entry>
<title>term: remove read-only properties copied from the config</title>
<updated>2020-11-26T17:08:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-26T17:08:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=360cc8e6de8802015b3a4a744289c311beb8d82d'/>
<id>urn:sha1:360cc8e6de8802015b3a4a744289c311beb8d82d</id>
<content type='text'>
Use the config directly instead.
</content>
</entry>
<entry>
<title>sixel: change default max size to 10000x10000</title>
<updated>2020-11-23T19:10:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-23T19:10:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ba8b15d67592c3dfde264ccd441699377948c4cf'/>
<id>urn:sha1:ba8b15d67592c3dfde264ccd441699377948c4cf</id>
<content type='text'>
It used to be the size of the window. This caused images to be cropped
when the application emitting them didn’t change the max size.
</content>
</entry>
<entry>
<title>pgo: feed VT data through fdm_ptmx(), not vt_from_slave()</title>
<updated>2020-11-22T18:29:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-21T12:25:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=daa8d129c1b9d089aa622c0874f9d1a8c8b9cc6d'/>
<id>urn:sha1:daa8d129c1b9d089aa622c0874f9d1a8c8b9cc6d</id>
<content type='text'>
fdm_ptmx(), the FDM callback handler for ptmx data, is just as much in
the hot path as vt_from_slave(). It is also slightly more complicated
than a read() followed by a call to vt_from_slave().

As a result, some benchmarks performed significantly worse in a
partial PGO build than in a full PGO build, since fdm_ptmx() wasn’t
PGO:d.

To be able to feed data through fdm_ptmx(), we need to set up the
delayed rendering timer FDs, configure the timeout values, and provide
a readable FD it can read the VT data from.

The latter is done with a memory FD. This ensures *all* VT data is
loaded into memory before we feed it to the parser.
</content>
</entry>
<entry>
<title>terminal: use 96, not 75, for DPI when being DPI unaware</title>
<updated>2020-11-19T18:25:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-17T17:43:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c65fcacf43522a18e628f8c99c2d2e41344c900b'/>
<id>urn:sha1:c65fcacf43522a18e628f8c99c2d2e41344c900b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: add ‘dpi-aware’ option, defaulting to enabled</title>
<updated>2020-11-19T18:25:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-17T16:59:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8e7658a135ae05c790094f2b1b681c7f64f05cf0'/>
<id>urn:sha1:8e7658a135ae05c790094f2b1b681c7f64f05cf0</id>
<content type='text'>
When disabled, foot no longers uses outputs’ DPI to scale the
font. Instead, it uses the outputs’ scaling factor.

That is, instead of appending “:dpi=123” to the fontconfig string,
modify the “:pixelsize” or “:size” attribute.

Closes #206
</content>
</entry>
<entry>
<title>csi: implement “CSI ? 1035” - toggle Num Lock override</title>
<updated>2020-11-11T17:26:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-11T17:26:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2382d6b4487cc9d599578034db8117eb3f1cc75f'/>
<id>urn:sha1:2382d6b4487cc9d599578034db8117eb3f1cc75f</id>
<content type='text'>
This adds a num_lock_modifier state to the terminal, and hooks up
“CSI?1035h/l” to toggle it.
</content>
</entry>
<entry>
<title>tiocswinsz: fix compilation error on e.g. ppc64</title>
<updated>2020-10-29T17:06:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-29T17:06:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=beaf220f394984c97395b079eab260b225ee5378'/>
<id>urn:sha1:beaf220f394984c97395b079eab260b225ee5378</id>
<content type='text'>
On some platforms, TIOCSWINSZ has a very large value, &gt;
0x80000000.

On some platforms, the `request` argument to `ioctl(3)` is an `int`.

For platforms where both of the above is true, gcc will warn (and
error out if compiled with `-Werror`) on:

  ioctl(fd, TIOCSWINSZ, ...)

To silence this warning, we need to cast `TIOCSWINSZ` to an
integer.

However, doing this on platforms where `request` is an `unsigned long`
will result in `TIOCSWINSZ` being sign-extended (and thus we end up
with an invalid value).

It seems that casting to `unsigned int` works in both cases; it
silences the long -&gt; int conversion warning, while also preserving the
correct value in all cases.
</content>
</entry>
<entry>
<title>config: add font-bold, font-italic and font-bold-italic options</title>
<updated>2020-10-20T19:04:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-20T19:04:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2c101a21ee6df096dadd60a77b4cb190f8503490'/>
<id>urn:sha1:2c101a21ee6df096dadd60a77b4cb190f8503490</id>
<content type='text'>
These options lets the user configure custom fonts and styles, to use
with the bold and italic cell attributes.

By default, they are unset, meaning we use the bold/italic variants of
the regular font.

Closes #169.
</content>
</entry>
<entry>
<title>term: reset: enable/disable cursor blink depending on user configuration</title>
<updated>2020-10-13T17:28:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-13T17:28:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e6737034e59f323d47236c43d44bd7a174c0a604'/>
<id>urn:sha1:e6737034e59f323d47236c43d44bd7a174c0a604</id>
<content type='text'>
</content>
</entry>
</feed>
