<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/CHANGELOG.md, branch 1.11.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.11.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.11.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2022-02-05T16:19:43Z</updated>
<entry>
<title>changelog: prepare for 1.11.0</title>
<updated>2022-02-05T16:19:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-05T16:19:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ccb0cd178ff6afe3dbf87ab2023dedc41cfe6670'/>
<id>urn:sha1:ccb0cd178ff6afe3dbf87ab2023dedc41cfe6670</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fcft: adapt to API changes in fcft-3.x</title>
<updated>2022-02-05T16:00:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-08-21T12:50:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e0227266cabc015c282774ac898e3f52dce943df'/>
<id>urn:sha1:e0227266cabc015c282774ac898e3f52dce943df</id>
<content type='text'>
Fcft no longer uses wchar_t, but plain uint32_t to represent
codepoints.

Since we do a fair amount of string operations in foot, it still makes
sense to use something that actually _is_ a string (or character),
rather than an array of uint32_t.

For this reason, we switch out all wchar_t usage in foot to
char32_t. We also verify, at compile-time, that char32_t used
UTF-32 (which is what fcft expects).

Unfortunately, there are no string functions for char32_t. To avoid
having to re-implement all wcs*() functions, we add a small wrapper
layer of c32*() functions.

These wrapper functions take char32_t arguments, but then simply call
the corresponding wcs*() function.

For this to work, wcs*() must _also_ be UTF-32 compatible. We can
check for the presence of the  __STDC_ISO_10646__ macro. If set,
wchar_t is at least 4 bytes and its internal representation is UTF-32.

FreeBSD does *not* define this macro, because its internal wchar_t
representation depends on the current locale. It _does_ use UTF-32
_if_ the current locale is UTF-8.

Since foot enforces UTF-8, we simply need to check if __FreeBSD__ is
defined.

Other fcft API changes:

* fcft_glyph_rasterize() -&gt; fcft_codepoint_rasterize()
* font.space_advance has been removed
* ‘tags’ have been removed from fcft_grapheme_rasterize()
* ‘fcft_log_init()’ removed
* ‘fcft_init()’ and ‘fcft_fini()’ must be explicitly called
</content>
</entry>
<entry>
<title>changelog: XF86Copy+XF86Paste are now recognized by default</title>
<updated>2022-02-05T15:42:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-05T15:42:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a339c40f5d537457d7486a385c9ae2a0b37ee823'/>
<id>urn:sha1:a339c40f5d537457d7486a385c9ae2a0b37ee823</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: LIGHT ARC: check for sqrt() failures</title>
<updated>2022-02-04T17:15:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-03T21:17:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e97e873b9ef448aa2796667ba1d0a69ffe2e07e0'/>
<id>urn:sha1:e97e873b9ef448aa2796667ba1d0a69ffe2e07e0</id>
<content type='text'>
Closes #914
</content>
</entry>
<entry>
<title>sixel: DECGRI (repeat) with a count of 0 should emit a single sixel</title>
<updated>2022-02-04T17:14:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-03T18:23:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9e8d553a21c3a96ede2c830de695f6a255538cdd'/>
<id>urn:sha1:9e8d553a21c3a96ede2c830de695f6a255538cdd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: resize: truncate instead of failing, when new size exceeds max size</title>
<updated>2022-02-04T17:14:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-03T18:20:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9150507209fd60a4eeb6374f7aabd3f1226f150f'/>
<id>urn:sha1:9150507209fd60a4eeb6374f7aabd3f1226f150f</id>
<content type='text'>
If the size we’re trying to set exceeds the configured max size,
truncate instead of failing.
</content>
</entry>
<entry>
<title>main: reset signal mask and signal handlers at startup</title>
<updated>2022-02-04T17:13:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-02T20:35:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8ca0eaa94c08961f955caf54bd5407d5ef53610b'/>
<id>urn:sha1:8ca0eaa94c08961f955caf54bd5407d5ef53610b</id>
<content type='text'>
This ensures processes spawned by us (e.g. the shell, new terminal
instances etc) don’t inherit a flawed signal mask, or having signals
unknowingly ignored.

