57
votes
Set the active tmux tab color
In version 3.3 use the answer in comment provided here by @AntK.
set-window-option -g window-status-current-style bg=red
In version 2.9 You should change this options to something like:
# Active ...
8
votes
Accepted
What are the advantages of hardware-accelerated terminal emulators?
They can potentially be faster at outputting and refreshing vast amounts of information. It could also allow for smooth(er) scrolling. Human beings however are quite slow at reading this information, ...
5
votes
How to equalize byobu vertical split screen size
Try using the Shift-F8 hot key to rearrange the splits. You can press it multiple times to cycle through a couple of arrangements that equalizes the spacing of the splits there.
Shift-F8 ...
5
votes
Does a terminal multiplexer have any benefit when used with a tiling window manager?
Another useful aspect of a terminal multiplexer in this scenario is after connecting to remote servers. A typical use case I find is
Open a terminal window on my local pc.
ssh into a remote server.
...
5
votes
Is there a tmux shortcut to go read only?
In tmux 2.9a, man tmux says (under attach-session):
-r signifies the client is read-only (only keys bound to the
detach-client or switch-client commands have any effect)
Based on this, you ...
3
votes
How do I get a tmux session's base directory?
My tmux(1) manual documents a session_path, so maybe you could save it with something like this "tmux path session report" script:
#!/bin/sh
TMPFILE=`mktemp /tmp/tps-report.XXXXXXXXXX` || ...
3
votes
Mosh and terminal multiplexing
yes, yes, yes.
Amongst one of the benefits/uses of tmux is to allow persistence of sessions even if disconnected from the session - this was true even before mosh came along.
tmux handles the signal ...
3
votes
Accepted
Escape keywords with tmux send
To send a string literally you can use the -l option to send-keys, but as you might still have more options after the -l you need to use something like '' (an empty string) to no longer be looking for ...
3
votes
Accepted
tmux - List output last line of all windows in new window
The idea is to enumerate all the windows, or rather all the panes, since a window can have several of them. Then capture the output of each pane and display the last line of captured text. Put this ...
2
votes
Accepted
On my local machine, what can Screen bring, which a terminal emulator or nohup/disown can't?
On a local machine, I don't have to worry about unstable network
connection between computer and terminal, and don't have to share
session with other users.
But you can always close your terminal ...
1
vote
Accepted
Execute command when creating new screen session
I found my answer, although it was under a different title and the question was slightly different, this does the job:
screen -d -S downloader -m wget https://google.com
It creates a new screen ...
1
vote
SSH multiplexing + control master when network connection changes
You didn't say which version of Ubuntu you are using on the client.
IIRC, recent Ubuntu's use dhclient to setup the IP address on your computer - this can perform actions (run scripts) when it exits. ...
1
vote
Open a new window in tmux only if no window is opened in the given path, otherwise attach to it
As @KamilMaciorowski pointed out, a very similar problem was solved by them here. I modified the script a little bit to suit my needs i.e. I want to ignore "busy" panes i.e. that have some ...
1
vote
Does any terminal multiplexer (screen, tmux, zellij) support job suspension (Ctrl-Z) in Bash?
tmux
Tmux suspends with "C-b C-z"
… i.e. prefix Ctrl+z (the default prefix is Ctrl+b).
You can tell it to suspend the client with sole Ctrl+z. This is a command for a shell inside tmux:
...
1
vote
Accepted
Does any terminal multiplexer (screen, tmux, zellij) support job suspension (Ctrl-Z) in Bash?
Do you want to suspend a job inside a screen window?
Just use Ctrl z inside the screen window (as usual). This doesn't suspend screen, though.
Do you want to suspend screen itself?
Use Ctrl az ...
1
vote
Accepted
How to execute a command in tmux and detach using a single line command?
From the manual:
new-session [-AdDEPX] [-c start-directory] [-e environment] [-f flags]
[-F format] [-n window-name] [-s session-name] [-t group-name] [-x width]
[-y height] [shell-command]
(alias: ...
1
vote
Are there tools that I can use to obtain a snapshot of terminal or pty state?
Pretty sure tmux is the only game in town because not only can it produce the state of the buffer, it can do it with all of the ANSI colors and styling applied, which is very useful for this testing ...
1
vote
:How to change `Prefix :` (command prompt) to `Prefix ;` in tmux?
I figured it out with help from Orlandocollins
add this to your .tmux.conf and switch the key bindings.
# tmux prompt key
unbind ';'
unbind ':'
bind-key ';' command-prompt
bind-key : last-pane
1
vote
How to stop terminal from getting mouse click input?
You can turn it off in much the same way that you turned it on:
printf "\033\[?1000h"
(on) and
printf "\033\[?1000l"
(off). See XTerm Control Sequences.
1
vote
File/foler permissions & plex
Initially being surprised by the lack of write ability on an ntfs mount, I noticed the 'permissions' option in your fstab file.
This is an ntfs-3g driver option which is implementing the access ...
1
vote
monitor command outputs in separate windows within a terminal
You can use a terminal multiplexer like screen or tmux to split the screen into multiple panes, and then run tail in each pane. For Screen, refer to the documentation for regions (i.e. split-screens). ...
1
vote
How to create a new window on the current directory in tmux?
Of note for oh-my-tmux users:
oh-my-tmux will automatically add the -c "#{pane_current_path}" option based on these settings:
tmux_conf_new_session_retain_current_path=false
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
terminal-multiplexer × 54tmux × 28
terminal × 21
gnu-screen × 15
linux × 5
bash × 5
ssh × 4
command-line × 4
terminal-emulator × 4
shell × 3
macos × 3
gnome-terminal × 3
xterm × 3
ubuntu × 2
pipe × 2
tty × 2
console × 2
escape-characters × 2
split × 2
xmonad × 2
shell-script × 1
permissions × 1
zsh × 1
vim × 1
users × 1