<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/terminal.h, branch 1.1.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.1.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.1.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-01-12T11:55:19Z</updated>
<entry>
<title>term: shorten application_synchronized_updates -&gt; app_sync_updates</title>
<updated>2020-01-12T11:55:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:55:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1623fc0c0a9b7b86ae633776d84f2b56b158976a'/>
<id>urn:sha1:1623fc0c0a9b7b86ae633776d84f2b56b158976a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term/render: move {enable,disable}_application_synchronized_updates()</title>
<updated>2020-01-12T11:43:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:43:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bdf127fc7e26585cfddc73193751996033bbe88c'/>
<id>urn:sha1:bdf127fc7e26585cfddc73193751996033bbe88c</id>
<content type='text'>
From render -&gt; terminal
</content>
</entry>
<entry>
<title>render: add a timeout for application synchronized updates</title>
<updated>2020-01-12T11:40:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:40:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=afa1dbb7cc98277d8ee22e4bc5a2b3ee2c774662'/>
<id>urn:sha1:afa1dbb7cc98277d8ee22e4bc5a2b3ee2c774662</id>
<content type='text'>
This ensures we can recover from a crashing (or bad behaving)
application that sends a BSU but then never sends an ESU.
</content>
</entry>
<entry>
<title>term: rename refresh_prohibited -&gt; application_synchronized_updates</title>
<updated>2020-01-12T11:25:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:25:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cb8a0260f347cd73c7942030aa2bd12f9355ab17'/>
<id>urn:sha1:cb8a0260f347cd73c7942030aa2bd12f9355ab17</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: add render_{enable,disable}_refresh()</title>
<updated>2020-01-12T11:19:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:19:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b2935e2b89cf999d64a6322f58d6bf4307371463'/>
<id>urn:sha1:b2935e2b89cf999d64a6322f58d6bf4307371463</id>
<content type='text'>
Calling render_disable_refresh() causes update requests to that
terminal to be ignored.

Calling render_enable_refresh() re-enables updates.
</content>
</entry>
<entry>
<title>dcs: initial handling of DCS in general</title>
<updated>2020-01-12T10:55:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T10:55:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5a6cbb8c3e4d23f8ab16552a02c6cc13207f8961'/>
<id>urn:sha1:5a6cbb8c3e4d23f8ab16552a02c6cc13207f8961</id>
<content type='text'>
Add data structure to term-&gt;vt. This structure tracks the free-form
data that is passed-through, and the handler to call at the end.

Intermediates and parameters are collected by the normal VT
parser. Then, when we enter the passthrough state, we call dcs_hook().

This function checks the intermediate(s) and parameters, and selects
the appropriate unhook handler (and optionally does some execution
already).

In passthrough mode, we simply append strings to an internal
buffer. This might have to be changed in the future, if we need to
support a DCS that needs to execute as we go.

In unhook (i.e. when the DCS is terminated), we execute the unhook
handler.

As a proof-of-concept, handlers for BSU/ESU (Begin/End Synchronized
Update) has been added (but are left unimplemented).
</content>
</entry>
<entry>
<title>selection: update: don't dirty cells that don't change state</title>
<updated>2020-01-06T10:56:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-06T10:56:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=457eb573c441826d4b3843c6c0ad36de097f17d7'/>
<id>urn:sha1:457eb573c441826d4b3843c6c0ad36de097f17d7</id>
<content type='text'>
Previously when updating a selection, we would unmark *all* cells in
the old selection, and then mark all cells in the new selection.

This caused *all* cells to be dirtied and thus re-rendered.

Avoid this, by adding a temporary state to the cells' selected state.

Before unmarking the old selection, pre-mark the new selection using a
temporary state.

When unmarking the old selection, ignore cells in this temporary state.
When marking the new selection, ignore cells in this temporary
state (except clearing the temporary state).
</content>
</entry>
<entry>
<title>search: rename render.search_offset -&gt; render.search_glyph_offset</title>
<updated>2020-01-05T14:25:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-05T14:25:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7e178d63374fd26da27ed9cc862b4b88443d1917'/>
<id>urn:sha1:7e178d63374fd26da27ed9cc862b4b88443d1917</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: ensure cursor is always visible in the search box</title>
<updated>2020-01-05T14:16:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-05T14:16:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5a895202740963971423ee27d5c0f77a4a3f84cc'/>
<id>urn:sha1:5a895202740963971423ee27d5c0f77a4a3f84cc</id>
<content type='text'>
Maintain a view 'offset' (which glyph from the search string to start
rendering at).

This defines the start of the viewable area. The end is the offset +
the search box size (which is limited to the window size).

Adjust this offset whenever the cursor moves outside the viewable
area. For now, this is always done in the same way: set the offset to
the cursor position.

