<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git, branch 1.7.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-03-20T13:02:12Z</updated>
<entry>
<title>changelog: 1.7.0</title>
<updated>2021-03-20T13:02:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-20T13:02:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=be6f7ff934f41049cd71a3faf658ecde23639c1d'/>
<id>urn:sha1:be6f7ff934f41049cd71a3faf658ecde23639c1d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson/pkgbuild: bump version to 1.7.0</title>
<updated>2021-03-20T13:01:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-20T13:01:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c1a64bfb1433e2c834343bde7f019a30430fcd87'/>
<id>urn:sha1:c1a64bfb1433e2c834343bde7f019a30430fcd87</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'add-bash-completions'</title>
<updated>2021-03-17T18:45:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-17T18:45:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=207d9045ca5d482f31189eb53db044a8bc593df1'/>
<id>urn:sha1:207d9045ca5d482f31189eb53db044a8bc593df1</id>
<content type='text'>
Closes #10
</content>
</entry>
<entry>
<title>Add: Bash completion for foot and footclient</title>
<updated>2021-03-17T12:10:28Z</updated>
<author>
<name>Simon Schricker</name>
<email>s.schricker@sillage.at</email>
</author>
<published>2021-03-13T18:04:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b169623b642d44109bb073b7b7fe2f1e88a5da69'/>
<id>urn:sha1:b169623b642d44109bb073b7b7fe2f1e88a5da69</id>
<content type='text'>
* use toe for terminfo, thanks Craig.
* adds optional dependency on bash-completion for positional arguments

Co-authored-by: Craig Barnes &lt;craigbarnes@protonmail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'optimized-print-function'</title>
<updated>2021-03-16T20:59:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-16T20:59:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=749ae49c48eebe2ac62ee6dac9dea5fc570d10fd'/>
<id>urn:sha1:749ae49c48eebe2ac62ee6dac9dea5fc570d10fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: update ASCII printer function pointer when switching to/from alt screen</title>
<updated>2021-03-16T12:07:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-16T12:07:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d2711190326e19396dcf6f4fa21e41e8059c9ca2'/>
<id>urn:sha1:d2711190326e19396dcf6f4fa21e41e8059c9ca2</id>
<content type='text'>
This is necessary since switching screen may change how many sixels we
have in the scrollback.
</content>
</entry>
<entry>
<title>term: update_ascii_printer(): log when we (actually) switch printer</title>
<updated>2021-03-16T11:57:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-16T11:57:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b601307faeb47374485e5990db5177556bce7715'/>
<id>urn:sha1:b601307faeb47374485e5990db5177556bce7715</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: open_config(): remove unused argument ‘conf’</title>
<updated>2021-03-16T08:54:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-16T08:54:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=11f2c85acf84b39cee2dae32b7a926a1e9a28968'/>
<id>urn:sha1:11f2c85acf84b39cee2dae32b7a926a1e9a28968</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: runtime switch between a ‘fast’ and a ‘generic’ ASCII print function</title>
<updated>2021-03-16T07:45:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-14T18:19:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=60b3ccc64115fb7e4b303eb1b93ba16d10fff1b5'/>
<id>urn:sha1:60b3ccc64115fb7e4b303eb1b93ba16d10fff1b5</id>
<content type='text'>
term_print() is called whenever the client application “prints”
something to the grid. It is called for both ASCII and UTF-8
characters, and needs to handle sixels, insert mode and ASCII
vs. graphical charsets.

Since it’s on the hot path, this becomes unnecessarily slow.

This patch adds a “fast” version of term_print(), tailored for the
common case: ASCII characters in non-insert mode, without any sixels
and non-graphical charsets.

A new function, term_update_ascii_printer(), has been added, and must
be called whenever:

* The currently selected charset *index* changes
* The currently selected charset changes (from ASCII to graphical, or
  vice verse)
* Sixels are added to the grid
* Sixels are removed from the grid
* Insert mode is enabled/disabled
</content>
</entry>
<entry>
<title>Merge branch 'term-print-assume-col-can-be-incremented'</title>
<updated>2021-03-16T07:44:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-16T07:44:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d8f0e701b5ce0190bba84bc3d9e151ced420562b'/>
<id>urn:sha1:d8f0e701b5ce0190bba84bc3d9e151ced420562b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: term_print(): assume we’re *not* at the right margin</title>
<updated>2021-03-14T19:47:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-14T19:47:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2451699c35f87a134144c2d61490653bf2bf4f5c'/>
<id>urn:sha1:2451699c35f87a134144c2d61490653bf2bf4f5c</id>
<content type='text'>
That is, assume we can, and should, increment the cursor column.

This changes the emitted assembly from:

   518fb:       8b 8b f8 05 00 00       mov    0x5f8(%rbx),%ecx
   51901:       ff c9                   dec    %ecx
   51903:       39 d1                   cmp    %edx,%ecx
   51905:       7e 11                   jle    51918 &lt;term_print.constprop.0+0x78&gt;
   51907:       ff c2                   inc    %edx
   51909:       89 50 10                mov    %edx,0x10(%rax)
   5190c:       5b                      pop    %rbx
   5190d:       5d                      pop    %rbp
   5190e:       41 5c                   pop    %r12
   51910:       c3                      ret
   51911:       0f 1f 80 00 00 00 00    nopl   0x0(%rax)
   51918:       c6 40 18 01             movb   $0x1,0x18(%rax)
   5191c:       5b                      pop    %rbx
   5191d:       5d                      pop    %rbp
   5191e:       41 5c                   pop    %r12
   51920:       c3                      ret

To:

   5191c:       41 8d 50 01             lea    0x1(%r8),%edx
   51920:       89 50 10                mov    %edx,0x10(%rax)
   51923:       3b 93 f8 05 00 00       cmp    0x5f8(%rbx),%edx
   51929:       0f 8d 21 01 00 00       jge    51a50 &lt;term_print.constprop.0+0x190&gt;
   5192f:       5b                      pop    %rbx
   51930:       5d                      pop    %rbp
   51931:       41 5c                   pop    %r12
   51933:       c3                      ret
   ...
   51a50:       c6 40 18 01             movb   $0x1,0x18(%rax)
   51a54:       44 89 40 10             mov    %r8d,0x10(%rax)
   51a58:       5b                      pop    %rbx
   51a59:       5d                      pop    %rbp
   51a5a:       41 5c                   pop    %r12
   51a5c:       c3                      ret

I.e. it cuts the normal path from 10 instructions down to 8. It
increases the "bad" path with one extra instruction.
</content>
</entry>
<entry>
<title>sixel: sixel_overwrite_at_cursor(): early exit when the image list is empty</title>
<updated>2021-03-14T13:19:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-14T13:19:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c5c3447ca8a71ab3cfd84a2b5fd2c193ef5b4fb4'/>
<id>urn:sha1:c5c3447ca8a71ab3cfd84a2b5fd2c193ef5b4fb4</id>
<content type='text'>
This avoids a call to sixel_overwrite_by_row() (where we also exit
early if the image list is empty).

This saves a couple of instructions to set up the arguments for
sixel_overwrite_by_row().
</content>
</entry>
<entry>
<title>Merge branch 'sixel-fix-max-geometry'</title>
<updated>2021-03-14T12:07:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-14T12:07:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2a723e1c4cf3b76be804a46db6223ad3ed478783'/>
<id>urn:sha1:2a723e1c4cf3b76be804a46db6223ad3ed478783</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'option-no-wait'</title>
<updated>2021-03-14T12:05:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-14T12:05:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e7a4378f1834a56cf8d45b7ae36c35f94d5ab345'/>
<id>urn:sha1:e7a4378f1834a56cf8d45b7ae36c35f94d5ab345</id>
<content type='text'>
Closes #395
</content>
</entry>
<entry>
<title>sixel: max geometry should be max geometry, not current window size</title>
<updated>2021-03-14T09:58:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-14T09:58:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6eb68ffbd99cc48aa688e59a230b4fca98fe0cb5'/>
<id>urn:sha1:6eb68ffbd99cc48aa688e59a230b4fca98fe0cb5</id>
<content type='text'>
“current geometry” will report whatever value is the smallest; the max
geometry or the current window size.

But “max geometry” always returns the configured max geometry.

This aligns foot’s behavior with XTerm.
</content>
</entry>
<entry>
<title>scripts: generate-alt-random: reduce number of emitted sixels</title>
<updated>2021-03-14T09:40:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-14T09:40:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=29709c696626ac4a024ae3f5aece8161527bbb56'/>
<id>urn:sha1:29709c696626ac4a024ae3f5aece8161527bbb56</id>
<content type='text'>
After emitting multiple color bands for each sixel row, the increased
amount of sixel data shifted the balance in the profiling data,
causing a performance regression in regular ASCII handling.
</content>
</entry>
<entry>
<title>Merge branch 'drain-pty-when-client-terminates'</title>
<updated>2021-03-13T20:36:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-13T20:36:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4fca142f710c6a24698798a6b8702f6d875eadaa'/>
<id>urn:sha1:4fca142f710c6a24698798a6b8702f6d875eadaa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add changelog entry, completions and man entry for -N, --no-wait</title>
<updated>2021-03-13T11:07:08Z</updated>
<author>
<name>Felipe Trzaskowski</name>
<email>felipe.trzaskowski@gmail.com</email>
</author>
<published>2021-03-13T10:49:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=452830bd08e5429ac00be4529e8304ac0de1faa1'/>
<id>urn:sha1:452830bd08e5429ac00be4529e8304ac0de1faa1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix code style issues and memory leak</title>
<updated>2021-03-13T11:01:38Z</updated>
<author>
<name>Felipe Trzaskowski</name>
<email>felipe.trzaskowski@gmail.com</email>
</author>
<published>2021-03-13T10:41:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2dc13cc13b0a8367c12dd217e3e5e08176e2e7ce'/>
<id>urn:sha1:2dc13cc13b0a8367c12dd217e3e5e08176e2e7ce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add option to detach the client process from the terminal instance</title>
<updated>2021-03-13T08:48:55Z</updated>
<author>
<name>Felipe Trzaskowski</name>
<email>felipe.trzaskowski@gmail.com</email>
</author>
<published>2021-03-12T23:46:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3ed93142667f052909beae43463501df37a4dcca'/>
<id>urn:sha1:3ed93142667f052909beae43463501df37a4dcca</id>
<content type='text'>
</content>
</entry>
</feed>
