Skip to main content

Questions tagged [terminal-multiplexer]

A terminal multiplexer is a software application that can be used to multiplex several virtual consoles, allowing a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session. It is useful for dealing with multiple programs from a command line interface, and for separating programs from the Unix shell that started the program.

Filter by
Sorted by
Tagged with
0 votes
1 answer
53 views

Open a new window in tmux only if no window is opened in the given path, otherwise attach to it

Currently I have my terminal (alacritty) run tmux new -A -s 0 at start to start a new session 0, or attach to it if it already exists. One problem is, I sometimes use open in directory from file ...
MathIsNice1729's user avatar
0 votes
0 answers
11 views

How to keep windows open after the execution of command finishes in byobu?

I want to run a series of commands (outside of byobu) such that each one gets executed and run in a window of byobu; so, I run for example: byobu new-window "ping 8.8.8.8" All good and ...
wiki's user avatar
  • 101
1 vote
2 answers
533 views

Does any terminal multiplexer (screen, tmux, zellij) support job suspension (Ctrl-Z) in Bash?

As far as I've seen, pressing Ctrl-Z on any terminal multiplexer, or trying to start them in the background, does nothing or crashes. I know that, in a sense, terminal multiplexers are a "...
Sebastian Carlos's user avatar
1 vote
0 answers
670 views

tmux 1 session accessed by multiple terminals, each with a different visual state

I use a tiling window manager and someimtes have 6 or 7 shells open at once. Locally, I use tmux purely as a multiplexer because my preferred terminal does not have one (which I like). I would like ...
marc.soda's user avatar
  • 203
0 votes
1 answer
458 views

How do I get a tmux session's base directory?

