Thanks for the answers! After Nicholas hint, I found out how, and thought I
should contribute back, an maybe help some other lost soul :)
The "-n" on unbind and bind key commands mean the keys without the tmux
prefix. And the sequence after "send-key" is what I chose to be sent (space
separated sequence of keys), matching that which my terminals were already
generating.
# Unbind raw keys.
unbind-key -n C-Left
unbind-key -n C-Right
unbind-key -n S-Left
unbind-key -n S-Right
bind-key -n C-Left send-key ^[ O d
bind-key -n C-Right send-key ^[ O c
bind-key -n S-Left send-key ^[ [ d
bind-key -n S-Right send-key ^[ [ c
cheers
- jan
On Fri, Jan 25, 2013 at 5:03 AM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:
> tmux will always output one of two things inside. For C-Right you can
> either have the default ^[OC (like putty and some other terminals) or
> turn on xterm-keys and get ^[[1;5C (like xterm).
>
>
> On Tue, Jan 22, 2013 at 07:19:06PM -0800, Jan Pfeifer wrote:
> > hi all,
> > I've searched in Google, and there seems to be > 130k pages matching
> the
> > topic, but unfortunately browsing the first few pages of responses
> around
> > I haven't yet found the answer ... so ... I apologize for the basic
> > question, I just started with Tmux today.
> > I connect to my server from about 4 different terminals, all of them I
> > configured to output the exact same control sequences for the arrow
> key
> > combinations.
> > I configured inputrc/vim/emacs/others to this control key
> configurations.
> > I didn't want tmux to change them in any way.
> > Is it possible ?
> > I tried with nnoremap, mentioned in some pages, but it didn't seem to
> > affect anything.
> > cheers,
> > - jan
> > ps.: My terminal is configured to output "^[0c" for control+right, and
> > tmux outputs "^[0C" instead.
>
> >
> ------------------------------------------------------------------------------
> > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> > MVPs and experts. ON SALE this month only -- learn more at:
> > http://p.sf.net/sfu/learnnow-d2d
>
> > _______________________________________________
> > tmux-users mailing list
> > tmux-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tmux-users
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users