On 2014-10-18 07:38 -0700, Leigh Stoller wrote:
> > Also, what happens if you run "cat", press ^V Backspace, and then
> > press ^V Delete. What codes were generated outside tmux and what
> > inside tmux?
>
> Outside both say ^H but inside both say ^?

Outside ^H and inside ^? sounds fine but it's bad if both backspace and
delete generate the same sequence because then the applications can't
distinguish them, right? For me in xterm the delete key generates
"^[[3~" which is what
        infocmp xterm-256color | grep 'kbs\|kdch1'
would suggest. Do you happen to have a misconfigured iterm2? [1]
suggests that there is a "Delete sends Control-H" option. Try disabling
that.

> Inside emacs, I get ^D for both. Really strange!
> Outside emacs works fine.

I'm not familiar with emacs so I have not sure what went wrong there.
I think if whatever key you get for backspace matches up with what stty
reports for erase then that's rather an emacs bug if it can't parse it.
In any case try tweaking your emacs settings[2].

> stty key bindings:
> discard dsusp   eof     eol     eol2    erase   erase2  intr    kill
> ^O      ^Y      ^D      <undef> <undef> ^H      ^H      ^C      ^U
> lnext   min     quit    reprint start   status  stop    susp    time
> ^V      1       ^\      ^R      ^Q      ^T      ^S      ^Z      0

Is this inside or outside tmux? If this is reported from inside then
something is wrong. Do you have any stty overrides in one of your shell
rc files somewhere?

[1] 
https://stackoverflow.com/questions/13017392/how-to-make-iterm2-send-control-h-for-backspace-so-it-works-for-all-linux-shells
[2] http://www.emacswiki.org/emacs/BackspaceKey

-- 
Balazs

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to