I have been using tmux for a few months, and there is one thing that always bothered me: when I type cd into my shell, I get moved into my home directory (this is the standard behavior of cd, so ...
leo848's user avatar
  • 101
1 vote
1 answer
897 views

Execute command when creating new screen session

With the screen command, the -X option allows you to execute a command in the specified screen session, but when you try to use it when creating a new screen, e.g: screen -dmS -S downloader -X "...
pigeonburger's user avatar
7 votes
1 answer
4k views

What are the advantages of hardware-accelerated terminal emulators?

What distinguishes kitty from the vast majority of terminal emulators? It offers GPU-acceleration combined with a wide feature set. It’s targeted at power keyboard users. It’s billed as a modern, ...
Sybil's user avatar
  • 1,913
0 votes
1 answer
3k views

How to execute a command in tmux and detach using a single line command?

How can I get tmux to execute a command and then detach (That is, automatically in a single line without further input beyond initially starting the session)? I don't know to write sophisticated ...
deadrat's user avatar
  • 11
0 votes
1 answer
123 views

Are there tools that I can use to obtain a snapshot of terminal or pty state? [duplicate]

Please stop marking this question as a duplicate, it's not a duplicate. Thanks. Consider the sequence of a, followed by \x1b[D ("cursor back"), followed by b. This would produce an output of ...
Steven Lu's user avatar
  • 2,312
0 votes
1 answer
748 views

:How to change `Prefix :` (command prompt) to `Prefix ;` in tmux?

I tried to change from prefix - : to prefix - ; in tmux and it doesn't seem to work. Edit 1: Explanation For a tmux prompt you hit, prefix then : (i.e shift + ;). I want to change it to , prefix then ...
TUSqasi's user avatar
  • 111
0 votes
0 answers
74 views

duplicated history entries at the same timestamp

For some time I had an issue with my history using GNU bash (version 4 and 5) where commands appeared in duplicates. I assumed this was due to the fact that in my .bashrc I had the following line: ...
n0542344's user avatar
  • 406
1 vote
1 answer
1k views

tmux copy is slow on macOS

I am having this issue for about 2 years now (since I started to use tmux in Summer 2018) and I have not found a solution to this problem. Any help is greatly appreciated! The copy functionality of ...
krafts's user avatar
  • 35
0 votes
1 answer
629 views

How to stop terminal from getting mouse click input?

I was just reading this forum where I found a curious terminal control escape sequence: "\033[?1000h". Naturally, I've tried it to see what could happens. In accordance with the inspiring comment, my ...
Daniel Bandeira's user avatar
1 vote
1 answer
4k views

How to create new pane and run command in that pane using TMUX

I have this which is pretty close: tmux new -d -s "$session_uuid" tmux send-keys -t "${session_uuid}.0" "tsc -w" ENTER tmux send-keys -t "${session_uuid}.0" "nodemon" ENTER tmux attach -t "$...
Alexander Mills's user avatar
3 votes
1 answer
529 views

File/foler permissions & plex

I have an Intel NUC running Kubuntu (based on Ubuntu 18.04.3 LTS \n \l) & Plex server, headless. I used various guidance to set this up. The normal user account to the machine is 'exharris', and ...
exharris's user avatar
  • 115
1 vote
2 answers
1k views

How to equalize byobu vertical split screen size

Note: I may be leaning on an XY Problem; feel free to steer me to a more ideal approach. I want to keep an eye on multiple remote log files in a small-yet-legible font, not so much analyzing ...
zedmelon's user avatar
  • 153
-2 votes
1 answer
287 views

On my local machine, what can Screen bring, which a terminal emulator or nohup/disown can't?

GNU Screen is a terminal multiplexer, which provides Persistence: Similar to VNC, many terminal multiplexers allow the user to start applications from one computer, and then reconnect from a ...
Tim's user avatar
  • 103k
0 votes
2 answers
202 views

Is opening new tab equivalent to opening new window?

Is opening new tab in the terminal window is equivalent to opening a new tab in terms of resources? I need to run 16 scripts in parallel. I do not know whether opening tabs or new terminals is the ...
user9371654's user avatar
3 votes
1 answer
2k views

Escape keywords with tmux send

Using tmux to send commands along from one terminal to another, I realize that $ tmux send -t mySession "text" ENTER correctly sends text, but $ tmux send -t mySession "up" ENTER sends text again, ...
iago-lito's user avatar
  • 2,811
1 vote
1 answer
2k views

tmux - List output last line of all windows in new window

I am running a tmux session with 40 windows. I need to create an overview window listing the last line of each screen and updating each listing as the output of the respective window.
Corstiaan's user avatar
  • 113
5 votes
1 answer
879 views

Multiplex different TTYs with a single instance of screen

I use screen to connect to devices via RS232 with a USB-serial dongle. Currently, I use this command to invoke screen (where 115200 is my baud-rate): screen /dev/ttyUSB0 115200 Usually, I have more ...
Woodrow Barlow's user avatar
3 votes
2 answers
262 views

Mark descriptor as terminal for the -t test

One can test if a descriptor is connected to terminal with -t test. if [ ! -t 0 ]; then echo "Stdin is not from terminal" fi Having a descriptor X, pointing to a file or to a process (with >(cmd)...
One Other's user avatar
2 votes
0 answers
433 views

Detach from tmux and rotate to ssh without dropping exec?

I've been using tmux launched by default as part of my shell at all times for some time now and find it very convenient. At the same time ssh'ing from inside tmux to another system is not ideal ...
Caleb's user avatar
  • 70.5k
1 vote
1 answer
1k views

tmux: creating new split window doesn't work

I want a new session with two windows named mutt and offlineimap. the offlineimap window should be split into two using two different offlineimap instances (with different profiles). tmux new-session -...
uuu's user avatar
  • 722
0 votes
1 answer
717 views

Bash file is unable to execute on linux terminal: Socket Programming

I have written some codes for socket programming namely socket and plug. To execute them together I am trying to use the below bash file but I get the following errors. I did execute the command ...
user3337714's user avatar
0 votes
2 answers
2k views

Advantages of using linux terminal multiplexers

What are good reasons to use linux terminal multiplexers such as screen and tmux instead of physical terminal?
Junior's user avatar
  • 343
4 votes
1 answer
1k views

How do you reset my tmux display? Its stuck in a smaller window

for some reason my tmux is stuck in a smaller box. what is the reason for this? And how can I reset my display? Yes i know i can just kill the pane, but i have a bunch of sessions i want to keep. ...
Patoshi パトシ's user avatar
15 votes
3 answers
36k views

ssh from screen leads to unknown terminal error

I'm trying to make an ssh connection (via lsh) from one Ubuntu host to another from within screen. If I try to run mc right after that I get the following error: Unknown terminal: screen-256color-s ...
god's user avatar
  • 461
31 votes
2 answers
28k views

Set the active tmux tab color

Is it possible to change the background of the active (current) tmux tab? I'm using tmux 1.9 on Ubuntu 15.04. $ tmux -V tmux 1.9 I tried to do: set-option -g pane-active-border-fg red But the ...
Ionică Bizău's user avatar
3 votes
0 answers
437 views

Terminal pty name according to the source IP address

Is possible to have some Unix (either just in Linux) 'engine' mounting the pts'es (terminals) names according to their IP (socket) source ? In the past we could map each physical ports to its tty ...
Luciano's user avatar
  • 1,159
2 votes
1 answer
442 views

monitor command outputs in separate windows within a terminal [duplicate]

For a list of input text, I want to execute a repetitive command using each element from the list. In addition I also need to monitor the results of each of these commands in parallel. So I am looking ...
Vivek's user avatar
  • 121
10 votes
3 answers
17k views

How can I resume a screen that I did not manage to detach?

I use the screen Screen visual consoles. To detach a screen I need to press Ctrl+A followed by D but some time a session is closed without detaching it. It appears as (Attached) on screen -list: ...
Eduard Florinescu's user avatar
2 votes
1 answer
2k views

Terminal Emulator with CTRL+Scroll Zoom

Are there any Linux Terminal Emulators that offer "control & scroll zoom" (allowing you to adjust the visible size of fonts by holding down ctrl and scrolling your mouse-wheel)? Recently on ...
Lonnie Best's user avatar
  • 5,175
1 vote
1 answer
821 views

Mosh and terminal multiplexing

Reading this Q&A on the site: Can I re-attach to a mosh session? made me wonder about the use cases for mosh. Say I start tmux on my local client, and then mosh to a remote host from within tmux....
Amelio Vazquez-Reina's user avatar
2 votes
0 answers
1k views

Tmux hangs on first start

I am running Tmux on a OSX (brewed tmux), and everytime I boot my computer, the first time I start tmux, it hangs. Doing a CTRL + T to check it's SIGINFO, gives me "waiting..". To fix this, I need to ...
user avatar
6 votes
1 answer
3k views

screen & xterm: how to select text with the mouse in one only pane when window is divided vertically

Interestingly enough, this has also been a tmux issue for some: http://daemonforums.org/showthread.php?t=7311 But currently I am sticking to screen, and I'd like to know how I can make screen "behave"...
syntaxerror's user avatar
  • 2,306
3 votes
2 answers
237 views

Modular $TERM for different terminal emulators

Is there a way to set different $TERM for different terminal emulators. For example if I am in xterm the $TERM will read xterm-256color, in urxvt urxvt-256color, in sakura xterm-256color and in tmux ...
r004's user avatar
  • 3,469
3 votes
1 answer
3k views

Send text/input to all tabs

I'm using the Gnome terminal and am logged into different servers on each tab. Is there a way to send the same text/command to all the tabs at once?
etho201's user avatar
  • 317
1 vote
1 answer
534 views

Combining local and remote terminal multiplexing

I use tmux regularly to easily handle multiple terminals on my local machine. Sometimes, I need to connect to a remote machine and start a script in one the terminals (i.e. a pane or window in tmux). ...
Amelio Vazquez-Reina's user avatar
26 votes
2 answers
12k 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 ...
ferhtgoldaraz's user avatar
2 votes
1 answer
1k views

Garbled text in tmux menus

I am trying to use the st terminal, but after starting tmux (or screen) in a remote ssh session, the text becomes all garbled. Exiting tmux/screen makes text normal again. Now, I have found that this ...
user avatar
1 vote
2 answers
14k views

Why screen is not splitting my GNOME terminal?

I am working in a remote Linux box using VNC.I have a single terminal with lots of tabs opened in my system. How can I split them using the screen utility? Does the screen utility work with already ...
Geek's user avatar
  • 6,768
3 votes
1 answer
2k views

Tmux status bar question

I'm fairly new to tmux and to truly master and learn it, I decided to make myself a fresh .tmux.conf I was wondering, though, if it's possible to hide a path in the status bar. For example, I have ...
watabou's user avatar
  • 61
27 votes
1 answer
8k views

How to copy from/to the tmux 'clipboard' with shell pipes?

When working in a shell environment I run fairly often into the need to copy 'intermediate pipe output' around (eg. from/to already running editors, to other shells, other machines, etc.). When in a ...
unthought's user avatar
  • 931
3 votes
2 answers
2k views

How to configure vim to interact with interactive command line shells?

From time to time I want to use vim as scratch pad for commands that I would like to send to a command line shell like psql (Postgres), ghci (Haskell programming language), octave ('calculator'), ...
maxschlepzig's user avatar
  • 57.9k
22 votes
5 answers
8k views

Does a terminal multiplexer have any benefit when used with a tiling window manager?

Both terminal multiplexers (screen, tmux) and keyboard-driven tiling window managers (ratpoison, dwm, xmonad) provide similar functionality. Is there any benefit in using both at the same time? What ...
Pubby's user avatar
  • 323
7 votes
1 answer
6k views

What is the difference between a Console, Shell, Terminal, Terminal emulator, Terminal multiplexer, and a Window manager?

For example. What is the difference between a default 'interface/console' of FreeBSD/archlinux, vs Terminal, vs Terminal emulator like Xterm, vs Terminal multiplexer like tmux, vs Window manager like ...
Aby James's user avatar
  • 257
19 votes
2 answers
41k views

How can I switch between ttys without using screen?

So let's say you boot up your Linux install all the way to the desktop. You start up a gnome-terminal/konsole/whatever so you have a tty to enter commands to. Now let's say I SSH into that same ...
user488244's user avatar
5 votes
1 answer
5k views

How to run streamripper and mplayer in a split-screen X terminal, via a single script

I want to run streamripper in its own X Terminal (window), then split the terminal horizontally, and then run mplayer in the lower half. This is simple enough to do manually, but getting a script to ...
Peter.O's user avatar
  • 33.1k
300 votes
7 answers
169k views

How to create a new window on the 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.
sharat87's user avatar
  • 4,299