Closes #854
</content>
</entry>
<entry>
<title>Merge branch 'fix-bash-completions'</title>
<updated>2022-02-03T18:33:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-03T18:33:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=63b12d4cdcaf94abe1bf8d2b5f2abfc6cd55028c'/>
<id>urn:sha1:63b12d4cdcaf94abe1bf8d2b5f2abfc6cd55028c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix bash completion for lists of short options</title>
<updated>2022-02-03T17:49:54Z</updated>
<author>
<name>Nicolai Dagestad</name>
<email>nicolai@dagestad.fr</email>
</author>
<published>2022-02-03T16:31:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0f49a8a0338dab302db877631068c0469cb88e19'/>
<id>urn:sha1:0f49a8a0338dab302db877631068c0469cb88e19</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: remove workaround for sway-1.5 bug - slow resizing of hidden windows</title>
<updated>2022-02-03T17:01:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-11T20:09:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=af4ae653493ecfbc570f1a16adc65a8c728dad0c'/>
<id>urn:sha1:af4ae653493ecfbc570f1a16adc65a8c728dad0c</id>
<content type='text'>
In Sway-1.5, sway waits for configure ACKs from hidden windows when
views are being resized. I.e. if you have e.g. a stacked view, with
one or more windows currently not visible, and you resize the stack,
then sway will emit configure events to all windows, and then wait for
ACKs before rendering the resized view.

The problem with this is that sway also does **not** call frame
callbacks on hidden windows. So if we have rendered one frame, and
thus registered a frame callback, we’ll never render any more frames
until the window becomes visible again. Ergo, if you resize the view
interactively, only the first resize actually happens. After that, all
hidden views are “stuck”, causing ACK timeouts.

We worked around this in foot by preempting the frame
callback. I.e. destroying it, and rendering the frame anyway.

This has fixed in sway-1.6, and thus we can remove the workaround.
</content>
</entry>
<entry>
<title>extract: ensure line-based selections are terminated with a newline</title>
<updated>2022-02-03T16:58:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-02T21:02:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=69e2bff8c8dbe0692651637539862cdb99aa9b30'/>
<id>urn:sha1:69e2bff8c8dbe0692651637539862cdb99aa9b30</id>
<content type='text'>
Closes #869
</content>
</entry>
<entry>
<title>selection: don’t quote file URIs on the alt screen</title>
<updated>2022-02-02T20:17:01Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-02T20:17:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5ee902551a44bb01429dec38fd5b315d94b28479'/>
<id>urn:sha1:5ee902551a44bb01429dec38fd5b315d94b28479</id>
<content type='text'>
Closes #379
</content>
</entry>
<entry>
<title>keymap: alt-tab (C-tab) now emits “ESC tab” by default</title>
<updated>2022-02-01T17:37:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-02-01T17:37:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=66801e4f336d3c8a99f454afbb914d6808907deb'/>
<id>urn:sha1:66801e4f336d3c8a99f454afbb914d6808907deb</id>
<content type='text'>
In our default mode (roughly equivalent to XTerm’s modifyOtherKeys=1),
alt-tab now emits ESC-tab instead of CSI 27;3;9~.

When modifyOtherKeys=2 is enabled (CSI &gt;4;2m), alt-tab emits the “old”
CSI 27 escape.

This better matches XTerm’s behavior.

Note that other alt-tab combos are ambiguous in XTerm, and thus they
are left unchanged here (i.e. we keep emitting CSI 27 escapes for
them).

