<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/functional/terminal, branch v0.1.2</title>
<subtitle>Neovim fork with Rahm's personal hacks.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/'/>
<entry>
<title>input: Do not set high-bit; preserve ALT modifier.</title>
<updated>2016-01-11T05:29:58+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2016-01-10T21:23:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=317d5ca7b0f92ef42de989b3556ca9503f0a3bf6'/>
<id>317d5ca7b0f92ef42de989b3556ca9503f0a3bf6</id>
<content type='text'>
Background: Vim internally prefers to represent ALT/META chords as
single-byte keys, by setting the high bit of the key byte.
extract_modifiers() _discards_ the meta/alt modifier, but we need it for
libvterm and libtermkey.

Closes #2440
Closes #3727
Closes #2017
References #2277
References #2254

https://github.com/neovim/neovim/issues/2017#issuecomment-140423557
&gt; We [not libtermkey] are setting the high bit for some reason

https://github.com/neovim/neovim/issues/176#issuecomment-77834715
&gt; libvtermkey requires the leading esc to parse alt/meta

https://github.com/neovim/neovim/pull/3246#issuecomment-136328450
&gt; A program could do better than the current logic on some terminals, by
&gt; asking for pure 8bit mode (S8C1T) and then immediately querying the
&gt; mode again. If the result comes back as an 8bit single-byte CSI, then
&gt; it can presume the mode setting was successful, and now the ESC prefix
&gt; byte won't be seen in multibyte sequences; only as an Alt- prefix or
&gt; a real Escape key. On such a terminal, it could therefore avoid
&gt; needing to use that waiting timeout.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Background: Vim internally prefers to represent ALT/META chords as
single-byte keys, by setting the high bit of the key byte.
extract_modifiers() _discards_ the meta/alt modifier, but we need it for
libvterm and libtermkey.

Closes #2440
Closes #3727
Closes #2017
References #2277
References #2254

https://github.com/neovim/neovim/issues/2017#issuecomment-140423557
&gt; We [not libtermkey] are setting the high bit for some reason

https://github.com/neovim/neovim/issues/176#issuecomment-77834715
&gt; libvtermkey requires the leading esc to parse alt/meta

https://github.com/neovim/neovim/pull/3246#issuecomment-136328450
&gt; A program could do better than the current logic on some terminals, by
&gt; asking for pure 8bit mode (S8C1T) and then immediately querying the
&gt; mode again. If the result comes back as an 8bit single-byte CSI, then
&gt; it can presume the mode setting was successful, and now the ESC prefix
&gt; byte won't be seen in multibyte sequences; only as an Alt- prefix or
&gt; a real Escape key. On such a terminal, it could therefore avoid
&gt; needing to use that waiting timeout.
</pre>
</div>
</content>
</entry>
<entry>
<title>test/functional: clean up according to luacheck (part 2)</title>
<updated>2015-11-23T12:57:21+00:00</updated>
<author>
<name>Marco Hinz</name>
<email>mh.codebro@gmail.com</email>
</author>
<published>2015-11-17T22:31:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=d9fbc1865bf5237235e96ae8822326faa84ff9fc'/>
<id>d9fbc1865bf5237235e96ae8822326faa84ff9fc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test/functional: clean up according to luacheck (part 1)</title>
<updated>2015-11-23T12:57:21+00:00</updated>
<author>
<name>Marco Hinz</name>
<email>mh.codebro@gmail.com</email>
</author>
<published>2015-11-17T21:44:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=4a69e55f390fcbd5e3d6c88c882c0b921c9b6f87'/>
<id>4a69e55f390fcbd5e3d6c88c882c0b921c9b6f87</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Reorganize focus events test into individual tests</title>
<updated>2015-11-23T12:18:27+00:00</updated>
<author>
<name>Joe Hermaszewski</name>
<email>git@monoid.al</email>
</author>
<published>2015-11-20T23:09:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=6329fd420eec1f1325be2131726e82e23da3e90b'/>
<id>6329fd420eec1f1325be2131726e82e23da3e90b</id>
<content type='text'>
The focus event tests now live in their own `describe` block with each
test testing the handling of focus events in a single mode.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The focus event tests now live in their own `describe` block with each
test testing the handling of focus events in a single mode.
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable focus events in cmdline and terminal modes</title>
<updated>2015-11-23T12:18:27+00:00</updated>
<author>
<name>Joe Hermaszewski</name>
<email>git@monoid.al</email>
</author>
<published>2015-11-20T18:47:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=442cd0672b567cce56dd45e731ec1cc3b71b7cf4'/>
<id>442cd0672b567cce56dd45e731ec1cc3b71b7cf4</id>
<content type='text'>
This change adds switch cases for K_FOCUSGAINED and K_FOCUSLOST to the
input handling functions in ex_getln.c and terminal.c. The handling is
identical to what's found in edit.c (just calling apply_autocmds).

