7 ms·
I remember using on the mac a branch of tmux with iTerm, where the gui understood tmux, giving native tabs and scrollback. I thought this was the greatest thin
by CJefferson 13y ago
I remember using on the mac a branch of tmux with iTerm, where the gui understood tmux, giving native tabs and scrollback. I thought this was the greatest thing ever, but am now on Linux. Is this work still continuing does anyone know?
- pi-rat 13y agoWorks out the box with tmux 1.8 and later + iTerm2 these days. Simply run tmux -CC [attach] and the tmux session pops up as tabs in iTerm2. I don't know about any similar alternatives for linux :( https://code.google.com/p/iterm2/wiki/TmuxIntegration https://code.google.com/p/iterm2/wiki/TmuxIntegration
- pyre 13y agoThe part that I dislike about it is that: 1) You have to have a separate terminal window for the 'control' process. 2) Now creating new tabs / windows automatically creates them in said tmux session (unless you manually use the "Profiles" drop-down menu). It would be nice to use Tmux as a way to create a window full of tabs in a scripted way (a la Tmuxinator), but not be forced to use a single Tmux session for everything.
- Moto7451 13y agoYup, it was merged into trunk for 1.8. I love iTerm/Tmux integration.
- pantalaimon 13y agobut is there also an integration for a Linux terminal emulator?
- Myrmornis 13y agoNot as far as I know. The iterm2 - tmux integration work was done by the iterm2 author George Nachman.
- spaky 13y agoYou can also get tab and scrollback support in the regular mac terminal with mouseterm https://bitheap.org/mouseterm/ https://bitheap.org/mouseterm/
- gingerlime 13y agoIsn't one of the advantages of tmux is reduce / avoid using the mouse? I know that scrolling is one of the first non-obvious changes that seem irritating at first. But after you get used to scrolling with the keyboard, I find myself missing this possibility on 'standard' terminal windows. Suddenly using the mouse to scroll feels really awkward and inefficient.
- Cthulhu_ 13y agoI think I can live without scrolling, but what I found most irritating when trying tmux is selecting / copying / pasting things. ATM I use iterm with split panes and a 'quake-style' dropdown terminal; tbh it works well enough for me.
- rjzzleep 13y agoyou can scroll just fine in tmux, in fact better because you can search in your scroll back. <c-b>[ as for selecting copying pasting. i use these options set -g mouse-resize-pane on set -g mouse-select-pane on i can now select and resize panes with the mouse, and i can select while holding the option key on the keyboard. also if you set setw -g mode-mouse on you can scroll back with the mouse in the scroll back buffer without having to press c-b[ and it will still properly scroll everywhere else... vim/weechat/etc. on a mac, iterm2 does this natively(in linux it works anyway). but if you want to use that in terminal or totalterminal(quake term) you'll need to install mouseterm. I recommend using mouseterm-plus as i recall mouse term is no longer maintained. edit: looks like the link is dead you'll have to build it yourself https://github.com/saitoha/mouseterm-plus https://github.com/saitoha/mouseterm-plus
- jasonlotito 13y agoIf you happen to be copying with the mouse, tmux has prefix + z, which expands your current pane to fill the screen. prefix + z returns the screen layout to it's former self. Makes the need to copy easy regardless of layout.
- d0 13y agoDepends. If you have a ThinkPad with a TrackPoint-style mouse, it's actually really convenient having a mouse in the home row. Hold the middle button and scroll up/down easily.
- stiff 13y agoThis actually works with GNU Screen. Because of this, and because of the lack of workspace reordering in tmux, I seem to be actually about the only person who likes Screen more than tmux.
- jc79 13y ago> because of the lack of workspace reordering in tmux What do you mean? Commands like tmux swap-window and tmux move window allow you do move the order of the windows / workspaces.
- stiff 13y agoSee this discussion: http://superuser.com/questions/343572/how-do-i-reorder-tmux-windows http://superuser.com/questions/343572/how-do-i-reorder-tmux-... It kind of works in the end, but it's arguably a bit more awkward to use than in screen.
- jc79 13y agoYour right, I remember that discussion: I actually use pier solution, with the shellscript (I assigned them to Ctrl-A + Number) I agree that it does not work 'out of the box', but once setup, it works quite nice :)
- Haul4ss 13y agoYou're not! I work on a team of Screen enthusiasts. We all use it, every day.
- memming 13y agoWhy not just keep your key bindings compatible with screen? You can't stay with legacy systems forever.
- res0nat0r 13y agoThere really isn't anything 'legacy' with screen. I've been using it for 20 years daily. I really have no reason to switch to tmux because I really can't see anything screen doesn't already offer me. Vertical splits were patched in and added a long time ago, screen is usually installed by default, so I know it is there on systems where I'm not allowed to install packages. I can share screen sessions with co-workers, split windows etc.
- specialist 13y agoCan someone share a use case or example of using tmux? Sorry for being thick, but I'm just not getting it. I use iTerm. I use ssh to regularly access about 20 other boxes. I create tabs for every task. So I might have 3 tabs for a single box. 1 to start/stop processes, 1 to edit files, 1 to tail logs to verify my crap's working. I installed tmux and I couldn't figure out what I'd use it for. This might be completely wrong, but I thought it'd allow me to control multiple boxes from a single session. For example, I have 5 production servers that set up the same way. I want to do the same thing on all 5 at the same time. So my input/output is multiplexed to 5 boxes in a 1:5 relationship. Only I couldn't get that to work. I got lost switching sessions/contexts. Again, sorry for being thick. I feel like I'm missing something great here.
- typicalrunt 13y agoOne use case: you are working away on a server via SSH at some café and suddenly the a internet dies on you. Oh crap, you had a ``make install`` running and now it will be half-baked because a dead SSH connection will HUP the process you were using. With tmux, no HUP happens on the server side so the process keeps running. Once your internet connection comes back online you ssh back into the machine and ``tmux attach`` to the previous session. And voilà, it is like nothing happened. All of your output from before is still there too.
- baldfat 13y agoMy use case for TMux is simple: It is always persistent so you have your tabs all set up on each server. You just attach to the sessions of TMux on the servers and don't have to ever create your complex scheme on your local machine. You can have them start on boot on the server and just attach to them via ssh. My case I use WeeChat (IRC) on my home server always running and I just ssh to my server and attach to that session.
- netc 13y agoNot sure if you tried following for input/output multiplexing - * Create 5 panes, one for each server * Ctrl-b :setw synchronize-panes This should synchronize the input to all panes i.e. type in any one and it will be sent to all 5. to turn it off, just run the same command again. I don't know if tmux has equivalent synchronize-windows.