<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/input.c, branch 0.9.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=0.9.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=0.9.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2019-09-26T16:41:26Z</updated>
<entry>
<title>input: scale coordinates in wl_pointer_enter()</title>
<updated>2019-09-26T16:41:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-09-26T16:41:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f862f173f588b0b177626ab40a0019d683299ac7'/>
<id>urn:sha1:f862f173f588b0b177626ab40a0019d683299ac7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: initialize scale to '1'</title>
<updated>2019-09-26T16:39:49Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-09-26T16:39:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2d6369482e231e8d2cdfbf567e4b651a4c71f763'/>
<id>urn:sha1:2d6369482e231e8d2cdfbf567e4b651a4c71f763</id>
<content type='text'>
This ensures we always have a valid (but possibly incorrect) scaling
value. This allows us to simplify code that uses the scale - it
doesn't have to verify the scale if valid.

Furthermore, since render_resize() is the function that actually
updates term-&gt;scale, make sure to call it *before* updating the
cursor (otherwise, the cursor will use the old scaling value).
</content>
</entry>
<entry>
<title>input: take scale into account when converting mouse coords to row/col</title>
<updated>2019-08-30T19:31:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-30T19:31:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=37d941f57ad279407de97ee736ac2a22fe1e0b66'/>
<id>urn:sha1:37d941f57ad279407de97ee736ac2a22fe1e0b66</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: bug: account for margins when converting mouse coords to row/col</title>
<updated>2019-08-30T19:30:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-30T19:30:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=05888b4706c55109dccc883274ce5359d7e7c83c'/>
<id>urn:sha1:05888b4706c55109dccc883274ce5359d7e7c83c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: call term_reset_view() instead of duplicating code</title>
<updated>2019-08-28T15:28:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-28T15:27:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=551d51bf9d201b962c897e2e9a5b36bc79cda0d7'/>
<id>urn:sha1:551d51bf9d201b962c897e2e9a5b36bc79cda0d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: cancel search on mouse button events</title>
<updated>2019-08-27T17:48:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-27T17:44:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3f767be500d6a92d293c3cbf6cc04cce6c8dc594'/>
<id>urn:sha1:3f767be500d6a92d293c3cbf6cc04cce6c8dc594</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: wip: re-direct input while searching, and build a search buffer</title>
<updated>2019-08-27T15:23:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-27T15:23:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=61cabdac13986e6cb2ba69e81d5934f55d92a1a9'/>
<id>urn:sha1:61cabdac13986e6cb2ba69e81d5934f55d92a1a9</id>
<content type='text'>
This adds a new state, 'is_searching'. While active, input is
re-directed, and stored in a search buffer. In the future, we'll use
this buffer and search for its content in the scrollback buffer, and
move the view and create a selection on matches.