Closes #900
</content>
</entry>
<entry>
<title>changelog: search for last searched-for string</title>
<updated>2022-01-29T16:50:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-27T17:40:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=eb33a0529ffaa64ea0da6a46ccacfd89131122fb'/>
<id>urn:sha1:eb33a0529ffaa64ea0da6a46ccacfd89131122fb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>replace gettimeofday with clock_gettime</title>
<updated>2022-01-15T16:05:45Z</updated>
<author>
<name>Pranjal Kole</name>
<email>pranjal.kole7@gmail.com</email>
</author>
<published>2022-01-15T09:26:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0da19a81bc9a94f83bfcf8c5af0e3571f751cf38'/>
<id>urn:sha1:0da19a81bc9a94f83bfcf8c5af0e3571f751cf38</id>
<content type='text'>
POSIX.1-2008 has marked gettimeofday(2) as obsolete, recommending the
use of clock_gettime(2) instead.

CLOCK_MONOTONIC has been used instead of CLOCK_REALTIME because it is
unaffected by manual changes in the system clock. This makes it better
for our purposes, namely, measuring the difference between two points in
time.

tv_sec has been casted to long in most places since POSIX does not
define the actual type of time_t.
</content>
</entry>
<entry>
<title>dcs: implement DECRQSS</title>
<updated>2022-01-14T12:52:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-13T14:36:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=add530e66d7709543bad6f958002437eac71a80d'/>
<id>urn:sha1:add530e66d7709543bad6f958002437eac71a80d</id>
<content type='text'>
This patch adds support for DECRQSS (request Selection or Setting),
for the following sub-queries:

* DECSTBM   Set Top and Bottom Margins
* SGR       Set Graphic Rendition
* DECSCUSR  Set Cursor Style

Closes #798
</content>
</entry>
<entry>
<title>changelog: XTGETTCAP</title>
<updated>2022-01-14T12:41:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-14T12:34:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b819d38f1e40bd9f0340f2511b00340f5a1c146c'/>
<id>urn:sha1:b819d38f1e40bd9f0340f2511b00340f5a1c146c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: improved handling of incompatible locales</title>
<updated>2022-01-13T10:47:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-11T20:37:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=820b15b844b32850a9274032de0ca30ce70703cf'/>
<id>urn:sha1:820b15b844b32850a9274032de0ca30ce70703cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: reset mouse button click counter when mouse moves</title>
<updated>2022-01-13T10:22:01Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-12T14:38:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e853c7139e83f6ad6222abe232238f861d96e436'/>
<id>urn:sha1:e853c7139e83f6ad6222abe232238f861d96e436</id>
<content type='text'>
As described in #883, creating a block selection (with ctrl+BTN_LEFT),
then *quickly* (within 300ms from) creating a new one, will, in fact,
_not_ create a new block selection, but a ‘select-word-whitespace’
selection (ctrl+BTN_LEFT-2).

A similar effect can be seen with plain selections (BTN_LEFT). Click
and drag to make a selection, but *release*, and make a new selection
within 300ms from the initial button press, and the new selection is
suddenly a word-based selection.

This happens because triggering a binding does *not* reset the button
click counter.

So, shouldn’t we just do that?

No, because we rely on this behavior to handle single-, double- and
triple-click actions. If we were to reset the button click handler,
then we’d have to instead delay triggering the first action with
300ms, which would make things appear laggy. If we don’t do this, it
would be impossible to double- and triple-click, since the
single-click action would keep resetting the click counter.

This patch takes a slightly different approach; we reset the click
counter when the mouse has moved “too much”. For now, “too much” is
when the cursor has moved to a different cell.

This way, single-, double- and triple-clicks continue to work as
before. But, creating actual selections, and then quickly releasing
and starting a new selection produces the expected results.

Closes #883
</content>
</entry>
<entry>
<title>input: reset view when pasting from primary</title>
<updated>2022-01-11T19:26:49Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-11T19:26:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=29c31054a1a4dc2b51a486829830b47ef5e8d772'/>
<id>urn:sha1:29c31054a1a4dc2b51a486829830b47ef5e8d772</id>
<content type='text'>
We’re already doing this for keyboard input, and regular clipboard
pastes.
</content>
</entry>
</feed>
