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:        read(3, "\r", 1)                        = 1
C-Enter sends:      read(3, "\33[27;5;13~", 10)             = 10

This is not the only key combination which gets eaten by tmux.
I would prefer if tmux would send every sequence through if it was not
meant for tmux control.
If that's not possible do I have a chance to whitelist the sequences I
want to allow?

Thx,
Csaba

On Thu, Feb 14, 2013 at 11:47 AM, Nicholas Marriott
<nicholas.marri...@gmail.com> wrote:
>
> 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 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:
> >    [1]http://sourceforge.net/mailarchive/message.php?msg_id=25446931
> >    Is there a workaround for me to get C-Enter working?
> >    Cheers,
> >    Csaba
> >
> > References
> >
> >    Visible links
> >    1. http://sourceforge.net/mailarchive/message.php?msg_id=25446931
>
> > ------------------------------------------------------------------------------
> > Free Next-Gen Firewall Hardware Offer
> > Buy your Sophos next-gen firewall before the end March 2013
> > and get the hardware for free! Learn more.
> > http://p.sf.net/sfu/sophos-d2d-feb
>
> > _______________________________________________
> > tmux-users mailing list
> > tmux-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tmux-users
>

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to