<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/terminal.c, branch 1.4.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-07-16T06:53:20Z</updated>
<entry>
<title>Merge branch 'master' into pipe-grid-to-external-tool</title>
<updated>2020-07-16T06:53:20Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-16T06:53:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=de75a2035e63b744b41e7297af71fc0088b33f93'/>
<id>urn:sha1:de75a2035e63b744b41e7297af71fc0088b33f93</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: line-wrap: don't move cursor outside the grid</title>
<updated>2020-07-16T06:47:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-16T06:47:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7f6ed98a8366d0c270aff592c6d5782f99385a6a'/>
<id>urn:sha1:7f6ed98a8366d0c270aff592c6d5782f99385a6a</id>
<content type='text'>
Remove assertion that row be less than the scrolling region end. The
cursor may in fact be *inside* the margin.

Inside the margin, content never scrolls, but we must make sure we
don't move the cursor outside the grid.
</content>
</entry>
<entry>
<title>vt: never call term_print() with a width &lt;= 0</title>
<updated>2020-07-16T06:04:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-16T06:04:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6f2cffd8c0949c2dfa1499c5d0c2594eb645ac26'/>
<id>urn:sha1:6f2cffd8c0949c2dfa1499c5d0c2594eb645ac26</id>
<content type='text'>
</content>
</entry>
<entry>
<title>spawn: add optional stdin/stdout/stderr redirection FDs</title>
<updated>2020-07-15T11:33:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-15T11:33:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=69d9ff3f2573dc46d558a5134a93165a7ec212d0'/>
<id>urn:sha1:69d9ff3f2573dc46d558a5134a93165a7ec212d0</id>
<content type='text'>
If not -1, spawn() will redirect the child's stdin/stdout/stderr to
these FDs.
</content>
</entry>
<entry>
<title>term: break out fork+exec functionality to a separate file</title>
<updated>2020-07-15T10:39:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-15T10:39:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9cdccdd2ac5140a5a265926501a919a3b86f8d84'/>
<id>urn:sha1:9cdccdd2ac5140a5a265926501a919a3b86f8d84</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: add term_scrollback_to_text() and term_view_to_text()</title>
<updated>2020-07-15T09:33:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-15T09:33:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d17423ed184ad0f0343ca62d0b101a7a042941b'/>
<id>urn:sha1:4d17423ed184ad0f0343ca62d0b101a7a042941b</id>
<content type='text'>
These functions extract the current view, or the entire scrollback as
an UTF-8 encoded byte buffer.
</content>
</entry>
<entry>
<title>limit font size to non-negative values</title>
<updated>2020-07-15T07:53:13Z</updated>
<author>
<name>Max Hollmann</name>
<email>hollmmannm1@gmail.com</email>
</author>
<published>2020-07-15T07:53:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=54e2b0b005347810571a44b1ad64f9c14cf56e92'/>
<id>urn:sha1:54e2b0b005347810571a44b1ad64f9c14cf56e92</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: print: don't pad with spacers if auto-margin is disabled</title>
<updated>2020-07-15T06:04:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-15T06:04:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2fa2c9fad4c401b174e084ee560defba7c6ca49e'/>
<id>urn:sha1:2fa2c9fad4c401b174e084ee560defba7c6ca49e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: copy current VT attributes to multi-column spacer cells</title>
<updated>2020-07-14T18:24:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T18:24:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f962fb236ecfb76e01589865022817d9bf9133b7'/>
<id>urn:sha1:f962fb236ecfb76e01589865022817d9bf9133b7</id>
<content type='text'>
And refactor: break out spacer-writing code to a function, since we do
exactly the same thing in two places.
</content>
</entry>
<entry>
<title>term: print: linewrap + insert *before* inserting SPACERS</title>
<updated>2020-07-14T15:03:20Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T15:03:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6d7aba3ea07b9a7a584dcb027fa8f0f26c5c4fd5'/>
<id>urn:sha1:6d7aba3ea07b9a7a584dcb027fa8f0f26c5c4fd5</id>
<content type='text'>
Otherwise we end up overwriting the character in the last column
</content>
</entry>
<entry>
<title>term: print: write special value CELL_MULT_COL_SPACER to extra cells</title>
<updated>2020-07-14T14:49:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T14:49:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=df2927e088ceb2119264d1a970c22a450f00005b'/>
<id>urn:sha1:df2927e088ceb2119264d1a970c22a450f00005b</id>
<content type='text'>
When printing a multi-column character, write CELL_MULT_COL_SPACER
instead of '0' to both padding cells (when character doesn't fit at
the end of the line), and to the cells following the actual character.
</content>
</entry>
<entry>
<title>selection: recognize empty padding cells in a forced linewrap</title>
<updated>2020-07-14T11:17:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T11:17:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4cf7195695e2112031c630ff1102beb0f7f57e4d'/>
<id>urn:sha1:4cf7195695e2112031c630ff1102beb0f7f57e4d</id>
<content type='text'>
When printing a multi-column character at the end of the line, and it
doesn't fit, we currently insert a forced line-wrap. This means the
last character(s) on the previous line will be empty, followed by a
multi-column character in the first cell on the next line.

