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

1
vote
1answer
35 views

Different vim colors and styles in Tmux and Gnome

I am using tmux, and recently found out that the same vim colorshemes inside and outside of tmux have different colors Left is tmux in gnome-terminal, right is plain gnome-terminal, gnome-terminal ...
1
vote
2answers
36 views

How to run multiple programs in one single terminal window?

I would like to write a script that runs multiple programs/commands 'program1', 'program2', 'program3'... in a mosaic of terminal in one single window using gnome-terminal and also using tmux (I mean ...
2
votes
1answer
19 views

Tmux to create a window if it doesn't exist yet

Is it possible to configure tmux so that when you want to switch to a window that doesn't exist, it creates the window and then switches (avoiding Ctrl-b c) ?
0
votes
1answer
29 views

In tmux how do I create a new pane with the right pwd while running a command in the parent pane?

If I create a new pane B from pane A and I'm not running any commands in A then B gets created with the same pwd as A which is what I want. However if while creating the new pane I'm running a bash ...
0
votes
2answers
27 views

Tmux shortcut problem

While using Tmux, I tried to maximise the current pane using <prefix> z, and had a bit of a keyboard fail and accidently held down the prefix keys while pressing z, instead of letting go of the ...
2
votes
2answers
861 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 ...
0
votes
2answers
95 views

Tmux bindings using Ctrl+comma

In OSX, on iTerm2, I can map Ctrl/Cmd/Opt+, or Ctrl/Cmd/Opt+. to hex codes that go to next or previous tmux windows. How can I use Super/Meta/Ctrl and comma/dot key presses on Linux to produce the ...
0
votes
1answer
336 views

Tmux: <Crtl>-b doesn't work

Every time I start tmux and then press Ctrl+b, the terminal prints ^B. I am using Windows to connect to Raspberry Pi. I have tried Putty and Bitvise. EDIT: finally I found a imperfect solution. # ...
1
vote
2answers
169 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 ...
3
votes
1answer
927 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
1answer
10 views

How do I split a tmux window into thirds?

I like to use a tall terminal window on the right side of my monitor and I wonder if there's a nice way to divide it into even vertical thirds.
0
votes
1answer
24 views

how to echo/print block by block

I just started using tmux and butterfly and I need to scroll one panel. I tried Ctrl + b + ↑ but it scrolled the whole terminal instead of one panel. Is there any command line to display my ...
11
votes
3answers
1k 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 ...
2
votes
1answer
18 views

tmux: inner window notify outer session

Inside a tmux session I nest another tmux session, on a remote computer. I was wondering if there is a way for the inner tmux to notify the outer when a process is completed. In both (remote, local) ...
0
votes
1answer
23 views

Create pane occupying half of the screen

Let's say I have an arbitrary layout of tmux panes in a window. +------------------------------+ | | | | | | | ...
6
votes
1answer
162 views

Problem using Ctrl+Arrow keys in Vim when using Byobu with tmux

In Vim, I had set the Ctrl+Arrow keys to skip words. This works just fine when running Vim inside the gnome-terminal. However, when using byobu (tmux), it shows weird behavior : it deletes ...
0
votes
1answer
15 views

After 2nd tmux pane windows can't be opened

For the 1st pane on tmux, I had to do this but can open a window. For 2nd and all the rest of panes, I can't open windows. For example: $ echo $DISPLAY localhost:10.0 $ meld . & [1] 466 ...
1
vote
1answer
22 views

tmux: how to bind a key to launch shell command?

I use tmux to develop, with two panes: one to edit the code, and one to compile it. I need to switch pane very often to launch the compile command (say "mvn install"). How can I bind a key (say ...
12
votes
3answers
2k views

tmux session killed when disconnecting from ssh

Summary: I'm trying to figure out why my tmux session dies when I disconnect from ssh Details: I have tmux installed on an Arch Linux system. When I start a tmux session I can detach from it and ...
2
votes
3answers
8k views

How to terminate tmux session and processes it spawned

I noticed that i have a running process and I think it's because i initialized the process in byobu which is using tmux. ps aux | grep sidekiq 1000 13786 0.0 0.0 8108 900 pts/4 S+ ...
-1
votes
1answer
24 views

tmux not printing ANSI colors in status bar

I'm using Mac OSX Yosemite, and I use istats to get CPU temperatures: I wanted to put my CPU temperature in my tmux status bar, so I made my tmux config the following: As you can see, when I ran ...
0
votes
0answers
48 views

How can I find where tmux is installed on my computer? I would like it to autostart when bash starts

I know that this exists. But it isn't working, and when I try to find tmux in the "bin" directories of my computer, it doesn't find it. How is it working when I enter tmux into terminal then? ...
0
votes
2answers
1k views

tmux with iterm2 attach a remote session

I'm using the Tmux integrating with ITerm2, which can create a tab in ITerm 2 for each window created by Tmux. But somehow this doesn't make much sense for the usual SSH scenario, where we first SSH ...
1
vote
0answers
15 views

using multiple terminal x-windows with one tmux session

I usually work with 2 monitors that are not quite vertically aligned (I have a benchtop power supply under my left monitor), but I want to have 4 terminal windows side-by side on my screens which I ...
151
votes
10answers
35k views

tmux vs. GNU Screen

Browsing through questions I found about tmux (I normally used GNU Screen). My question is what are pros and cons of each of them. Especially I couldn't find much about tmux.
0
votes
1answer
29 views

What is the -c [start-directory] in “tmux new-session” command? [duplicate]

In the manual new-session -c option is listed as use to specify [start-directory] with no further explanation. I have a few question to help me understand: What is start-directory used for? Does ...
4
votes
2answers
160 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 ...
0
votes
0answers
18 views

Tmux and GPM on bare tty

I am running Tmux 2.2 on Arch Linux. I tend to use it from a raw TTY console, rather than an xterm in a window manager. I have GPM installed and running, however I cannot seem to get GPM and Tmux to ...
75
votes
14answers
52k views

Getting tmux to copy a buffer to the clipboard

I am trying to figure out a decent way to copy what I have in a tmux buffer into my clipboard. I have tried a couple of different things like bind-key p select-pane -t 2 \; split-window 'xsel -i ...
15
votes
3answers
1k views

What terminal emulators support tmux control mode?

tmux has its control mode, activated with -CC, to allow the terminal emulator to control tmux. iTerm2 uses this to great effect for allowing tmux windows to appear as separate iTerm windows. Are ...
32
votes
2answers
24k views

tmux bottom bar color change

I recently started to use tmux and like it much, but its green bottom bar is a bit distracting, is there a way to change its color? or a way to hide it?
3
votes
3answers
395 views

How to use vim-slime from within a single tmux session?

I'm trying to integrate ipython and vim through a single tmux session using the popular vim plugin "vim-slime." The problem is that while I can get it to work fine provided that vim is opened in a ...
99
votes
2answers
69k views

Getting 256 colors to work in tmux

I have 256 colors working just fine in konsole,. I thought I'd give tmux a try because, unlike screen, it seems to support vi mode. However I find that the colors of my prompt show up and this is ...
98
votes
6answers
33k views

Create new-window with current directory in tmux

Is is possible to open a new-window with its working directory set to the one I am currently in. I am using zsh, if it matters.
1
vote
1answer
4k views

Failed to get bus connection: Could not connect: Connection refused

When I'm running evince file.pdf I got this error Failed to get bus connection: Could not connect: Connection refused Ubuntu 12.04 I have to reboot. Can I repair this error without reboot?
1
vote
1answer
4k 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
1answer
56 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 ...
0
votes
0answers
7 views

How to tell tmux 'new' to respect `base-index'

TL;DR - Is it possible to start tmux from a script so numbering of the first window (which is created by tmux new) respects the setting of base-index in tmux.conf? I'm starting tmux from a script and ...
2
votes
2answers
635 views

Updated my arch linux server and now I get tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968

I recently updated my Arch Linux server and during that process tmux got updated. I was using tmux while the upgrade was going on and used it afterwards, but all during the same SSH session. Now, ...
1
vote
2answers
30 views

Is it possible to start tmux visible session

The code below will run source ~/.bashrc under tmux but this will not open tmux on the terminal. #!/bin/bash tmux new-session -d -s my_session 'source ~/.bashrc' I want the below effect from the ...
0
votes
0answers
46 views

Can't use F1, F2, F3, F4 as prefix key

I've been using F9 as my prefix key for a while but decided F3 would work better. I changed nothing else in my .tmux.config and F3 doesn't work, I get a system error beep instead. Same with F1-F4. ...
6
votes
2answers
2k views

How do I show simple uptime in tmux's status bar?

I want to show the uptime in the tmux status bar in the format DD:HH:MM, without any of the other cruft that the uptime command shows. I've tried these: #set -g status-left '#[fg=green]#H ...
0
votes
0answers
18 views

Send-keys across tmux panes in vim in Cygwin is painfully slow

I am using vimux or vim-tbone to send code to an interpreter in another pane. It works fine with any shell, but I can't get it to work properly in windows. I can't have a VM, so I use cygwin at work ...
20
votes
2answers
4k views

copy (to X clipboard) shortcut in .tmux.conf

In order to copy text to X clipboard in tmux, what I currently do is: go selection mode with prefix[ start selection with space (using mode-keys vi btw) select the text and press enter copy tmux ...
7
votes
2answers
4k views

What are valid keys for tmux?

I was trying to learn how to use the bind-key [-cnr] [-t key-table] key command [arguments] better, but was having some trouble figuring out what "valid keys" are for bind-key command. I tried doing ...
12
votes
4answers
3k views

How can I bind multiple tmux commands to one keystroke?

Specifically I'm trying to give a notification after some command was completed. So, for example, if I reload my configuration file, I'd like to have some confirmation that it worked, which might be ...
2
votes
1answer
379 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 ...
15
votes
3answers
11k views

Use system clipboard in vi-copy mode in tmux

I'm running tmux 1.6 and I'm trying to configure it to use vi-style keybindings as well as use the system clipboard when copying in interactive mode: set-window-option -g mode-keys vi bind-key -t ...
5
votes
2answers
850 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 ...
2
votes
1answer
198 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 ...