C-[, escape and alt generate the same thing so this is likely to
happen. You could try to fiddle with escape-time in tmux and perhaps
look to see if there are equivalent options in mc to configure how it
differentiates M-x from Escape+x or C-[ then x.



On Fri, Oct 19, 2012 at 12:13:45PM +0200, Madeleine Vincent wrote:
>    Hi all,
> 
>    I just started using tmux. I really like it so far -- a solid replacement
>    for screen. The one single problem I have is that tmux steals the Alt
>    (meta) key presses from a Midnight Commander running within it.
> 
>    I have made my prefix key C-[, which works well. But tmux also interprets
>    Alt + anykey the same as C-[ + anykey when using Midnight Commander. Since
>    there are lots of Alt+ keystrokes in MC, this become pretty annoying.
> 
>    So I either need to have tmux ignore Alt + keystrokes for all applications
>    running within it, or at least for Midnight Commander.
> 
>    Note that this doesn't affect emacs, for example. All the Alt+ keystrokes
>    are passed through to emacs correctly.
> 
>    My .tmux.conf file is shown below. Any help would be greatly appreciated.
> 
>    Thanks,
> 
>    Madeleine.
> 
>    --------------------------------------------------------------------------
> 
>  # Turn on the status bar and change the coloring to my preference.
>  # It is handy to highlight in red the active window.
>  set -g status on
>  set -g status-bg black
>  set -g status-fg white
>  set -g status-left *#[fg=green]#H*
>  set-window-option -g window-status-current-bg red
> 
>  # Use emacs keys
>  set -g status-keys emacs
> 
>  # Makes the prefix key immediately available. There
>  #  is no pause necessary for an escape sequence
>  set -s escape-time 0
> 
>  # Make our prefix key:  [
>  unbind C-b
>  set -g prefix C-[
> 
>  # Split windows using emacs keys
>  unbind %
>  bind 2 split-window -v
>  bind 3 split-window -h
> 
>  # Allow a mouse click to switch panes
>  set-option -g mouse-select-pane on
> 
>  # Set up a key to switch to the last active window
>  bind-key C-l last-window

> ------------------------------------------------------------------------------
> 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_sfd2d_oct

> _______________________________________________
> 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_sfd2d_oct
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to