[PATCH] Add support for focus reporting (Xterm/private mode1004) in unix terminals

2013-04-23 Thread Hayaki Saito
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

Re: [PATCH] Add support for focus reporting (Xterm/private mode1004) in unix terminals

2013-04-23 Thread Bram Moolenaar
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

Re: [PATCH] Add support for focus reporting (Xterm/private mode1004) in unix terminals

2015-01-06 Thread Daniel Hahler
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:

Re: [PATCH] Add support for focus reporting (Xterm/private mode1004) in unix terminals

2015-01-07 Thread Hayaki Saito
> @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

Re: [PATCH] Add support for focus reporting (Xterm/private mode1004) in unix terminals

2015-01-09 Thread Hayaki Saito
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

Re: [PATCH] Add support for focus reporting (Xterm/private mode1004) in unix terminals

2015-01-10 Thread Christ van Willegen
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

Re: [PATCH] Add support for focus reporting (Xterm/private mode1004) in unix terminals

2015-01-10 Thread Hayaki Saito
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

Re: [PATCH] Add support for focus reporting (Xterm/private mode1004) in unix terminals

2015-01-11 Thread Christ van Willegen
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