<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/terminal.c, branch 0.9.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=0.9.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=0.9.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2019-08-28T15:27:42Z</updated>
<entry>
<title>term: add term_reset_view() - make view follow end-of-output again</title>
<updated>2019-08-28T15:27:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-28T15:25:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=777863ac3e27464175699921fceb2c1fab163d0e'/>
<id>urn:sha1:777863ac3e27464175699921fceb2c1fab163d0e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: remove commented out code</title>
<updated>2019-08-23T18:07:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-23T18:07:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0a40a5b6a2a1243f9997ff5482582cb53b9f3fb6'/>
<id>urn:sha1:0a40a5b6a2a1243f9997ff5482582cb53b9f3fb6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scrolling: optimize row access by assuming number of rows is a power of 2</title>
<updated>2019-08-22T15:33:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-22T15:33:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7c7720a3ab314e471499194f114797ca7a40afde'/>
<id>urn:sha1:7c7720a3ab314e471499194f114797ca7a40afde</id>
<content type='text'>
With this assumption, we can replace 'a % b' with 'a &amp; (b - 1)'. In
terms of instructions, this means a fast 'and' instead of a slow
'div'.

Further optimize scrolling by:

* not double-initializing empty rows. Previously, grid_row_alloc()
  called calloc(), which was then followed by a memset() when
  scrolling. This is of course unnecessary.

* Don't loop the entire set of visible rows (this was done to ensure
  all visible rows had been allocated, and to prefetch the cell
  contents).

  This isn't necessary; only newly pulled in rows can be NULL. For
  now, don't prefetch at all.
</content>
</entry>
<entry>
<title>term: rename colors256 -&gt; table</title>
<updated>2019-08-21T16:50:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-21T16:50:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d8fb80ea32d3054ea0455b841e60677c86470fbb'/>
<id>urn:sha1:d8fb80ea32d3054ea0455b841e60677c86470fbb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: use colors256 array for *all* colors</title>
<updated>2019-08-21T16:47:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-21T16:47:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=631e0c0870d98a4b3f97c90a8f3d07d549fdf8fb'/>
<id>urn:sha1:631e0c0870d98a4b3f97c90a8f3d07d549fdf8fb</id>
<content type='text'>
That is, remove the 'regular' and 'bright' color arrays. This is
possible since the 256-color array is defined such that the first 16
colors map to the regular and bright colors.
</content>
</entry>
<entry>
<title>csi: move 256-color table into the terminal struct</title>
<updated>2019-08-21T15:56:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-21T15:56:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d7aaeaedee981371f1137c058b60322155e9ba00'/>
<id>urn:sha1:d7aaeaedee981371f1137c058b60322155e9ba00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>erase-cells: don't memset when keeping background color</title>
<updated>2019-08-20T19:11:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-20T19:11:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=776432ded3de540b12d210987d178e66749717ab'/>
<id>urn:sha1:776432ded3de540b12d210987d178e66749717ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: don't send mouse events if shift is being pressed</title>
<updated>2019-08-08T15:58:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-08T15:58:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=14d4a0a1c6773c6bab8c87ff47286575df996094'/>
<id>urn:sha1:14d4a0a1c6773c6bab8c87ff47286575df996094</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: cancel selection when scrolling wraps</title>
<updated>2019-08-05T18:16:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-05T18:16:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c06f141189c51450be3bfd896b9df7a9d423e79d'/>
<id>urn:sha1:c06f141189c51450be3bfd896b9df7a9d423e79d</id>
<content type='text'>
If we scroll enough, we'll eventually end up wrapping around the
entire scrollback buffer. At this point, a selection is no longer
valid, so cancel it.

