<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/terminal.h, branch 1.2.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.2.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.2.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-03-06T18:16:54Z</updated>
<entry>
<title>render: never render CSD and/or search box "immediately"</title>
<updated>2020-03-06T18:16:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-06T18:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c5a1af4e534f0f290ea885b221d7d37d020ac994'/>
<id>urn:sha1:c5a1af4e534f0f290ea885b221d7d37d020ac994</id>
<content type='text'>
Handle the CSDs and the search box the same way we handle the main
grid; when we need to redraw them, call
render_refresh_{csd,search}(). This sets a flag that is checked after
each FDM iteration. All actual rendering is done here.

This also ties the commits of the Wayland sub-surfaces to the commit
of the main surface.
</content>
</entry>
<entry>
<title>csd: initial implementation of minimize/maximize/close buttons</title>
<updated>2020-03-02T19:29:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-02T19:29:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9699c9b8bfcbd7f9ebef5ee4ffe370cb03b1c8a2'/>
<id>urn:sha1:9699c9b8bfcbd7f9ebef5ee4ffe370cb03b1c8a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: remember, and use, last unmaximized size</title>
<updated>2020-02-26T19:59:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-26T19:59:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ddbfb3676cce56d289271f8287a4389daea562f3'/>
<id>urn:sha1:ddbfb3676cce56d289271f8287a4389daea562f3</id>
<content type='text'>
When the compositor wants us to decide the size (it sends a configure
event with width/height == 0), then use the last unmaximized size, if
there is one.

If there isn't one, use the size from the user configuration.
</content>
</entry>
<entry>
<title>term: add term_surface_kind(), and track currently active surface</title>
<updated>2020-02-24T21:38:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-24T21:38:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7f270a9f01f8c2674a29a1fcd1b91c8ea67cf6ea'/>
<id>urn:sha1:7f270a9f01f8c2674a29a1fcd1b91c8ea67cf6ea</id>
<content type='text'>
This is needed to handle pointer motion and button events correctly,
since mouse actions in e.g. CSD surfaces are very different from mouse
actions in the main window.
</content>
</entry>
<entry>
<title>term: resize: pre-calculate right/bottom margins</title>
<updated>2020-02-24T17:38:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-24T17:38:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d804bc8579c93a57f16214a04b5b625ae380eb78'/>
<id>urn:sha1:d804bc8579c93a57f16214a04b5b625ae380eb78</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: track which grid image was created on</title>
<updated>2020-02-22T23:40:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T23:40:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a2b4bcbd4f6cb98e7e4ddf7e648fe2ee44505547'/>
<id>urn:sha1:a2b4bcbd4f6cb98e7e4ddf7e648fe2ee44505547</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: application configurable image max width/height</title>
<updated>2020-02-22T20:03:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T20:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=25b09b909ca39cee6432ffd10e179336dbc178e1'/>
<id>urn:sha1:25b09b909ca39cee6432ffd10e179336dbc178e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: application configurable palette size (color count)</title>
<updated>2020-02-22T13:02:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T13:02:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8e37a18083e8cdba1cfd4ee042d8f8edf7cfad39'/>
<id>urn:sha1:8e37a18083e8cdba1cfd4ee042d8f8edf7cfad39</id>
<content type='text'>
This implements the CSI escapes for retrieving and (re)setting the
palette size.
</content>
</entry>
<entry>
<title>sixel: clean up state machine</title>
<updated>2020-02-22T10:30:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T10:30:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=762526485113ea711dcf322063b1f3c6dc3e753e'/>
<id>urn:sha1:762526485113ea711dcf322063b1f3c6dc3e753e</id>
<content type='text'>
Use proper state names, and implement the state machine using switch
statements.
</content>
</entry>
<entry>
<title>sixel: use a struct coord for current sixel position</title>
<updated>2020-02-22T09:54:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T09:54:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f1936959603c7f1530c6ce72cfda1f64edcb0432'/>
<id>urn:sha1:f1936959603c7f1530c6ce72cfda1f64edcb0432</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: rename state SIXEL_SIXEL -&gt; SIXEL_GROUND</title>
<updated>2020-02-22T09:50:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T09:50:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1b728dcac823193d96a490b7f7ee1acfa782da7f'/>
<id>urn:sha1:1b728dcac823193d96a490b7f7ee1acfa782da7f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: resize image buffer dynamically</title>
<updated>2020-02-22T09:46:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-22T09:46:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=00c6d4dde1346dc5f3bee394f147b8195c46a28c'/>
<id>urn:sha1:00c6d4dde1346dc5f3bee394f147b8195c46a28c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: calculate image height in (cell) rows</title>
<updated>2020-02-21T23:05:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-21T23:05:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=63140a68f516c8b4616bf6c726d23a75b73e5713'/>
<id>urn:sha1:63140a68f516c8b4616bf6c726d23a75b73e5713</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: wip: maintain a list of finished, and "active" sixel images</title>
<updated>2020-02-21T22:40:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-21T22:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f0fc82f0987166b3fe4724e50da05ba611231c67'/>
<id>urn:sha1:f0fc82f0987166b3fe4724e50da05ba611231c67</id>
<content type='text'>
In unhook, add the generated image to a list of finished sixel images,
along with positioning and size information.

