tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

learn more… | top users | synonyms

6
votes
2answers
386 views

Execute a process in the current pane, redirecting stdio to/from the pane

GNU Screen has a command called exec that will launch a subprocess and optionally let you do things with its file descriptors, including tying them in your window. I frequently use :exec !! sx -b ...
1
vote
2answers
173 views

How do I create a simple tmux conf that splits a window?

I'd like to create a simple tmux conf that does the follow. Splits the window/pane/whatever_stupid_terminology horizontally (hsplit) Opens in the top pane tail -f foo Opens in the bottom pane tail ...
6
votes
1answer
581 views

Escape sequences in output of script called from ncurses application

I'm currently running mcabber as my Jabber client (which uses ncurses) in a tmux session on my homeserver. Locally i run iTerm2 as a terminal emulator, which supports the triggering of growl ...
5
votes
1answer
235 views

Linux VT Emacs in tmux, breaks color and cursor

TERM is set to screen. I tried with screen-256color, but then the colors went really nuts. I also tried xterm, linux, and some others (that I could think of, not really thinking) but screen is the ...
4
votes
1answer
366 views

Set tmux status line color based on hostname

I'd like tmux to pick a color dynamically based on the hostname of the machine. Since I share my tmux.conf across several machines, assigning an unique color for each of those hosts would be handy ...
4
votes
1answer
53 views

tmux: Keep scroll position when changing session

Sometimes I'm scrolling up a log file and need to switch sessions, so open the session menu with prefix-s. This causes tmux to forget the window's scroll position, so that when I return it's at the ...
3
votes
1answer
137 views

Make tmux block until program completes

I am impressed by tmux's remote control features: tmux new-window -t p12346 'echo foo;sleep 10' This creates a new window in the session named p12346 and does not print anything on the screen. ...
2
votes
1answer
60 views

What is tmux's “message-command”?

I've been trying to figure out how to change the background color of the command prompt in tmux's copy mode. It defaults to black on orange, at least on my setup. I changed the color of the command ...
2
votes
1answer
62 views

Why does tmux fail to “scroll” when entering a command that exceeds one line? (OSX Terminal.app)

When I use tmux and enter a command that exceeds the line, it fails to redraw the previous line. It simply clears the current line and I can't see what I just wrote. It does only redraw the first ...
2
votes
1answer
137 views

tmux: shared session, one user in a pane, another in another pane, two different cursors

I've decided to try tmux: have been reading the docs and googling around, trying to find a way to have two users sharing a session, each with a different cursor. However, giving 777 permissions to ...
2
votes
1answer
271 views

Launch R code from within vim-r-plugin as separate window instead of inside tmux/screen?

I use the vim-r-plugin to write R code in vim. It is a nice plugin and I love that the plugin lets me run code directly from within vim. However, the R prompt is opened in a console which is ...
2
votes
1answer
185 views

ESC-q doesn't work in tmux with zsh

The title says it all. I use Escq a lot (stashing the current line while I execute another command), and it works fine with Gnome Terminal 3.6.0 + zsh. However, if I start tmux, then it stops working: ...
1
vote
1answer
14 views

Tmux Keyboard Shortcut

I pasted the following into my ~/.tmux.conf bind -n <C-w>h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" It now ...
1
vote
1answer
32 views

How to get guake to update background characters?

This is actually a problem that also goes on with screen. Here is what it looks like (in mutt): When running a terminal application that builds an updated interface from Guake, tmux and screen ...
0
votes
1answer
215 views

RVM + TMUX—Duplicate entries in $PATH