This means that when we're entering text at the end of the search
criteria (i.e. the normal case; we're simply typing), and the search
box reaches the window size, the cursor will jump to the start of the
search box, which will be empty. This could be confusing, but let's go
with for now.
</content>
</entry>
<entry>
<title>term: more comments in the 'render' sub-struct</title>
<updated>2020-01-04T18:56:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-04T18:56:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1060a4250b969b41dbb6ca00223d2ad3563d8ade'/>
<id>urn:sha1:1060a4250b969b41dbb6ca00223d2ad3563d8ade</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: trigger terminal refreshes in an FDM hook</title>
<updated>2020-01-04T18:49:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-04T18:49:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=99f471d738e0c2a0dcb61a559be3be512659d113'/>
<id>urn:sha1:99f471d738e0c2a0dcb61a559be3be512659d113</id>
<content type='text'>
In some cases, we end up calling render_refresh() multiple times in
the same FDM iteration. This means will render the first update
immediately, and then set the 'pending' flag, causing the updated
content to be rendered in the next frame.

This can cause flicker, or flashes, since we're presenting one or more
intermediate frames until the final content is shown.

Not to mention that it is inefficient to render multiple frames like
this.

Fix by:

* render_refresh() only sets a flag in the terminal

* install an FDM hook; this hook loops all terminals and executes what
  render_refresh() _used_ to do (that is, render immediately if we're
  not waiting for a frame callback, otherwise set 'pending' flag). for
  all terminals that have the 'refresh_needed' flag set.
</content>
</entry>
<entry>
<title>selection: selection_cancel() now sets 'kind' to SELECTION_NONE</title>
<updated>2020-01-04T11:09:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-04T11:09:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2a531327dde3c86edea2baf9503d08545d8f4767'/>
<id>urn:sha1:2a531327dde3c86edea2baf9503d08545d8f4767</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: store cell 'selected' state in the cells' attributes</title>
<updated>2020-01-04T11:03:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-04T11:03:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f12b1473fde2045d38750aa1051ad624e0fea2bc'/>
<id>urn:sha1:f12b1473fde2045d38750aa1051ad624e0fea2bc</id>
<content type='text'>
Instead of having the renderer calculate, for each cell, whether that
cell is currently selected or not, make selection_update() mark/unmark
the selected cells.

The renderer now only has to look at the cells' 'selected'
attribute. This makes the renderer both smaller and faster.
</content>
</entry>
<entry>
<title>selection: track selection type; normal or block selection</title>
<updated>2020-01-03T22:29:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T22:29:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d706e6828062aa35505d3893fb3c04b84985aa29'/>
<id>urn:sha1:d706e6828062aa35505d3893fb3c04b84985aa29</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: background alpha is not a floating point number</title>
<updated>2020-01-03T20:53:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T20:53:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ce4e99ebe28963ca9ddbcdc5f41af72df7d8ba1e'/>
<id>urn:sha1:ce4e99ebe28963ca9ddbcdc5f41af72df7d8ba1e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: add term_visual_focus_{in,out}</title>
<updated>2020-01-02T18:35:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-02T18:35:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6f281cebfb5db24c10a2cd0a10e2175fe9f6b514'/>
<id>urn:sha1:6f281cebfb5db24c10a2cd0a10e2175fe9f6b514</id>
<content type='text'>
These functions should be called when the terminal gets or loses
visual focus.

Note that this isn't necessarily the same as having keyboard focus.
</content>
</entry>
<entry>
<title>term: rename term_focus_{in,out} -&gt; term_kbd_focus_{in,out}</title>
<updated>2020-01-02T18:29:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-02T18:29:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e9325b958f6fb6416f77a1f0d9f8b049f6a6a46b'/>
<id>urn:sha1:e9325b958f6fb6416f77a1f0d9f8b049f6a6a46b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: add visually focused attribute to terminal struct</title>
<updated>2020-01-02T15:06:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-02T15:06:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=eb1ea2d80dd71c2799a961ca636722b74eb32286'/>
<id>urn:sha1:eb1ea2d80dd71c2799a961ca636722b74eb32286</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: optionally use the presentation time protocol to measure input lag</title>
<updated>2019-12-31T14:39:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-31T14:39:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5a074190960130b6136a398d83da43fd1e8ec7e2'/>
<id>urn:sha1:5a074190960130b6136a398d83da43fd1e8ec7e2</id>
<content type='text'>
This adds a flag, -p,--presentation-timings, that enables input lag
measuring using the presentation time Wayland protocol.

When enabled, we store a timestamp when we *send* a key to the
slave. Then, when we commit a frame for rendering to the compositor,
we request presentation feedback. We also store a timestamp for when
the frame was committed.

The 'presented' callback then looks at the input and commit
timestamps, and compares it with the presented timestamp.

The delay is logged at INFO when the delay was less than one frame
interval, at WARN when it was one frame interval, and at ERR when it
was two or more frame intervals.

We also update statistic counters that we log when foot is shut down.
</content>
</entry>
<entry>
<title>term: term_init: add 'cwd' argument</title>
<updated>2019-12-21T18:57:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-21T18:57:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=39146fac5cb7db4d0b68ba685722ca4713ddf722'/>
<id>urn:sha1:39146fac5cb7db4d0b68ba685722ca4713ddf722</id>
<content type='text'>
This is used when spawning the slave, to set its current working
directory just before we exec() the client.

In a regular foot instance, we set the cwd from getcwd().

In a foot server instance, each connecting client sends its cwd to the
server, and we use that.
</content>
</entry>
</feed>