If one enters cmdline-mode by feeding `:` and sends a focuslost event (by
leaving the window for example) the text `&lt;FocusLost&gt;` will be inserted
into the command line. There is similar behaviour in terminal mode. This
patch corrects this behavior to fire the apropriate autocmd instead.

Fixes #3714
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change adds switch cases for K_FOCUSGAINED and K_FOCUSLOST to the
input handling functions in ex_getln.c and terminal.c. The handling is
identical to what's found in edit.c (just calling apply_autocmds).

If one enters cmdline-mode by feeding `:` and sends a focuslost event (by
leaving the window for example) the text `&lt;FocusLost&gt;` will be inserted
into the command line. There is similar behaviour in terminal mode. This
patch corrects this behavior to fire the apropriate autocmd instead.

Fixes #3714
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests for focus events</title>
<updated>2015-11-17T22:36:28+00:00</updated>
<author>
<name>Joe Hermaszewski</name>
<email>git@monoid.al</email>
</author>
<published>2015-11-13T16:20:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=f480b38a2f28cda9e8eb2d9aa9430f01a4a7064d'/>
<id>f480b38a2f28cda9e8eb2d9aa9430f01a4a7064d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add TermClose event</title>
<updated>2015-11-15T14:10:02+00:00</updated>
<author>
<name>Marco Hinz</name>
<email>mh.codebro@gmail.com</email>
</author>
<published>2015-11-11T03:27:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=9fcd444036e687a3c5c9aa75fa29b6251b3ad431'/>
<id>9fcd444036e687a3c5c9aa75fa29b6251b3ad431</id>
<content type='text'>
A terminal buffer now exits with: [Process exited &lt;return value&gt;]

You can hook into it. E.g.  :au TermClose * call feedkeys('&lt;cr&gt;')

Closes #2293.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A terminal buffer now exits with: [Process exited &lt;return value&gt;]

You can hook into it. E.g.  :au TermClose * call feedkeys('&lt;cr&gt;')

Closes #2293.
</pre>
</div>
</content>
</entry>
<entry>
<title>tui: Fix abort when stdout and stderr are not tty.</title>
<updated>2015-10-29T11:13:45+00:00</updated>
<author>
<name>Thiago de Arruda</name>
<email>tpadilha84@gmail.com</email>
</author>
<published>2015-10-29T10:46:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=7e8b431d3f67e5b167bc238899521715e1b324d8'/>
<id>7e8b431d3f67e5b167bc238899521715e1b324d8</id>
<content type='text'>
The abort came from using libuv tty handle on non-tty fd. Use uv_pipe_t in these
cases. Also add simple test for this case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The abort came from using libuv tty handle on non-tty fd. Use uv_pipe_t in these
cases. Also add simple test for this case.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: Add more TUI tests and increase timeout</title>
<updated>2015-10-26T13:52:01+00:00</updated>
<author>
<name>Thiago de Arruda</name>
<email>tpadilha84@gmail.com</email>
</author>
<published>2015-10-02T13:59:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=e596234fc2fa056ef6ac9eb868bdfcdceba4af47'/>
<id>e596234fc2fa056ef6ac9eb868bdfcdceba4af47</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>functests: Do not forget about -i argument</title>
<updated>2015-10-23T12:56:51+00:00</updated>
<author>
<name>ZyX</name>
<email>kp-pav@yandex.ru</email>
</author>
<published>2015-10-23T12:09:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=ec1ca54d59e229d89bfae6e6eb9e311fa6cb329e'/>
<id>ec1ca54d59e229d89bfae6e6eb9e311fa6cb329e</id>
<content type='text'>
Target: make all tests run with chmod -x ~/.config/nvim ~/.local/share/nvim.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Target: make all tests run with chmod -x ~/.config/nvim ~/.local/share/nvim.
</pre>
</div>
</content>
</entry>
</feed>
