I can't configure the special tmux version:
checking for gcc that whines about -I... yes
checking for glibc... no
checking for library containing clock_gettime... no
./configure: line 4703: syntax error near unexpected token `newline'
./configure: line 4703: `PKG_CHECK_MODULES('
I did get the AC_SEARCH_LIBS error, but luckily I am using brew, so I
was able to run the command suggested on the download page and get
past it.
--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
> Marquee Features
> - Deep tmux integration!
> Have you ever had an ssh session lost because you had to reboot, had a
> network failure, or the power went out? Are you tired of giving up a
> keystroke to tmux or screen? Suffer no longer! iTerm2 and tmux are now
> deeply integrated. By installing a special version of tmux, it gains the
> ability to speak directly to iTerm2. When you run tmux with -C, iTerm2 will
> open real, native windows or tabs for each tmux window. The whole state of
> your tmux session is reflected in native iTerm2 windows. As you interact
> with a window, your typing is sent back to tmux. Any time you resize a
> window, add a split pane, close a split pane, close a window, or open a
> window (with Shell->tmux->new window), that action happens in tmux as well
> as in iTerm2.
> Download the tmux code here:
> http://code.google.com/p/iterm2/downloads/detail?name=tmux-for-iTerm2-20111219.tar.gz
Awesome! Thanks George.
Will these changes to tmux find their way to tmux's main distribution?
Best,
Nikola
I have the following issue:
Above you mentioned, to run tmux with the -C option.
I downloaded and compiled your tmux version but it complains about the
-C option:
braeburn:~ ms$ tmux -V
tmux 1.6
braeburn:~ ms$ tmux -C
tmux: illegal option -- C
usage: tmux [-28lquvV] [-c shell-command] [-f file] [-L socket-name]
[-S socket-path] [command [flags]]
braeburn:~ ms$ ls -la `which tmux`
-rwxr-xr-x 1 root wheel 702800 Dec 20 09:12 /usr/local/bin/tmux
Best regards,
Michael
I thought the AC_SEARCH_LIBS stuff was fixed because rerunning sh
autogen.sh doesn't complain; however, it appears that it doesn't
complain the second time because the first failed run created
configure anyway.
When I started fresh from the new download, I still got the error:
configure.ac:105: error: possibly undefined macro: AC_SEARCH_LIBS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /Developer/usr/bin/autoconf failed with exit status: 1
autoreconf failed
Which explains why it is failing when I run configure (it has no idea
what AC_SEARCH_LIBS is).
Question, what version of the XCode are you using? I am still using
3.2.5 (1760). Do I need to upgrade to 4 or something?
Odd, I grabbed the code after your email went out, but my browser must
have kept it cached or something. Downloading with wget got me the
updated tmux and it compiled just fine.
Running tmux -C in one window causes a new window to pop up that seems
to have tmux integration. Running detach in the new window closes it
and seems to bork the first windows terminal (I have to run stty sane
to get it back to normal).
1. I open an iTerm2 window.
2. I type tmux -C<enter>.
3. A second window opens.
4. I focus the second window.
5. I go to Shell->tmux->detach.
6. The second window closes.
7. I focus the first window.
8. The terminal is borked:
* I type and nothing shows up
* hitting enter causes the typed characters to run
* typing stty sane<enter> restores the normal terminal
One thing that may be different between my setup and yours is that I
installed tmux into $HOME/app/tmux instead of /usr/local.
I uploaded a binary, but it won't work for everyone. See the caveats
in the description.
http://code.google.com/p/iterm2/downloads/detail?name=tmux-for-iTerm2-20111219-precompiled.tar.gz
People will probably think of ways to use this that I haven't, so I
hope it gets some comments with new ideas.
If you ssh into a server and run tmux with 7 windows, then the obvious
use case is that you get a nicer UI to interact with your tmux
windows. You don't have to give up a keystroke to tmux (^B, or
whatever), and you get all the iTerm2 niceties that tmux doesn't have
(e.g., Find).
At the moment I do a lot of work on a remote server and use iTerm2, running multiple tabs (see the Applescript on the iTerm2 site for how to run this as an executable), one session per tab with screen on the remote machine so I don't lose my sessions if I get disconnected. This tmux stuff looks interesting, but what does it give me that screen doesn't? The tmux documentation is a little difficult to understand in this respect.... what would be ideal would be a local shell command I can type in iTerm which will reconnect me all the way to vim or whatever's running on the remote server.
Thanks,
Sam
Sam Critchley
s...@l3bv.com
Location, Location, Location B.V.
Nieuwe Leliestraat 78
1015 SV Amsterdam
The Netherlands
M: +31 6 28 233 133
I can confirm that screen eats escape codes. There is some talk of
making tmux able to pass on unknown escape codes or a adding an escape
code to forward a different escape code.
snip
> The tmux integration is still very early in its development. What you see in
> this release is the minimum viable feature set--I wanted to release it as
> soon as possible to get feedback and find bugs. Let me know what
> improvements you'd like to see. I'm open to making changes to make this work
> really well. I believe that if you ssh to a remote host, this should be the
> preferred way to work.
snip
One thing I am finding annoying is that I tend to use "ctrl-a a" (I
remap ctrl-b to ctrl-a and ctrl-a l to ctrl-a a to make it easier to
switch between tmux and screen) a lot to bounce between two windows.
There doesn't seem to be a last-used-(window|tab|pane) action in
iTerm2.
I think you have already mentioned the possibility of having tabs
instead of windows be the default based on an option. That is
something else I really want. For one thing, it would make session
switching easier to deal with (not that the code supports session
switching yet).
I think I may have found a bug: an arrow is used to indicate that this
is a tmux window, but when I create a pane, the new pane's title bar
doesn't have the arrow (but the original does).
There is a "cycle tabs forward" action that acts like cmd-tab, but for
tabs. I recommend binding control-tab to that action. It will let you
switch between two tabs as you describe. I'm certainly open to adding
a "cycle through windows" and "cycle through panes" action if that
would be useful.
> I think you have already mentioned the possibility of having tabs
> instead of windows be the default based on an option. That is
> something else I really want. For one thing, it would make session
> switching easier to deal with (not that the code supports session
> switching yet).
I'm thinking that when you attach you'll get a tmux window manager
(similar to the cmd-O profiles window) that lets you open tmux windows
in various ways.
> I think I may have found a bug: an arrow is used to indicate that this
> is a tmux window, but when I create a pane, the new pane's title bar
> doesn't have the arrow (but the original does).
>
Thanks for the bug report. I'll have a look at that.