My Linux terminal config files (.bash_profile, .profile, .bashrc) expand $PATH by prepending some custom directories. This only happens once (and I've also included some ENV vairiable based guards to ...
0
votes
1answer
93 views

Split tmux windows with same keys as in Emacs?

In emacs, you split a window with C-x 2 (one above the other) or C-x 3 (one next to the other). How can I get the same key bindings in tmux? Also, once a window is split, in emacs you cycle through ...
0
votes
1answer
145 views

TMUX under Gentoo TTY artifacts

Problem: Tmux.conf (included below) generates a statusbar... with a light gray background (the config says '#000000', so black). This background ends up replacing what would normally be the normal ...
4
votes
0answers
446 views

tmux exits immediately after starting

I'm trying to start with Tmux but failing to even run it. Immediately after starting it exits. looked like It's the same as this question It happens both without a .tmux.conf and (following some ...
3
votes
0answers
59 views

How to change background color of a pane in tmux?

I would like to change the background color of the inactive panes in tmux to better distinguish between the active pane and inactive panes. Something just a few shades different than the default. How ...
3
votes
0answers
74 views

Is there a more elegant way to unlink two tmux clients sharing a session from inside tmux?

This is almost a code-review question, but very *nixy and more about configuration than code. For years since I switched to tmux from screen I've had a couple of nagging issues that I could not make ...
3
votes
0answers
67 views

How to detect TMux level

Is there any way to detect how many levels of tmux I'm currently in? I've been able to hack it with 2 levels by simply checking [[ -n "$SSH_CLIENT" && -n "$TMUX" ]], so I can have one level on ...
3
votes
0answers
2k views

Reset background to transparent with tmux?

I recently set up tmux-powerline and noticed that the background color on the status-left, if changed, refuses to go back to default and transparent (if transparency is enabled). I was able to fix ...
3
votes
0answers
1k views

Bad utf8 display with tmux

When I press the "é" key multiple times on my keyboard, here is what tmux print (notice the spaces) : arcanis@~ > é é é é é é é é é é é é é It also broke emacs when the file contains utf8 ...
2
votes
0answers
203 views

Have tmux wait until I SSH in, to complete rest of Tmuxinator script

After recently discovering tmux and Tmuxinator, I've been trying to set up a development environment to use. Per protocol, we aren't allowed to store passwords/passphrases in scripts. So what I'm ...
2
votes
0answers
104 views

xinitrc: starting xterm with tmux causes all windows to share same geometry

I have xterm with tmux open upon startup of X11 with the following line in my xinitrc file: xterm -e tmux & However the -e tmux causes all windows to assume the geometry of the first -geometry ...
2
votes
0answers
137 views

Let remote ssh session know about tmux?

Assume I run a tmux session on machine A and from it I start an interactive shell via ssh to machine B. I'd like to change machine B's PS1 to better suit the use from under tmux; for instance, I'd ...
2
votes
0answers
118 views

Tmux is not able to distinguish between insert and shift-insert

Insert when in xterm, gives ^[[2~ and, Shift+Insert gives ^[[2;1~ All this is good until I start tmux. Note that the $TERM variable remains the same, so this issue should not be related to ...
2
votes
0answers
166 views

GNU screen, tmux, dvtm - none work as ordinary user

I bought cheapest vps for teamspeak hosting and I have strange issues with demonizing it's process. None of screen tmux and dvtm work for ordinary user, but they work witout a charm for root. As far ...
2
votes
0answers
137 views

Simulating GNU Screen's shelltitle in tmux

I'm trying to simulate GNU Screen's shelltitle feature in tmux. I have the following in my ~/.bashrc: if [[ "$TERM" == screen* ]]; then SCREEN_ESC='\[\ek\e\\\]' else SCREEN_ESC='' fi ...
2
votes
0answers
161 views

How does one include the session-name in status bar for byobu-tmux?

I'd like to include the session name of my current tmux session in the status bar. There's nothing in ~/.byobu/status that allows me to do this and including the tmux configuration directive #S in the ...
1
vote
0answers
10 views

Why are my windows highlighted when I first open tmux?

Sometimes after having been away from my computer for a while, when I open tmux all the windows in a session have sort of a background highlight: Once I cycle through them, it disappears, and only ...
1
vote
0answers
17 views

Tmux eats control tab sequence

I have ctrl-tab (i.e. ^[[27;5;9~) assigned to switch tabs in vim. It works directly under xterm, but when I also run tmux this sequence works only occasionally. I suppose it is because tmux captures ...
1
vote
0answers
38 views

“sticky” escape key in tmux

How would I go about configuring my tmux such that when I press my escape character, it stays in escape-mode until I press it again or press Esc? I.e. so that I don't have to press it repeatedly when ...
1
vote
0answers
518 views

Terminal colors for Vim Airline and Tmux Tmuxline

When using Vim on its own with Vundle and Airline the theme appears normally: When I have loaded it up in Tmuxline, the theme uses different colors and even Vim looks different: Here's my Tmux ...
1
vote
0answers
26 views

How to stop tmux capturing key sequences?

My xterm is configured to produce this sequence: Ctrl ~Shift <Key>Tab: string(0x1b) string("[27;5;9~") \n\ Under tmux it almost always does not work (sometimes it passes through). What could ...
1
vote
0answers
72 views

tmux color theme in emacs gtk

When I use emacs -nw I always use it in tmux 256-color mode. tmux applies its default color theme to emacs so it looks like this: For some reason I like that color theme far better than any other ...
1
vote
0answers
65 views

Execute commands on TMUX Detach

Is it possible to execute commands on tmux detach? I usually have a rails console and server running in the tmux session, on detach is it possible to automatically end those? Thanks.
1
vote
0answers
61 views

tmux disable automatic-rename on break pane

If I setw automatic-rename off on two windows, then join them, when I detach either one tmux automatically renames it! And "show-window-options" now has no record of the "automatic-rename off". How ...
1
vote
0answers
134 views

How can I bind Ctrl-Alt-[0-9] in Tmux?

I am able to bind Ctrl-Alt-[a-z] using M-C-a, M-C-b etc. However, when I attempt to bind Ctrl-Alt and a number key I get: .tmux.conf: 45: unknown key: M-C-0 Any idea why? I'm running tmux ver 1.7 ...
1
vote
0answers
133 views

Tmux hidden input at command line

I've just started using tmux recently, and have run into this problem a few times. Whatever I type on the command line, is hidden from view until I press enter and it is executed. I don't know how I ...
1
vote
0answers
132 views

GNU screen :fit equivalent in tmux

I'm experiencing this problem where I've attached a single tmux session at multiple terminals with differing console sizes. Is there a solution to rid of the view-port without having to disconnect ...
1
vote
0answers
110 views

tmux choose-session format

Can I specify a "format" for the choose-session window beyond text attributes, foreground, background and other cosmetic factors? Specifically: can I somehow set something that will always supply the ...
1
vote
0answers
166 views

tmux.conf embedding a shell script?

In my tmux.conf, I need to start a session with the name of the current user in capitals (this is actually a simplification but it will do as an example). Imagine a fictitious line like this one, ...
1
vote
0answers
241 views

How to use comma as tmux's prefix

Under screen, I used: bindkey , command to use the comma as the prefix instead of Ctrla. If I do set -g prefix in tmux, it complains saying: unkown key At first, I believed that tmux did not ...
0
votes
0answers
27 views

Powerline bash prompt not colorized in tmux

The bash/zsh commandline prompt is not displaying colors in tmux, even though I managed to get the powerline itself working (with colors). The prompt works fine in pure bash/zsh. I am getting the ...
0
votes
0answers
63 views

tmux unable to start a new session? “1;2c”

Introduction I just installed tmux onto my CentOS 7 machine, but I have encountered a bewildering issue. Whenever I try to attempt to start up a session using tmux or tmux new -s session-name, it ...
0
votes
0answers
74 views

Error when running TMUX under CYGWIN

When I run tmux in cygwin command line I get the error: $ tmux 0 [main] tmux 6688 C:\cygwin64\bin\tmux.exe: *** fatal error - NtCreateEvent(lock): 0xC0000077 Hangup I tried to reinstall tmux ...
0
votes
0answers
27 views

tmux session stops updating screen randomly

I use tmux 1.6-2 on a Debian 7.6 (wheezy). I open a new session and start a long running script that gives updates in form of a progress bar and an activity indicator (spinning bar: /-\|/ ). When ...
0
votes
0answers
62 views

Disable mouse scrolling in vim with tmux

I'm experiencing the same problem as in this Q&A titled: disabling mouse support in vim in a gnome-terminal environment, where it was found (in the comments for the top answer) the problem wasn't ...
0
votes
0answers
27 views

How can I make C-j send a newline in the tmux command line?

I have grown fond of using C-j instead of <ENTER> to send newlines. Unfortunately, in the tmux command line (invoked with prefix-: by default), C-j does not do anything, even with set -gw ...