Note: this was very obvious when scrolling in the alt screen, since
its scrollback buffer is what you see on the screen (i.e. it has no
scrollback).
</content>
</entry>
<entry>
<title>term: re-order switch-cases to be in X button order</title>
<updated>2019-08-05T16:59:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-05T16:59:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=528ee9925c8f88cafe4313959daf3c1d4c2d5b90'/>
<id>urn:sha1:528ee9925c8f88cafe4313959daf3c1d4c2d5b90</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: fix mouse button mapping to X button numbers</title>
<updated>2019-08-05T16:32:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-05T16:32:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c15d5467403dbf4c71993419a02fb759018790eb'/>
<id>urn:sha1:c15d5467403dbf4c71993419a02fb759018790eb</id>
<content type='text'>
BACK should be 4, FORWARD 5.
</content>
</entry>
<entry>
<title>term: cell erase: reset *all* attributes *except* background</title>
<updated>2019-08-03T17:26:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-03T17:26:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9a0d440e953c5f8c9a93f1c19ec614d103cad3fb'/>
<id>urn:sha1:9a0d440e953c5f8c9a93f1c19ec614d103cad3fb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cell: pack more efficiently and store glyph as a wchar</title>
<updated>2019-08-02T16:19:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-02T16:19:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d7993b36fa3f97e26c527c37b36eb9321b79791'/>
<id>urn:sha1:4d7993b36fa3f97e26c527c37b36eb9321b79791</id>
<content type='text'>
The 'attributes' struct is now 8 bytes and naturally packed (used to
be 9 bytes, artificially packed).

'cell' struct is now 12 bytes, naturally packed (used to be 13 bytes,
artificially packed).

Furthermore, the glyph is stored as a wchar instead of a char*. This
makes it easier (faster) to do glyph lookup when rendering.
</content>
</entry>
<entry>
<title>term: implement reset</title>
<updated>2019-08-01T18:51:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-01T18:51:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ab92abbd21fd65c313880b4765aa119ff60311f7'/>
<id>urn:sha1:ab92abbd21fd65c313880b4765aa119ff60311f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: break out 'flash' to a separate 'term' function</title>
<updated>2019-07-30T20:06:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-30T20:06:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e3dc184882e6512453929a6a8932785a6658aaab'/>
<id>urn:sha1:e3dc184882e6512453929a6a8932785a6658aaab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: add a 'clean' bit to each cell; only render cells that aren't clean</title>
<updated>2019-07-30T16:03:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-30T16:03:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=85ef9df586dfca22d16d04c9777dc38ff896223a'/>
<id>urn:sha1:85ef9df586dfca22d16d04c9777dc38ff896223a</id>
<content type='text'>
This patch takes a bit from the foreground color value in a
cell (todo: split up foreground/background into bitfields with a
separate field for 'foreground/background' has been set), and only
re-renders cells that aren't marked as clean.

Note: we use a 'clean' bit rather than a 'dirty' bit to make it easy
to erase cells - we can (keep doing) do that by simply memsetting a
cell range to 0.
</content>
</entry>
<entry>
<title>term: make sure to update 'current row' when restoring saved cursor</title>
<updated>2019-07-23T15:57:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-23T15:57:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f5a6304850fd7344f72355416cfbfd69b76482c4'/>
<id>urn:sha1:f5a6304850fd7344f72355416cfbfd69b76482c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: track current window title in terminal struct</title>
<updated>2019-07-21T15:35:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-21T15:35:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=97350f6488c9e431d4b93a173734c9a3735769d5'/>
<id>urn:sha1:97350f6488c9e431d4b93a173734c9a3735769d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>terminal: foreground/background in cell attributes are now uint32_t</title>
<updated>2019-07-16T11:17:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-16T11:17:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ccc8ef9606d90e7b032f6b20f965758df1774a58'/>
<id>urn:sha1:ccc8ef9606d90e7b032f6b20f965758df1774a58</id>
<content type='text'>
This reduces the cell size, and thus improves the cache behavour
</content>
</entry>
<entry>
<title>csi: implement FocusIn/Out events</title>
<updated>2019-07-16T08:34:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-16T08:34:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7f6a4f4b6bc5c66898efe2ccb588d0aa1e74c525'/>
<id>urn:sha1:7f6a4f4b6bc5c66898efe2ccb588d0aa1e74c525</id>
<content type='text'>
</content>
</entry>
</feed>
