iTerm & and tmux: how is the integration supposed to work

466 views
Skip to first unread message

ben consil

unread,
Sep 5, 2014, 3:52:39 AM9/5/14
to iterm2-...@googlegroups.com
hi
I think I'm too stupid for this, I don't get it....

Is is correct that when I use iTerms integrated tmux with 'tmux -CC' then the usual tmux commond are not accessible

When I send a tmux command line nothing happens.

When I explicitely load my tmux.conf with 'tmux source ~/.tmux.conf'


~~~~ tmux.conf ~~~
# Set prefix key to Ctrl-g
unbind-key C-g
set-option -g prefix C-g
~~~~

and then run a command line 'C-g c' ( new window) nothing.

I've tried every thing (for hours).

Can somebody help me with this.
thanks

David Miller

unread,
Sep 11, 2014, 2:53:12 PM9/11/14
to iterm2-...@googlegroups.com
Typing tmux commands using a control key doesn't work in integrated mode because those are client commands, and the client has to implement them.  iTerm has implemented them, they're just in the menus instead of using control keys, so all of your control keys actually get sent to the session.  iTerm does keep a "control window" for the tmux session, usually it minimizes it by default when you attach.  If you go to that window (unminimize it) there's an option (C) there to type a tmux command line.  The things you would do with a control-key combination are done from the menus (Shell -> tmux -> ...)

September 5, 2014 at 3:52 AM
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

George Nachman

unread,
Sep 15, 2014, 5:07:09 PM9/15/14
to iterm2-...@googlegroups.com
The driving goal of the integration was to not have to sacrifice ^B (or any other keystroke) to tmux administration; in theory everything you want to do can be done with native iTerm2 interactions. If you find there's something you need that can't be done in the integration, please file an issue for that.
Reply all
Reply to author
Forward
0 new messages