When rendering, loop this list of images, and render the images (or
parts of) that are visible.

When scrolling, check if any part of the images cover the re-cycled
lines, and if so, remove the *entire* image from the list.

This means we have the following limitations:

* The renderer always renders the whole (visible area of) the
  image(s). There are times when this isn't necessary - for example,
  when the image is scrolled inside the visible area.
* It would be nice if we could crop the image when parts of it is
  scrolled out.
</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>slave: prefix argv[0] with a '-' when spawning a login-shell</title>
<updated>2020-02-20T17:36:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-20T17:36:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b5efe984bbfec151b70d3450f4f18243313de497'/>
<id>urn:sha1:b5efe984bbfec151b70d3450f4f18243313de497</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: implement term_font_dpi_changed()</title>
<updated>2020-02-15T18:08:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-15T18:08:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d3ab6176dcf055e0f3b385aec0f4384e8cbba63'/>
<id>urn:sha1:4d3ab6176dcf055e0f3b385aec0f4384e8cbba63</id>
<content type='text'>
This function reloads the font *if* the DPI has changed. To handle
user run-time adjusted font sizes, we record the number of adjustments
made.

Then, when re-loading the font, we first load the font as specified in
the configuration. Then, we re-apply the size adjustment using
font_size_adjust().

Note that this means we end up loading the fonts twice; first using
the default size (but with adjusted DPI), and then again with the
adjusted size. This can probably be improved upon.

The existing font code has been refactored to avoid code
duplication. For example, term_init() now calls
term_font_dpi_changed() to load the initial fonts, instead of directly
instantiating them.

Finally, the way we calculate the DPI to use has changed: instead of
using the highest DPI of all available outputs, we use the highest DPI
of the output's we're actually mapped on. If we're not mapped at all,
we use the globally highest DPI.

Doing it this way means we usually only have to load the fonts
once. Otherwise, we'd end up using the default DPI of 96 when the
terminal is first instantiated (since it's not mapped at that time).

On a single monitor system, we'll use the globally highest DPI at
first, before being mapped. Then when we get mapped, we re-load the
fonts using the highest mapped DPI. But since they'll be the same,
we can skip actually reloading the fonts.
</content>
</entry>
<entry>
<title>term: convert cell 'linefeed' attribute to a row 'linebreak' property</title>
<updated>2020-02-14T21:39:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-14T21:39:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ce8005545d5bc94775f616d0caacd55e691e400f'/>
<id>urn:sha1:ce8005545d5bc94775f616d0caacd55e691e400f</id>
<content type='text'>
To do text reflow, we only need to know if a line has been explicitly
linebreaked or not. If not, that means it wrapped, and that we
should *not* insert a linebreak when reflowing text.

When reflowing text, when reaching the end of a row in the old grid,
only insert a linebreak in the new grid if the old row had been
explicitly linebreaked.

Furthermore, when reflowing text and wrapping a row in the new grid,
mark the previous row as linebreaked if either the last cell was
(the last column in the last row) empty, or the current cell (the
first column in the new row) is empty. If both are non-empty, then we
assume a linewrap.
</content>
</entry>
<entry>
<title>vt: tag cells that were form-feed:ed, to allow correct text reflow</title>
<updated>2020-02-10T20:54:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-10T20:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4a169f5643a5fae6ab2df39adeb32a3222d2811c'/>
<id>urn:sha1:4a169f5643a5fae6ab2df39adeb32a3222d2811c</id>
<content type='text'>
To handle text reflow correctly when a line has a printable character
in the last column, but was still line breaked, we need to track the
fact that the slave inserted a line break here.

Otherwise, when the window width is increased, we'll end up pulling up
the next line, when we really should have inserted a line break.
</content>
</entry>
<entry>
<title>term: add term_font_size_reset()</title>
<updated>2020-02-08T16:57:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-08T16:57:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6c0d00fcee760be86d13366cf5d1fbf9a78a34b2'/>
<id>urn:sha1:6c0d00fcee760be86d13366cf5d1fbf9a78a34b2</id>
<content type='text'>
</content>
</entry>
</feed>
