Re: C-Enter needed in tmux

2013-02-17 Thread Nicholas Marriott
I've just applied something similar to this to make tmux support the most common set and pass them through if xterm-keys is on. Binding them in emacs is left as an exercise for the reader ;-). On Fri, Feb 15, 2013 at 02:20:21AM +, Nicholas Marriott wrote: > Actually I just did some tidying wh

Re: C-Enter needed in tmux

2013-02-15 Thread Csaba Andras
I use xterm. Without tmux emacs is able to tell the difference between Enter and C-Enter. I couldn't use "cat" as you described to find out the code because cat interpreted it as a line end. However I could figure out what is given to emacs by xterm with "strace -v -e trace=read" Enter sends:

Re: C-Enter needed in tmux

2013-02-14 Thread Nicholas Marriott
Actually I just did some tidying while I was looking at this so here's a diff against latest git: diff --git a/input-keys.c b/input-keys.c index 0953ce7..1d75809 100644 --- a/input-keys.c +++ b/input-keys.c @@ -130,6 +130,9 @@ const struct input_key_ent input_keys[] = { { KEYC_KP_ENTER,

Re: C-Enter needed in tmux

2013-02-14 Thread Nicholas Marriott
You can't bind arbitrary key strings at the moment and it wouldn't work anyway because: - The program must tell xterm to send these and tmux doesn't do this. - emacs only accepts the keys when TERM=xterm, not when TERM=screen. There has been some talk of supporting xterm modifyOtherKeys but so f

Re: C-Enter needed in tmux

2013-02-14 Thread Nicholas Marriott
C-Enter doesn't send anything unique in most terminals, what does it send in yours outside tmux? Run "cat" then press C-Enter and tell me what you see. Also tell me what terminal you are using. On Tue, Feb 12, 2013 at 01:34:55AM +0100, Csaba Andras wrote: >Hi >Tmux doesn't forward a few

C-Enter needed in tmux

2013-02-14 Thread Csaba Andras
Hi Tmux doesn't forward a few keyboard combinations that I need for org-mode in emacs. The first one is C-Enter (org-insert-heading-respect-content). I've tried Bindkey :send-keys C-Enter but that doesn't work. It seems to me that it is intentionally stopped. See this change by Micah Cowan: ht