<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/main.c, 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-04T18:49:26Z</updated>
<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>wayland: only bind to 'presentation' interface if -p,--presentation-timings</title>
<updated>2019-12-31T15:12:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-31T15:12:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b100a82c2a1aa75bb8a27e2d2a1235b36359a161'/>
<id>urn:sha1:b100a82c2a1aa75bb8a27e2d2a1235b36359a161</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>main: let getopt_long() print error message</title>
<updated>2019-12-29T17:35:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-29T17:35:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ea1d072f52665b2c0b38996b04c5d87d48c8a690'/>
<id>urn:sha1:ea1d072f52665b2c0b38996b04c5d87d48c8a690</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: third member in "struct option" is a pointer</title>
<updated>2019-12-29T17:27:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-29T17:27:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=58a7ab76ba0427b85e38a483afe5919ab39e736c'/>
<id>urn:sha1:58a7ab76ba0427b85e38a483afe5919ab39e736c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: use a single printf() when printing usage</title>
<updated>2019-12-29T17:26:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-29T17:26:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=67bacc2a947b092f1434c4e5ff526acc3c43dd07'/>
<id>urn:sha1:67bacc2a947b092f1434c4e5ff526acc3c43dd07</id>
<content type='text'>
</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>
<entry>
<title>term: term_spawn_new: always spawn foot/footclient from PATH</title>
<updated>2019-12-21T14:29:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-21T14:29:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a484a65fefc89bce0f3b77503ad35bf86f329680'/>
<id>urn:sha1:a484a65fefc89bce0f3b77503ad35bf86f329680</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: term_spawn_new(): new function, spawns a new foot/footclient process</title>
<updated>2019-12-21T14:27:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-21T14:27:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=57de9feaa508fdd83c0d08c499232187c5f4b6c1'/>
<id>urn:sha1:57de9feaa508fdd83c0d08c499232187c5f4b6c1</id>
<content type='text'>
Bind ctrl+shift+return to it
</content>
</entry>
<entry>
<title>main: verify locale is UTF-8</title>
<updated>2019-12-19T06:25:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-19T06:25:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4c924ab14a032a6fcb695059463ee1cd7734b77a'/>
<id>urn:sha1:4c924ab14a032a6fcb695059463ee1cd7734b77a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: enable user to specify path to configuration file</title>
<updated>2019-12-17T18:08:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-17T18:08:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=caa76bcdeadad9ddf383b8aae542e16054a574de'/>
<id>urn:sha1:caa76bcdeadad9ddf383b8aae542e16054a574de</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: remove unused macros</title>
<updated>2019-12-17T18:08:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-17T18:08:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d15631e3deb6b0e0f72fba9b9eed228ffa0022fd'/>
<id>urn:sha1:d15631e3deb6b0e0f72fba9b9eed228ffa0022fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>log: caller can control syslog level</title>
<updated>2019-12-17T18:07:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-17T18:07:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a0fcec3a3d147f8d347af8f5fb2004b4a310b358'/>
<id>urn:sha1:a0fcec3a3d147f8d347af8f5fb2004b4a310b358</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: allow server socket path to be set on the command line</title>
<updated>2019-12-14T11:59:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-14T11:59:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=44f24b01bc4fb77806b992e57a6c91121bd93bda'/>
<id>urn:sha1:44f24b01bc4fb77806b992e57a6c91121bd93bda</id>
<content type='text'>
This adds an optional argument to -s,--server that allows the user to
override the default socket path (XDG_RUNTIME_DIR/foot.sock).
</content>
</entry>
<entry>
<title>main: stop initializing a default set of fonts</title>
<updated>2019-12-04T21:01:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-04T21:01:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bafe7cab287f395b9e4b0eb9ee828e22b2b46180'/>
<id>urn:sha1:bafe7cab287f395b9e4b0eb9ee828e22b2b46180</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fcft: font_from_name() no longer accepts a tllist</title>
<updated>2019-12-01T18:22:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-01T18:22:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e9fbb371df911947b8effde7a926d23bad6530d8'/>
<id>urn:sha1:e9fbb371df911947b8effde7a926d23bad6530d8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fcft: include &lt;fcft/fcft.h&gt;, and use fcft/stride.h instead of local copy</title>
<updated>2019-12-01T13:03:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-01T13:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=30335ef32ac8d04b4221b5a0988835767f9ea944'/>
<id>urn:sha1:30335ef32ac8d04b4221b5a0988835767f9ea944</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fcft: use fcft instead of local copy of font.c/font.h</title>
<updated>2019-12-01T12:43:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-01T12:43:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fd9c28464db8e3f334819ec9d773bf31ed37c088'/>
<id>urn:sha1:fd9c28464db8e3f334819ec9d773bf31ed37c088</id>
<content type='text'>
</content>
</entry>
<entry>
<title>font: pass dpi=96 to fontconfig</title>
<updated>2019-11-26T18:02:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-26T17:55:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ae91c53fb2aea05f13d98edc1f80bbb56e1f28f3'/>
<id>urn:sha1:ae91c53fb2aea05f13d98edc1f80bbb56e1f28f3</id>
<content type='text'>
TODO: use actual output PPI. Question is *which* output...
</content>
</entry>
<entry>
<title>log: set syslog facility to LOG_DAEMON when run in server mode</title>
<updated>2019-11-20T18:43:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-20T18:43:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=55a23a5b290140816a7f7c215ef90c8af1cb82ef'/>
<id>urn:sha1:55a23a5b290140816a7f7c215ef90c8af1cb82ef</id>
<content type='text'>
</content>
</entry>
</feed>
