Re: [Hampshire] Tmux - the terminal multiplexer
I don't use screen or tmux bare anymore, but I use byobu. Certainly makes life easy for the occasional user. Can be blinged up with unicode too: http://ifdeflinux.blogspot.co.uk/2013/04/byobu-bling-with-unicode-custom.html -- Philip Stubbs -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
[Hampshire] Tmux - the terminal multiplexer
Does anyone here use tmux (as opposed to screen) for terminal multiplexing? I've been using it for a few months and it's awesome - especially v1.8 which was released just a couple of weeks back. I no longer use tabs/multiple terminals - everything on my system goes through one single terminal window via tmux sessions, windows and panes; even when I'm working locally only. I'm aware that screen can do some things that tmux can't - I'd love to hear from anyone who uses these screen features so I can learn what I'm missing out on! If anyone would be interested in hearing about how I use tmux then I'd be happy to write something up? Cheers, Benjie. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
I love the layout manager and that it remembers layout after disconnecting and reconnecting! I have a shell script for starting a load of windows and commands easily, it actually runs at boot to start some things I want to run and be able to check stdout of Anton -- Anton Piatek http://www.strangeparty.com No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconvenienced. On 15 Apr 2013 10:10, Benjie Gillam ben...@jemjie.com wrote: Does anyone here use tmux (as opposed to screen) for terminal multiplexing? I've been using it for a few months and it's awesome - especially v1.8 which was released just a couple of weeks back. I no longer use tabs/multiple terminals - everything on my system goes through one single terminal window via tmux sessions, windows and panes; even when I'm working locally only. I'm aware that screen can do some things that tmux can't - I'd love to hear from anyone who uses these screen features so I can learn what I'm missing out on! If anyone would be interested in hearing about how I use tmux then I'd be happy to write something up? Cheers, Benjie. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
Hi there, I've been using it for a while, it is indeed grand. What are the changes with v 1.8 you find so helpful? Cheers! Michael On 15 April 2013 10:09, Benjie Gillam ben...@jemjie.com wrote: Does anyone here use tmux (as opposed to screen) for terminal multiplexing? I've been using it for a few months and it's awesome - especially v1.8 which was released just a couple of weeks back. I no longer use tabs/multiple terminals - everything on my system goes through one single terminal window via tmux sessions, windows and panes; even when I'm working locally only. I'm aware that screen can do some things that tmux can't - I'd love to hear from anyone who uses these screen features so I can learn what I'm missing out on! If anyone would be interested in hearing about how I use tmux then I'd be happy to write something up? Cheers, Benjie. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
There's zoom mode, which is really good if you use a lot of splits - you can do {prefix}z to zoom one pane up to full screen, then {prefix}z to unzoom it again. Also there's text reflowing now (which screen has had for ages) - if you resize a pane then the text inside it will reflow properly. This makes zooming much more useful! Also mouse support is improved - there used to be an issue (at least for me) where scrolling up a buffer worked fine, but scrolling back down would jump to the bottom after a few clicks of the mouse wheel; but now it works how you'd expect. (Yes, I do use the mouse for some things, sometimes!) (Theres more changes too, but these are the ones that stuck out for me.) On 15 April 2013 10:40, Michael O'Sullivan francium.d...@gmail.com wrote: Hi there, I've been using it for a while, it is indeed grand. What are the changes with v 1.8 you find so helpful? Cheers! Michael On 15 April 2013 10:09, Benjie Gillam ben...@jemjie.com wrote: Does anyone here use tmux (as opposed to screen) for terminal multiplexing? I've been using it for a few months and it's awesome - especially v1.8 which was released just a couple of weeks back. I no longer use tabs/multiple terminals - everything on my system goes through one single terminal window via tmux sessions, windows and panes; even when I'm working locally only. I'm aware that screen can do some things that tmux can't - I'd love to hear from anyone who uses these screen features so I can learn what I'm missing out on! If anyone would be interested in hearing about how I use tmux then I'd be happy to write something up? Cheers, Benjie. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
Thanks Benjie, that sounds worth a go! On 15 April 2013 11:27, Benjie Gillam ben...@jemjie.com wrote: There's zoom mode, which is really good if you use a lot of splits - you can do {prefix}z to zoom one pane up to full screen, then {prefix}z to unzoom it again. Also there's text reflowing now (which screen has had for ages) - if you resize a pane then the text inside it will reflow properly. This makes zooming much more useful! Also mouse support is improved - there used to be an issue (at least for me) where scrolling up a buffer worked fine, but scrolling back down would jump to the bottom after a few clicks of the mouse wheel; but now it works how you'd expect. (Yes, I do use the mouse for some things, sometimes!) (Theres more changes too, but these are the ones that stuck out for me.) On 15 April 2013 10:40, Michael O'Sullivan francium.d...@gmail.comwrote: Hi there, I've been using it for a while, it is indeed grand. What are the changes with v 1.8 you find so helpful? Cheers! Michael On 15 April 2013 10:09, Benjie Gillam ben...@jemjie.com wrote: Does anyone here use tmux (as opposed to screen) for terminal multiplexing? I've been using it for a few months and it's awesome - especially v1.8 which was released just a couple of weeks back. I no longer use tabs/multiple terminals - everything on my system goes through one single terminal window via tmux sessions, windows and panes; even when I'm working locally only. I'm aware that screen can do some things that tmux can't - I'd love to hear from anyone who uses these screen features so I can learn what I'm missing out on! If anyone would be interested in hearing about how I use tmux then I'd be happy to write something up? Cheers, Benjie. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
Yep, tmux is indeed very useful. Especially for the busy sysadmin. Thought I'd share my tmux.conf, theres some comments about mouse control hiccups I've encountered, maybe it's worth upgrading to 1.8 then? https://dl.dropboxusercontent.com/u/7890536/tmux.conf On 15 April 2013 10:09, Benjie Gillam ben...@jemjie.com wrote: Does anyone here use tmux (as opposed to screen) for terminal multiplexing? I've been using it for a few months and it's awesome - especially v1.8 which was released just a couple of weeks back. I no longer use tabs/multiple terminals - everything on my system goes through one single terminal window via tmux sessions, windows and panes; even when I'm working locally only. I'm aware that screen can do some things that tmux can't - I'd love to hear from anyone who uses these screen features so I can learn what I'm missing out on! If anyone would be interested in hearing about how I use tmux then I'd be happy to write something up? Cheers, Benjie. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- GPG Key fingerprint = EF78 310C C517 9564 9ECA 82F6 68FA E621 17E1 5D16 http://about.me/imranchaudhry -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
I've been a fairly long-term 'screen' user, not ever tried tmux. From the comments above, it's clear there are things tmux does that screen doesn't (and maybe the other way round too). I'd be interested to see the two compared ... could be an interesting demo topic for a LUG meeting. (Mischievously, I find my self wondering if it's another vi-versus-emacs type thing :-) -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
Hi Benjie, On Mon, Apr 15, 2013 at 10:09:58AM +0100, Benjie Gillam wrote: If anyone would be interested in hearing about how I use tmux then I'd be happy to write something up? I am more interested in why you choose tmux over screen. I use screen and am pretty happy with it, but have never tried tmux, so I wonder what I am missing. Cheers, Andy -- http://bitfolk.com/ -- No-nonsense VPS hosting signature.asc Description: Digital signature -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
For me it is the fact I can split the view into a grid and tmux remembers after disconnecting, screen doesn't... Anton -- Anton Piatek http://www.strangeparty.com No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconvenienced. On 15 Apr 2013 21:34, Benjie Gillam ben...@jemjie.com wrote: Imran: nice. I prefer using Ctrl-s as prefix - I never use XOFF/XON deliberately, so I don't lose a binding. Ctrl-a is very useful I find - increment number in vim normal mode; jump to beginning of line in bash/emacs; and other uses I forget - so I don't like overriding it. Others I know use Ctrl-space but I use this globally in my desktop environment. I like your 'r' binding to reload! - Victor, Andy and anyone else interested in tmux vs screen: tmux splits both ways without a patch (screen may do this too now; I'm not up to date with it) and has handy tools for rearranging the splits ('panes'). Multiple tmux clients can connect to the same tmux server; so two people can share the same tmux instance but they can both view the same 'window' or different windows. tmux will automatically resize a shared window to the smallest of the connected screens, but will resize it back up again when no-one else is viewing the current window. This is great for pair programming (though I've not tried it for this); but I've used it for setting up a Raspberry Pi server at So Make It easily with a friend - he was configuring some things whilst I others; but we could each quickly switch to each others windows to either work together, glean information, or just to see what the other was doing. I've also seen people use this for guiding newbies in the setting up of Linux/Linux software on a fresh machine. It's easy to move panes between windows, and even move windows between sessions. It's easy to switch sessions. It's highly configurable. You can give it vi-like bindings if desired. Panes/windows can be shared across multiple sessions. Tmux seems faster and lighter than screen to me; but this may just be my perception. Cheers, Benjie. On 15 April 2013 18:30, Andy Smith a...@strugglers.net wrote: Hi Benjie, On Mon, Apr 15, 2013 at 10:09:58AM +0100, Benjie Gillam wrote: If anyone would be interested in hearing about how I use tmux then I'd be happy to write something up? I am more interested in why you choose tmux over screen. I use screen and am pretty happy with it, but have never tried tmux, so I wonder what I am missing. Cheers, Andy -- http://bitfolk.com/ -- No-nonsense VPS hosting -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEAREDAAYFAlFsOT8ACgkQIJm2TL8VSQu8GQCgsSqmGWJglXu1ku7KyY436YwO +g4AoMpXH1W273j4NX5qD7JSgLbTr7bs =86+a -END PGP SIGNATURE- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
On 15/04/13 10:09, Benjie Gillam wrote: Does anyone here use tmux (as opposed to screen) for terminal multiplexing? I've been using it for a few months and it's awesome - especially v1.8 which was released just a couple of weeks back. I no longer use tabs/multiple terminals - everything on my system goes through one single terminal window via tmux sessions, windows and panes; even when I'm working locally only. I'm aware that screen can do some things that tmux can't - I'd love to hear from anyone who uses these screen features so I can learn what I'm missing out on! If anyone would be interested in hearing about how I use tmux then I'd be happy to write something up? Cheers, Benjie. A question and apologies if I over simplify this or use the wrong terminology. I had never heard of tmux before this thread started, but am I to assume that tmux is a command line tool which allows you to run multiple terminal screens in a window like environment (so you can run more than one terminal on a cli screen), similar to running a graphical desktop and opening lots of terminals applications? Tim -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
I think this may come down to use cases and contexts. I have not made use of the split-screen feature in screen and not missed it really: this may be due to my desktop monitors at home being not huge (one 17, one 19) so if the space is split it's not /quite/ big enough; interestingly I have just been on a contract where everyone used 24 inch plus monitors and I was starting to feel that with the extra space it could be useful. But also I tend to do a lot of work in an emacs session where it's very quick and easy to split and unsplit the screen. So I just run a number of full-screen bash prompt 'windows' and an emacs one with several direds and files (and often a shell as well) in it in separate sub-panels. ( Oh, and btw, I configured my escape character to be ctrl-backslash :-) -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
Tim: yes. It's heirarchical - think of this as a rough analogy: Sessions in tmux can be thought of as separate terminal windows on your desktop. Windows in tmux can be thought of as tabs in one terminal window on your desktop. Panes in tmux are effectively splitting a single tab in your terminal into multiple CLIs. Each tmux window can have it's own configuration of tmux panes (which, as Anton points out, are persistent). Here's a screenshot of session [0]; window 4 (of at least 17) showing 4 panes (by the looks of it: remote tmux (showing irssi), 2 bash prompts and a music player (an mpd client perhaps?)). http://tmux.sourceforge.net/tmux5.png More screenshots here: http://tmux.sourceforge.net/ Hope this helps, Benjie. On 15 Apr 2013, at 22:01, Tim t...@xendistar.co.uk wrote: A question and apologies if I over simplify this or use the wrong terminology. I had never heard of tmux before this thread started, but am I to assume that tmux is a command line tool which allows you to run multiple terminal screens in a window like environment (so you can run more than one terminal on a cli screen), similar to running a graphical desktop and opening lots of terminals applications? Tim -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] Tmux - the terminal multiplexer
Interesting escape character; though I think backslash moves around too much for me personally. (I use a lot of different keyboards!) I didn't think I was missing anything until I started really using it either! That's why I ask for screen features that people use that I don't; you generally don't know what you're missing until someone points it out. When I was younger I didn't think I was missing much using a heavily modified gEdit for coding; but now I use Vim and know the error of my ways! I use splits all the time, mostly for running/monitoring build tasks, workers and test suites without either having to flick between windows/tabs or having to give up too much screen real-estate. Shows enough information so that you know it's working (or not!) without taking up too much space - plus I can zoom it easily with {prefix}z if I need to see more history at once and it's super simple to resize/rearrange/set up. (I've yet to learn emacs - trying to get a decent grip on Vim first! I won't start a flame war by asking if it's worth it...) On 15 Apr 2013, at 22:09, Victor Churchill victorchurch...@gmail.com wrote: I think this may come down to use cases and contexts. I have not made use of the split-screen feature in screen and not missed it really: this may be due to my desktop monitors at home being not huge (one 17, one 19) so if the space is split it's not /quite/ big enough; interestingly I have just been on a contract where everyone used 24 inch plus monitors and I was starting to feel that with the extra space it could be useful. But also I tend to do a lot of work in an emacs session where it's very quick and easy to split and unsplit the screen. So I just run a number of full-screen bash prompt 'windows' and an emacs one with several direds and files (and often a shell as well) in it in separate sub-panels. ( Oh, and btw, I configured my escape character to be ctrl-backslash :-) -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --