Terminal multiplexer

Short description: Software application

For hardware used to multiplex several terminals on a single connection, see Engineering:Terminal concentrator.

A terminal multiplexer is a software application that can be used to multiplex several separate pseudoterminal-based login sessions inside a single terminal display, terminal emulator window, PC/workstation system console, or remote login session, or to detach and reattach sessions from a terminal. It is useful for dealing with multiple programs from a command line interface, and for separating programs from the session of the Unix shell that started the program, particularly so a remote process continues running even when the user is disconnected.

## Contents

* 1 Features
* 2 Implementations
* 3 See also
* 4 References

## Features

A terminal multiplexer can be thought of as a text version of graphical window managers, or as a way of attaching virtual terminals to any login session. It is a wrapper that allows multiple text programs to run at the same time, and provides features that allow the user to use the programs within a single interface productively.

Persistence
Similar to Virtual Network Computing, many terminal multiplexers allow the user to start applications from one computer, and then reconnect from a different computer and continue using the same application without having to restart it. This makes accessing the same session between different locations like work and home simple. These multiplexers generally provide terminal-agnostic functionality so that users can disconnect and reconnect using different terminal types, allowing applications to continue running without being aware of the change in terminals.
Concretely, the multiplexer starts a session (with associated processes), and then either does not attach a terminal to it, or attaches a terminal but can subsequently detach it (for example if the network connection is dropped). Since the session does not end, the processes are not sent a "hangup" signal (SIGHUP) and are not terminated, so they continue running, and one can subsequently (re)attach a terminal to the session and continue interacting, or simply leave the session unattached.
Multiple windows
Multiple terminal sessions can be created, each of which usually runs a single application. The windows are numbered, and the user can use the keyboard to switch between them. Some GUI terminal emulators provide tabs or otherwise similar functionality to this. Each window has its own scroll-back buffer, so that output is captured even when the window isn't actively displayed, and that history can be saved even when migrating to another computer. Windows can be split-screened. While some text applications have this functionality built in, a terminal multiplexer allows any application to be split-screened alongside any number of other applications.
Session Sharing
Terminal multiplexers allow multiple computers to connect to the same session at once, enabling collaboration between multiple users. The same computer can also be used to make multiple simultaneous connections, providing alternative functionality to screen-splitting, particularly for computers with multiple monitors.

## Implementations

This section may contain indiscriminate, excessive, or irrelevant examples. Please improve the article by adding more descriptive text and removing less pertinent examples. See Wikipedia's guide to writing better articles for further suggestions. (June 2025)

|

* Byobu: A profile and configuration utility for GNU Screen and tmux.
* dvtm: Tiling window management for the console.[1]
* GNU Screen: the prototypical terminal multiplexer, first released in 1987.
* mtm: billed as "perhaps the smallest useful terminal multiplexer in the world"[2]
* neercs:[3] ("screen" spelled backwards) is a GNU screen workalike. It supports window thumbnailing and graphical animated screensavers. It also supports 3D console switching (switching between consoles mapped to the faces of a cube) via the libcaca ASCII art library.
* splitvt: split terminal utility.[4]
* TD/SMP: introduced by DEC on their VT330/340 terminals, TD/SMP was proprietary and only widely supported by their own terminal servers.
* tmux: A modern GNU Screen workalike, released in 2007; it is BSD-licensed, allows multiple panes (with optional Xterm mouse support), and has a scriptable command interface.[5][6][7] tmux aimed to allow the sharing of a single window between multiple terminals, while keeping the other windows in the same session entirely separate.[8] tmux has been part of the OpenBSD base system since 2009's version 4.6.[9]
* Twin ("Text mode WINdow environment"): a full-fledged window manager for text windows. Initially started as an MS-DOS project, it was later ported to Linux.[10][11][12]
* Zellij: A terminal workspace with batteries included.[13]

## See also

* pkexec

## References

1. ↑ "dvtm || dynamic virtual terminal manager", homepage, http://www.brain-dump.org/projects/dvtm/, retrieved 2011-12-07
2. ↑ "mtm", GitHub, https://github.com/deadpixi/mtm, retrieved 2017-02-20
3. ↑ "neercs". http://caca.zoy.org/wiki/neercs.
4. ↑ "SplitVT", Free Software Directory, http://directory.fsf.org/wiki/SplitVT, retrieved 2011-12-07
5. ↑ Mathias Huber (21 January 2009). "Video: Tmux 0.6 als Alternative zu GNU Screen" (in German). Linux Magazine. http://www.linux-magazin.de/content/view/full/32812.
6. ↑ Uwe Vollbracht (September 2009). "Tooltipps. Tmux 0.9" (in German). Linux Magazine. https://www.linux-magazin.de/ausgaben/2009/09/tooltipps/2/.
7. ↑ "tmux". Archived from the original on 2012-01-09. https://web.archive.org/web/20120109024812/http://tmux.sourceforge.net/. Retrieved 2012-01-12.
8. ↑ de Weerd, Paul (2009-07-12). "Interview with Nicholas Marriott on tmux". OpenBSD Journal. http://undeadly.org/cgi?action=article&sid=20090712190402.
9. ↑ "OpenBSD Upgrade Guide 4.6". The OpenBSD Project. http://www.openbsd.org/faq/upgrade46.html#newtmux. Retrieved 3 Sep 2011. "tmux(1) has moved from being a port to being part of the base system."
10. ↑ Georg C. F. Greve (2003). "Twin". Brave GNU World (47). https://www.gnu.org/brave-gnu-world/issue-47.en.html. Also in Georg C. F. Greve (April 2003). "Brave GNU World". Linux Magazine (29): 91. https://www.linux-magazine.com/w3/issue/29/BraveGNUWorld.pdf.
11. ↑ Andrea Müller (December 2003). "deskTOPia: twin. Frei von XFree" (in German). https://www.linux-user.de/ausgabe/2003/12/052-desktopia/index.html.
12. ↑ "And what about Twin?". http://linuz.sns.it/~max/twin/.
13. ↑ "Zellij" (in en). https://zellij.dev/.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Terminal multiplexer. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Terminal_multiplexer&oldid=4344446"