When rendering in 'is_searching', everything is dimmed. In the future,
we'll render the current search buffer on-top of the dimmed "regular"
terminal output.
</content>
</entry>
<entry>
<title>input: back out accidental commit of debug code</title>
<updated>2019-08-19T19:18:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-19T19:18:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=71c6f11e8686fe0b0aec47e0fe4fe1071c0057f6'/>
<id>urn:sha1:71c6f11e8686fe0b0aec47e0fe4fe1071c0057f6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: implement CSI ? 1007 h/l - alternateScroll</title>
<updated>2019-08-19T19:16:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-19T19:16:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4168f91d402e2fdb3c58b2de843dfed13c88c8ab'/>
<id>urn:sha1:4168f91d402e2fdb3c58b2de843dfed13c88c8ab</id>
<content type='text'>
When enabled, mouse scrolls in the alternate screen are converted to
up/down key presses.
</content>
</entry>
<entry>
<title>input: remove debug output</title>
<updated>2019-08-15T18:09:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-15T18:09:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6f1cf8af34007c81a4637db53903f97197a33a3c'/>
<id>urn:sha1:6f1cf8af34007c81a4637db53903f97197a33a3c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: handle meta modifier when modifying "other" keys</title>
<updated>2019-08-15T17:38:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-15T17:38:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=44112e55915dda631980a55d72fa973d1cd006d6'/>
<id>urn:sha1:44112e55915dda631980a55d72fa973d1cd006d6</id>
<content type='text'>
When handling keys without a specific map defined (i.e. keys
corresponding roughly to xterm's "otherKeys"), recognize the meta
modifier and report the correct modifier code.
</content>
</entry>
<entry>
<title>input: track meta modifier</title>
<updated>2019-08-15T17:38:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-15T17:38:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9ca01436ee0e6c170894be0cdefd715a5dd8c834'/>
<id>urn:sha1:9ca01436ee0e6c170894be0cdefd715a5dd8c834</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: free previous XKB state when we get a new one</title>
<updated>2019-08-12T19:33:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-12T19:32:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4b06360681e2486ff52b96431f574e37b7a2ea06'/>
<id>urn:sha1:4b06360681e2486ff52b96431f574e37b7a2ea06</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: don't paste from primary if client is mouse tracking</title>
<updated>2019-08-09T19:26:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-09T19:26:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=70b6d9d7d2969ea704780cad5017a43a66e9670a'/>
<id>urn:sha1:70b6d9d7d2969ea704780cad5017a43a66e9670a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection/input: triple click selects an entire row</title>
<updated>2019-08-06T17:32:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-06T17:32:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=481a1cd6780233888fa1132242cb96f20ab14b73'/>
<id>urn:sha1:481a1cd6780233888fa1132242cb96f20ab14b73</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: use a timer fd to handle keyboard key repeat</title>
<updated>2019-08-05T17:33:01Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-05T17:33:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a82f12dd2bc80d692ce6e13b3521b942027ee7cf'/>
<id>urn:sha1:a82f12dd2bc80d692ce6e13b3521b942027ee7cf</id>
<content type='text'>
Instead of running a repeater thread that writes the key to repeat
over a pipe, use a simple timer fd.

No more locking or condition signalling. No need to track
start/stop/exist states.

We simply set up the initial timeout value to be the 'delay', and the
interval to be the repeat 'rate'.
</content>
</entry>
<entry>
<title>selection: mark-word using spaces only as word separator</title>
<updated>2019-08-05T17:02:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-05T17:02:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c62ce72778e2be00bea2c461f6bf8447d28708c7'/>
<id>urn:sha1:c62ce72778e2be00bea2c461f6bf8447d28708c7</id>
<content type='text'>
When the user double-clicks with ctrl pressed, we now select the word
under the cursor using spaces only as word separator.
</content>
</entry>
<entry>
<title>cell: pack more efficiently and store glyph as a wchar</title>
<updated>2019-08-02T16:19:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-02T16:19:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d7993b36fa3f97e26c527c37b36eb9321b79791'/>
<id>urn:sha1:4d7993b36fa3f97e26c527c37b36eb9321b79791</id>
<content type='text'>
The 'attributes' struct is now 8 bytes and naturally packed (used to
be 9 bytes, artificially packed).

'cell' struct is now 12 bytes, naturally packed (used to be 13 bytes,
artificially packed).

Furthermore, the glyph is stored as a wchar instead of a char*. This
makes it easier (faster) to do glyph lookup when rendering.
</content>
</entry>
<entry>
<title>input: fix 'comparison ... is always true' warning (clang)</title>
<updated>2019-07-30T18:27:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-30T18:27:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=263d3bb2ba769de7d4fcfb6d91674d3aa5c83b2b'/>
<id>urn:sha1:263d3bb2ba769de7d4fcfb6d91674d3aa5c83b2b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: use keyboard enter serial only for selection serial</title>
<updated>2019-07-30T17:29:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-30T17:29:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f5e9b7b04811611c810064978807ff2c574110e2'/>
<id>urn:sha1:f5e9b7b04811611c810064978807ff2c574110e2</id>
<content type='text'>
</content>
</entry>
</feed>
