Re: Keycodes and rxvt-unicode
On Sun, 2 Jul 2006, Chris Sutcliffe wrote: I'm having a bit of a problem with urxvt and key-codes with vim. I have key-map setup such that Control-PageUp / PageDown switch between buffers (bp / bn). This key-mapping works fine under and xterm, but just rings the system bell under urxvt. The odd thing is that Ctrl and PageUp/PageDown work separately just fine, it's just when I try to use them together. rxvt (and derived things such as Eterm, aterm, wterm, urxvt) use a different escape sequence for modifiers with function-keys. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Keycodes and rxvt-unicode
rxvt (and derived things such as Eterm, aterm, wterm, urxvt) use a different escape sequence for modifiers with function-keys. Is it possible to determine what these escape sequences are? I assume once they are determined I should add them to my .inputrc? Chris -- Chris Sutcliffe http://ir0nh34d.blogspot.com http://emergedesktop.org -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Keycodes and rxvt-unicode
On Mon, 3 Jul 2006, Chris Sutcliffe wrote: rxvt (and derived things such as Eterm, aterm, wterm, urxvt) use a different escape sequence for modifiers with function-keys. Is it possible to determine what these escape sequences are? I assume once they are determined I should add them to my .inputrc? yes - they're documented (in rxvt's source, there's a doc or docs directory containing the file). I added some comments to terminfo.src in ncurses which covers much of that: ftp://invisible-island.net/ncurses/terminfo.src.gz Similarly, for xterm, the modifier encoding is documented in ctlseqs.ms (a corresponding .txt file is in my ftp area). Again, there's some coverage of it in terminfo.src -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Keycodes and rxvt-unicode
yes - they're documented (in rxvt's source, there's a doc or docs directory containing the file). I added some comments to terminfo.src in ncurses which covers much of that: Thanx for providing that. I did some Googling and came up with this link: http://groups.yahoo.com/group/vim/message/66414 Using the 1 line c code listed there, I used it to determine the escape sequence for Ctrl-PageUp and Ctrl-PageDown and added the following to my .vimrc: nmapESC[5^C-PageUp nmapESC[6^C-PageDown nnoremap C-PageDown :bn!CR nnoremap C-PageUp :bp!CR and now everything works as expected. Cheers! Chris -- Chris Sutcliffe http://ir0nh34d.blogspot.com http://emergedesktop.org -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Keycodes and rxvt-unicode
I'm having a bit of a problem with urxvt and key-codes with vim. I have key-map setup such that Control-PageUp / PageDown switch between buffers (bp / bn). This key-mapping works fine under and xterm, but just rings the system bell under urxvt. The odd thing is that Ctrl and PageUp/PageDown work separately just fine, it's just when I try to use them together. Does anybody have any ideas? Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.blogspot.com http://emergedesktop.org -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/