Without special code to handle this, the selection text extraction
code will insert a hard newline, since this is normally the correct
thing to do.

Add a TODO, to consider writing a special place holder value to these
padding cells.
</content>
</entry>
<entry>
<title>term: remove assert, as we're already checking for this in the loop condition</title>
<updated>2020-07-14T10:07:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T10:07:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7480c1c06be0039e6b3bd019e6db9d118b964f05'/>
<id>urn:sha1:7480c1c06be0039e6b3bd019e6db9d118b964f05</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: print: manually increment cursor column</title>
<updated>2020-07-14T10:05:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T10:03:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b035469a7fba0908ecaabdd739bd4fe22de2ff8b'/>
<id>urn:sha1:b035469a7fba0908ecaabdd739bd4fe22de2ff8b</id>
<content type='text'>
We know we're within bounds, and thus we don't need the extra overhead
of term_cursor_right().
</content>
</entry>
<entry>
<title>term: line-wrap: need to update grid-&gt;cur_row when we did *not* scroll</title>
<updated>2020-07-14T10:01:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T10:01:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=98ebb99be31ff931b014b485ba3f1278a7e04cf0'/>
<id>urn:sha1:98ebb99be31ff931b014b485ba3f1278a7e04cf0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: print: also require width &gt; 1 when checking if we need to force-wrap or not</title>
<updated>2020-07-14T09:26:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T09:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6ea9d1246f5aaa02b8706b67c90776787dccbd68'/>
<id>urn:sha1:6ea9d1246f5aaa02b8706b67c90776787dccbd68</id>
<content type='text'>
While this might seem like it would slow down things, it should in
fact help the compiler optimize: the "normal" code path, that prints
regular ASCII characters, always call term_print() with width == 1.
</content>
</entry>
<entry>
<title>term: line-wrap: manually set cursor row+col</title>
<updated>2020-07-14T09:25:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T09:25:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b8c7dfba5c3fd6a2bd0ac28663c0c5d55ee2ed4a'/>
<id>urn:sha1:b8c7dfba5c3fd6a2bd0ac28663c0c5d55ee2ed4a</id>
<content type='text'>
line-wrap is in the hot path, and term_cursor_down/left adds
additional checks that we don't need.
</content>
</entry>
<entry>
<title>term: print: force line-wrap if a multi-column character does not fit on current line</title>
<updated>2020-07-14T08:58:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T08:58:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9dc1d18241be1c496980b30c2b3eb943dd9aaccb'/>
<id>urn:sha1:9dc1d18241be1c496980b30c2b3eb943dd9aaccb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: print: manually increment cursor column for multi-column chars</title>
<updated>2020-07-14T08:51:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T08:51:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6faa9955ba42af378057eccc3645c1b8a9599dd7'/>
<id>urn:sha1:6faa9955ba42af378057eccc3645c1b8a9599dd7</id>
<content type='text'>
There's nothing wrong with using term_cursor_right(), but it is
unnecessary since we already check for the end-of-line.
</content>
</entry>
<entry>
<title>term: insert: move assert() after checking whether insert mode is enabled or not</title>
<updated>2020-07-14T08:50:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-14T08:50:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ca7ec13f3be1235629221514f0683f722f45a349'/>
<id>urn:sha1:ca7ec13f3be1235629221514f0683f722f45a349</id>
<content type='text'>
</content>
</entry>
</feed>
