This is because you have ERASE set to ^H in termios which means tmux
decides expects that your backspace key sends ^H. tmux sends ^? for
backspace always (or it would be inconsistent on different terminals).


On Fri, May 13, 2011 at 10:07:19AM +0200, Egan Ford wrote:
> Hmmm... actually an xterm not running tmux returns ^H for C-h, whereas
> when tmux is running I get ^?.  Screen also return ^H.
> 
> On Fri, May 13, 2011 at 9:57 AM, Egan Ford <e...@sense.net> wrote:
> > Doh! ?Thanks. ?I should have checked that. ?Apparently C-h with OS/X
> > X11 is C-?. ?I have never seen this behavior with Linux or other UNIX.
> > ?I redefined with C-?. ?Problem solved.
> >
> > On Thu, May 12, 2011 at 5:27 PM, Randy Stauner
> > <ra...@magnificent-tears.com> wrote:
> >> Using tmux-cvs in linux with 2 separate gui terminals (xfce4-terminal and
> >> xterm)
> >> I have no problem binding C-h.
> >> I don't know anything about macs...
> >> but I wonder if your terminal is grabbing the Control-H
> >> because it thinks you're trying to send a backspace character.
> >> If you hit Ctrl-V Ctrl-H at your shell prompt what does it print? (should
> >> probably be ^H)
> >> As a curiosity test, you could try binding something to BSpace
> >> then try hitting prefix, ctrl-h and see if it fires the event attached to
> >> BSpace.
> >> If so then your terminal is capturing that sequence before sending it to
> >> tmux.
> >> Also I notice that your conf sets xterm-keys on but without the -g to make
> >> it global.
> >> Was that your intention? ?I don't really understand what the xterm-keys
> >> setting does...
> >> does toggling it affect your ability to bind C-h ?
> >> There are likely much more educated people out there that could be more
> >> helpful...
> >> On Thu, May 12, 2011 at 6:50 AM, Egan Ford <e...@sense.net> wrote:
> >>>
> >>> Subject says it all. ?OS/X 10.6.4, tmux 1.4 in xterm.
> >>>
> >>> Because of numerous challenges getting Ctrl and Meta Arrows to work
> >>> with OS/X-X11 I opted to use h j k l and H J K L (with repeat) for
> >>> pane selection and resizing. ?This setup works remarkable well and
> >>> requires no right hand replacement to get to arrow keys. ?The problem
> >>> is that I press h j k or l too quickly after C-a (my C-b)--i.e. CTRL
> >>> is still down. ?So I bound C-h, C-j, etc... as well. ?All works but
> >>> C-h. ?C-a Shift-H, etc... does not have this problem since the time to
> >>> press R_SHIFT = that of the time it takes me to release CTRL.
> >>>
> >>> Thanks.
> >>>
> >>> --A very long time screen user switching to tmux.
> >>>
> >>> My .tmux.conf:
> >>>
> >>> set-option -g prefix C-a
> >>> setw -g mode-keys vi
> >>> bind h select-pane -L
> >>> bind C-h select-pane -L
> >>> bind j select-pane -D
> >>> bind C-j select-pane -D
> >>> bind k select-pane -U
> >>> bind C-k select-pane -U
> >>> bind l select-pane -R
> >>> bind C-l select-pane -R
> >>> bind -r H resize-pane -L
> >>> bind -r J resize-pane -D
> >>> bind -r K resize-pane -U
> >>> bind -r L resize-pane -R
> >>> bind C-p pipe-pane -o 'cat >>~/tmp/output.#I-#P'
> >>> set-window-option xterm-keys on
> >>> set-option repeat-time 1000
> >>> unbind %
> >>> bind | split-window -h
> >>> bind - split-window -v
> >>> set-option status off
> >>>
> >>>
> >>> ------------------------------------------------------------------------------
> >>> Achieve unprecedented app performance and reliability
> >>> What every C/C++ and Fortran developer should know.
> >>> Learn how Intel has extended the reach of its next-generation tools
> >>> to help boost performance applications - inlcuding clusters.
> >>> http://p.sf.net/sfu/intel-dev2devmay
> >>> _______________________________________________
> >>> tmux-users mailing list
> >>> tmux-users@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/tmux-users
> >>
> >>
> >
> 
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to