Hello, lists
I wrote a patch for adding support for focus reporting mode (Xterm / private
mode 1004) which works on xterm compatible terminals.
When this feature is enabled by the private mode sequence "\033[?1004h", Some
xterm compatible terminals comes to send [I (focus in event) and [O
(fo
Hayaki Saito wrote:
> Hello, lists
>
> I wrote a patch for adding support for focus reporting mode (Xterm /
> private mode 1004) which works on xterm compatible terminals.
>
> When this feature is enabled by the private mode sequence
> "\033[?1004h", Some xterm compatible terminals comes to se
Hello Hayaki, hello Bram,
I've came across this patch (via the todo list) and it would be awesome to have
this feature, which hopefully works with urxvt then, too.
The patch does not apply anymore cleanly (which is not surprising giving its
age), but might be easy to refresh/re-roll.
@Hayaki:
> @Hayaki: do you have a newer patch available?
No, I fear it causes another problems, so now I think this patch should be
rewritten entirely.
"\033[I" and "\033[O" should be introduced as a new keycode instead of
hardcoding it.
Note: If you simply apply this patch and use it on tmux, it causes
Hello Daniel, hello lists,
I revised the patch. Please check.
- avoid modification of the existing code for parsing termresponse.
- add the workaround for tmux.
-- Hayaki Saito
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you
Hi,
On Sat, Jan 10, 2015 at 6:00 AM, Hayaki Saito wrote:
> Hello Daniel, hello lists,
>
> I revised the patch. Please check.
This is just from reading the code, I have no further working knowledge :-)
+ char_u name[2];
+
+ name[0] = (int)KS_EXTRA;
+
+ /* handle focus in event */
+ name[1] = (in
Hi,
> + char_u name[2];
> +
> + name[0] = (int)KS_EXTRA;
> +
> + /* handle focus in event */
> + name[1] = (int)KE_FOCUSGAINED;
> + add_termcode(name, (char_u *)"\033[I", FALSE);
>
> Does add_termcode handle a non-zero terminated string?
Yes, in term.c, names of termcode seem to be always treate
On Sun, Jan 11, 2015 at 5:27 AM, Hayaki Saito wrote:
> Hi,
>
>> + char_u name[2];
>> +
>> + name[0] = (int)KS_EXTRA;
>> +
>> + /* handle focus in event */
>> + name[1] = (int)KE_FOCUSGAINED;
>> + add_termcode(name, (char_u *)"\033[I", FALSE);
>>
>> Does add_termcode handle a non-zero terminated st