<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/main.c, branch 1.3.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.3.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.3.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-05-08T16:43:03Z</updated>
<entry>
<title>main/client: be POSIXLY_CORRECT when parsing command line</title>
<updated>2020-05-08T16:43:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-08T16:43:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5b70f94827b365b44b0d28a8e3768fa9eb4268ca'/>
<id>urn:sha1:5b70f94827b365b44b0d28a8e3768fa9eb4268ca</id>
<content type='text'>
This means command line parsing stops when it encounters the first
nonoption argument.

The result is that one no longer need to use '--' to ensure arguments
are passed to the shell/command, instead of parsed by foot.

That is, instead of

  foot -- sh -c true

one can now do

  foot sh -c true

Arguments to foot *must* go before the command:

  foot --fullscreen sh -c true
</content>
</entry>
<entry>
<title>main: only set LC_CTYPE</title>
<updated>2020-04-29T18:09:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-29T18:09:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=242bcb9550456f24d0f4134dc232bad3fc7f27d3'/>
<id>urn:sha1:242bcb9550456f24d0f4134dc232bad3fc7f27d3</id>
<content type='text'>
This is the only locale variable we need. This ensures LC_NUMERIC in
particular remains as "C", which is needed by fcft when instantiating
new fonts.
</content>
</entry>
<entry>
<title>main: log locale</title>
<updated>2020-04-21T17:02:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-21T17:02:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=77af910330388fa96d0183ddc3ee73b7be221148'/>
<id>urn:sha1:77af910330388fa96d0183ddc3ee73b7be221148</id>
<content type='text'>
</content>
</entry>
<entry>
<title>conf: add 'title' conf option and --title command line option</title>
<updated>2020-04-01T17:59:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-01T17:59:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ec7a7684876c06764a583a1cefe2a93f6706e3ca'/>
<id>urn:sha1:ec7a7684876c06764a583a1cefe2a93f6706e3ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>conf: add app-id config option and --app-id command line option</title>
<updated>2020-04-01T16:40:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-01T16:40:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d52a870b493c17172766db3d0a76cd8f0c3204c'/>
<id>urn:sha1:4d52a870b493c17172766db3d0a76cd8f0c3204c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'master' into scroll-damage-performance</title>
<updated>2020-03-27T20:16:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-27T20:16:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=598ac4bcd0690995fbf94c7a2b17564dbf69a5f1'/>
<id>urn:sha1:598ac4bcd0690995fbf94c7a2b17564dbf69a5f1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>client: add --maximized and --fullscreen</title>
<updated>2020-03-27T20:14:49Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-27T20:14:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=758fd9fd58b25ab285868db7f36afdf9378df733'/>
<id>urn:sha1:758fd9fd58b25ab285868db7f36afdf9378df733</id>
<content type='text'>
We now create a copy of the config for each client, and updates it
with the values passed from the client.

Since we're not actually cloning it (and e.g. strdup() all strings
etc) we can't call conf_destroy() to free it, but need to free just
the strings we've replaced.
</content>
</entry>
<entry>
<title>foot: add --maximized and --fullscreen command line options</title>
<updated>2020-03-26T18:47:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-26T18:47:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=728e23863c301bce84b3000987e34f3de2c41f1f'/>
<id>urn:sha1:728e23863c301bce84b3000987e34f3de2c41f1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>shm: make max pool size user configurable (via a 'tweak' setting)</title>
<updated>2020-03-25T19:48:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-25T19:48:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0baa249d8b59007913dbf7db8aa8d94e6c2b9d44'/>
<id>urn:sha1:0baa249d8b59007913dbf7db8aa8d94e6c2b9d44</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: log version at startup</title>
<updated>2020-03-15T10:41:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-15T10:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ef5bacc6187e0b66c44cd32d7e26411b32d662b1'/>
<id>urn:sha1:ef5bacc6187e0b66c44cd32d7e26411b32d662b1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: free config if we fail to load the config</title>
<updated>2020-03-09T19:04:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-09T19:04:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c993148635ec80e64728c7b86069a4572faf448b'/>
<id>urn:sha1:c993148635ec80e64728c7b86069a4572faf448b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: check return value of getcwd()</title>
<updated>2020-02-20T17:46:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-20T17:46:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=eed5052ce855652ed067ea861b588b327535af75'/>
<id>urn:sha1:eed5052ce855652ed067ea861b588b327535af75</id>
<content type='text'>
</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>config: add 'login-shell' option</title>
<updated>2020-02-20T17:35:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-20T17:35:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6af4b87ec5067380a46adad4ce3c862db155c619'/>
<id>urn:sha1:6af4b87ec5067380a46adad4ce3c862db155c619</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: add --login-shell command line option</title>
<updated>2020-02-20T17:34:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-20T17:34:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d3071b817e7bcb8d2d180c7f0fc78617d403b556'/>
<id>urn:sha1:d3071b817e7bcb8d2d180c7f0fc78617d403b556</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: bug: -t requires an argument</title>
<updated>2020-02-15T20:05:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-15T20:05:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f0887df5c5b5b7fde8f2f44ab788f6c47241dc4d'/>
<id>urn:sha1:f0887df5c5b5b7fde8f2f44ab788f6c47241dc4d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: add --print-pid=FILE|FD</title>
<updated>2020-02-05T18:54:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-05T18:54:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=82b8853f17b943901776eddcb857089384a61dda'/>
<id>urn:sha1:82b8853f17b943901776eddcb857089384a61dda</id>
<content type='text'>
When specified, our PID is written to the specified file (or FD),
after we've successfully started up.
</content>
</entry>
<entry>
<title>main: add --print-pid=FILE|FD</title>
<updated>2020-02-05T18:53:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-05T18:53:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=00d76784f42408bdf46a8b1e753536f033fd9e08'/>
<id>urn:sha1:00d76784f42408bdf46a8b1e753536f033fd9e08</id>
<content type='text'>
When specified, our PID is written to the specified file (or FD),
after we've successfully started up.

Only applicable in server mode.
</content>
</entry>
<entry>
<title>Implement --hold</title>
<updated>2020-02-03T18:58:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-03T18:58:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8f4ec9aa479c5414661a7507543e6a59e4e1f6da'/>
<id>urn:sha1:8f4ec9aa479c5414661a7507543e6a59e4e1f6da</id>
<content type='text'>
When specified, we don't exit when the slave/client process exits.
</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>
</feed>
