1*0a6a1f1dSLionel Sambuc.\" Id 2eda6f593SDavid van Moolenbroek.\" 3eda6f593SDavid van Moolenbroek.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> 4eda6f593SDavid van Moolenbroek.\" 5eda6f593SDavid van Moolenbroek.\" Permission to use, copy, modify, and distribute this software for any 6eda6f593SDavid van Moolenbroek.\" purpose with or without fee is hereby granted, provided that the above 7eda6f593SDavid van Moolenbroek.\" copyright notice and this permission notice appear in all copies. 8eda6f593SDavid van Moolenbroek.\" 9eda6f593SDavid van Moolenbroek.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10eda6f593SDavid van Moolenbroek.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11eda6f593SDavid van Moolenbroek.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12eda6f593SDavid van Moolenbroek.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13eda6f593SDavid van Moolenbroek.\" WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER 14eda6f593SDavid van Moolenbroek.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 15eda6f593SDavid van Moolenbroek.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16eda6f593SDavid van Moolenbroek.\" 17*0a6a1f1dSLionel Sambuc.Dd $Mdocdate: March 25 2013 $ 18eda6f593SDavid van Moolenbroek.Dt TMUX 1 19eda6f593SDavid van Moolenbroek.Os 20eda6f593SDavid van Moolenbroek.Sh NAME 21eda6f593SDavid van Moolenbroek.Nm tmux 22eda6f593SDavid van Moolenbroek.Nd terminal multiplexer 23eda6f593SDavid van Moolenbroek.Sh SYNOPSIS 24eda6f593SDavid van Moolenbroek.Nm tmux 25eda6f593SDavid van Moolenbroek.Bk -words 26*0a6a1f1dSLionel Sambuc.Op Fl 2lCquvV 27eda6f593SDavid van Moolenbroek.Op Fl c Ar shell-command 28eda6f593SDavid van Moolenbroek.Op Fl f Ar file 29eda6f593SDavid van Moolenbroek.Op Fl L Ar socket-name 30eda6f593SDavid van Moolenbroek.Op Fl S Ar socket-path 31eda6f593SDavid van Moolenbroek.Op Ar command Op Ar flags 32eda6f593SDavid van Moolenbroek.Ek 33eda6f593SDavid van Moolenbroek.Sh DESCRIPTION 34eda6f593SDavid van Moolenbroek.Nm 35eda6f593SDavid van Moolenbroekis a terminal multiplexer: 36eda6f593SDavid van Moolenbroekit enables a number of terminals to be created, accessed, and 37eda6f593SDavid van Moolenbroekcontrolled from a single screen. 38eda6f593SDavid van Moolenbroek.Nm 39eda6f593SDavid van Moolenbroekmay be detached from a screen 40eda6f593SDavid van Moolenbroekand continue running in the background, 41eda6f593SDavid van Moolenbroekthen later reattached. 42eda6f593SDavid van Moolenbroek.Pp 43eda6f593SDavid van MoolenbroekWhen 44eda6f593SDavid van Moolenbroek.Nm 45eda6f593SDavid van Moolenbroekis started it creates a new 46eda6f593SDavid van Moolenbroek.Em session 47eda6f593SDavid van Moolenbroekwith a single 48eda6f593SDavid van Moolenbroek.Em window 49eda6f593SDavid van Moolenbroekand displays it on screen. 50eda6f593SDavid van MoolenbroekA status line at the bottom of the screen 51eda6f593SDavid van Moolenbroekshows information on the current session 52eda6f593SDavid van Moolenbroekand is used to enter interactive commands. 53eda6f593SDavid van Moolenbroek.Pp 54eda6f593SDavid van MoolenbroekA session is a single collection of 55eda6f593SDavid van Moolenbroek.Em pseudo terminals 56eda6f593SDavid van Moolenbroekunder the management of 57eda6f593SDavid van Moolenbroek.Nm . 58eda6f593SDavid van MoolenbroekEach session has one or more 59eda6f593SDavid van Moolenbroekwindows linked to it. 60eda6f593SDavid van MoolenbroekA window occupies the entire screen 61eda6f593SDavid van Moolenbroekand may be split into rectangular panes, 62eda6f593SDavid van Moolenbroekeach of which is a separate pseudo terminal 63eda6f593SDavid van Moolenbroek(the 64*0a6a1f1dSLionel Sambuc.Xr pty 7 65eda6f593SDavid van Moolenbroekmanual page documents the technical details of pseudo terminals). 66eda6f593SDavid van MoolenbroekAny number of 67eda6f593SDavid van Moolenbroek.Nm 68eda6f593SDavid van Moolenbroekinstances may connect to the same session, 69eda6f593SDavid van Moolenbroekand any number of windows may be present in the same session. 70eda6f593SDavid van MoolenbroekOnce all sessions are killed, 71eda6f593SDavid van Moolenbroek.Nm 72eda6f593SDavid van Moolenbroekexits. 73eda6f593SDavid van Moolenbroek.Pp 74eda6f593SDavid van MoolenbroekEach session is persistent and will survive accidental disconnection 75eda6f593SDavid van Moolenbroek(such as 76eda6f593SDavid van Moolenbroek.Xr ssh 1 77eda6f593SDavid van Moolenbroekconnection timeout) or intentional detaching (with the 78eda6f593SDavid van Moolenbroek.Ql C-b d 79eda6f593SDavid van Moolenbroekkey strokes). 80eda6f593SDavid van Moolenbroek.Nm 81eda6f593SDavid van Moolenbroekmay be reattached using: 82eda6f593SDavid van Moolenbroek.Pp 83eda6f593SDavid van Moolenbroek.Dl $ tmux attach 84eda6f593SDavid van Moolenbroek.Pp 85eda6f593SDavid van MoolenbroekIn 86eda6f593SDavid van Moolenbroek.Nm , 87eda6f593SDavid van Moolenbroeka session is displayed on screen by a 88eda6f593SDavid van Moolenbroek.Em client 89eda6f593SDavid van Moolenbroekand all sessions are managed by a single 90eda6f593SDavid van Moolenbroek.Em server . 91eda6f593SDavid van MoolenbroekThe server and each client are separate processes which communicate through a 92eda6f593SDavid van Moolenbroeksocket in 93eda6f593SDavid van Moolenbroek.Pa /tmp . 94eda6f593SDavid van Moolenbroek.Pp 95eda6f593SDavid van MoolenbroekThe options are as follows: 96eda6f593SDavid van Moolenbroek.Bl -tag -width "XXXXXXXXXXXX" 97eda6f593SDavid van Moolenbroek.It Fl 2 98eda6f593SDavid van MoolenbroekForce 99eda6f593SDavid van Moolenbroek.Nm 100eda6f593SDavid van Moolenbroekto assume the terminal supports 256 colours. 101*0a6a1f1dSLionel Sambuc.It Fl C 102*0a6a1f1dSLionel SambucStart in control mode (see the 103*0a6a1f1dSLionel Sambuc.Sx CONTROL MODE 104*0a6a1f1dSLionel Sambucsection). 105*0a6a1f1dSLionel SambucGiven twice 106*0a6a1f1dSLionel Sambuc.Xo ( Fl CC ) Xc 107*0a6a1f1dSLionel Sambucdisables echo. 108eda6f593SDavid van Moolenbroek.It Fl c Ar shell-command 109eda6f593SDavid van MoolenbroekExecute 110eda6f593SDavid van Moolenbroek.Ar shell-command 111eda6f593SDavid van Moolenbroekusing the default shell. 112eda6f593SDavid van MoolenbroekIf necessary, the 113eda6f593SDavid van Moolenbroek.Nm 114eda6f593SDavid van Moolenbroekserver will be started to retrieve the 115eda6f593SDavid van Moolenbroek.Ic default-shell 116eda6f593SDavid van Moolenbroekoption. 117eda6f593SDavid van MoolenbroekThis option is for compatibility with 118eda6f593SDavid van Moolenbroek.Xr sh 1 119eda6f593SDavid van Moolenbroekwhen 120eda6f593SDavid van Moolenbroek.Nm 121eda6f593SDavid van Moolenbroekis used as a login shell. 122eda6f593SDavid van Moolenbroek.It Fl f Ar file 123eda6f593SDavid van MoolenbroekSpecify an alternative configuration file. 124eda6f593SDavid van MoolenbroekBy default, 125eda6f593SDavid van Moolenbroek.Nm 126eda6f593SDavid van Moolenbroekloads the system configuration file from 127*0a6a1f1dSLionel Sambuc.Pa @SYSCONFDIR@/tmux.conf , 128eda6f593SDavid van Moolenbroekif present, then looks for a user configuration file at 129eda6f593SDavid van Moolenbroek.Pa ~/.tmux.conf . 130*0a6a1f1dSLionel Sambuc.Pp 131eda6f593SDavid van MoolenbroekThe configuration file is a set of 132eda6f593SDavid van Moolenbroek.Nm 133eda6f593SDavid van Moolenbroekcommands which are executed in sequence when the server is first started. 134eda6f593SDavid van Moolenbroek.Nm 135*0a6a1f1dSLionel Sambucloads configuration files once when the server process has started. 136*0a6a1f1dSLionel SambucThe 137*0a6a1f1dSLionel Sambuc.Ic source-file 138*0a6a1f1dSLionel Sambuccommand may be used to load a file later. 139*0a6a1f1dSLionel Sambuc.Pp 140*0a6a1f1dSLionel Sambuc.Nm 141*0a6a1f1dSLionel Sambucshows any error messages from commands in configuration files in the first 142*0a6a1f1dSLionel Sambucsession created, and continues to process the rest of the configuration file. 143eda6f593SDavid van Moolenbroek.It Fl L Ar socket-name 144eda6f593SDavid van Moolenbroek.Nm 145eda6f593SDavid van Moolenbroekstores the server socket in a directory under 146*0a6a1f1dSLionel Sambuc.Ev TMUX_TMPDIR , 147eda6f593SDavid van Moolenbroek.Ev TMPDIR 148*0a6a1f1dSLionel Sambucif it is unset, or 149*0a6a1f1dSLionel Sambuc.Pa /tmp 150*0a6a1f1dSLionel Sambucif both are unset. 151*0a6a1f1dSLionel SambucThe default socket is named 152eda6f593SDavid van Moolenbroek.Em default . 153eda6f593SDavid van MoolenbroekThis option allows a different socket name to be specified, allowing several 154eda6f593SDavid van Moolenbroekindependent 155eda6f593SDavid van Moolenbroek.Nm 156eda6f593SDavid van Moolenbroekservers to be run. 157eda6f593SDavid van MoolenbroekUnlike 158eda6f593SDavid van Moolenbroek.Fl S 159eda6f593SDavid van Moolenbroeka full path is not necessary: the sockets are all created in the same 160eda6f593SDavid van Moolenbroekdirectory. 161eda6f593SDavid van Moolenbroek.Pp 162eda6f593SDavid van MoolenbroekIf the socket is accidentally removed, the 163eda6f593SDavid van Moolenbroek.Dv SIGUSR1 164eda6f593SDavid van Moolenbroeksignal may be sent to the 165eda6f593SDavid van Moolenbroek.Nm 166eda6f593SDavid van Moolenbroekserver process to recreate it. 167eda6f593SDavid van Moolenbroek.It Fl l 168eda6f593SDavid van MoolenbroekBehave as a login shell. 169eda6f593SDavid van MoolenbroekThis flag currently has no effect and is for compatibility with other shells 170eda6f593SDavid van Moolenbroekwhen using tmux as a login shell. 171eda6f593SDavid van Moolenbroek.It Fl q 172eda6f593SDavid van MoolenbroekSet the 173eda6f593SDavid van Moolenbroek.Ic quiet 174eda6f593SDavid van Moolenbroekserver option to prevent the server sending various informational messages. 175eda6f593SDavid van Moolenbroek.It Fl S Ar socket-path 176eda6f593SDavid van MoolenbroekSpecify a full alternative path to the server socket. 177eda6f593SDavid van MoolenbroekIf 178eda6f593SDavid van Moolenbroek.Fl S 179eda6f593SDavid van Moolenbroekis specified, the default socket directory is not used and any 180eda6f593SDavid van Moolenbroek.Fl L 181eda6f593SDavid van Moolenbroekflag is ignored. 182eda6f593SDavid van Moolenbroek.It Fl u 183eda6f593SDavid van Moolenbroek.Nm 184eda6f593SDavid van Moolenbroekattempts to guess if the terminal is likely to support UTF-8 by checking the 185eda6f593SDavid van Moolenbroekfirst of the 186eda6f593SDavid van Moolenbroek.Ev LC_ALL , 187eda6f593SDavid van Moolenbroek.Ev LC_CTYPE 188eda6f593SDavid van Moolenbroekand 189eda6f593SDavid van Moolenbroek.Ev LANG 190eda6f593SDavid van Moolenbroekenvironment variables to be set for the string "UTF-8". 191eda6f593SDavid van MoolenbroekThis is not always correct: the 192eda6f593SDavid van Moolenbroek.Fl u 193eda6f593SDavid van Moolenbroekflag explicitly informs 194eda6f593SDavid van Moolenbroek.Nm 195eda6f593SDavid van Moolenbroekthat UTF-8 is supported. 196eda6f593SDavid van Moolenbroek.Pp 197eda6f593SDavid van MoolenbroekIf the server is started from a client passed 198eda6f593SDavid van Moolenbroek.Fl u 199eda6f593SDavid van Moolenbroekor where UTF-8 is detected, the 200eda6f593SDavid van Moolenbroek.Ic utf8 201eda6f593SDavid van Moolenbroekand 202eda6f593SDavid van Moolenbroek.Ic status-utf8 203eda6f593SDavid van Moolenbroekoptions are enabled in the global window and session options respectively. 204eda6f593SDavid van Moolenbroek.It Fl v 205eda6f593SDavid van MoolenbroekRequest verbose logging. 206eda6f593SDavid van MoolenbroekThis option may be specified multiple times for increasing verbosity. 207eda6f593SDavid van MoolenbroekLog messages will be saved into 208eda6f593SDavid van Moolenbroek.Pa tmux-client-PID.log 209eda6f593SDavid van Moolenbroekand 210eda6f593SDavid van Moolenbroek.Pa tmux-server-PID.log 211eda6f593SDavid van Moolenbroekfiles in the current directory, where 212eda6f593SDavid van Moolenbroek.Em PID 213eda6f593SDavid van Moolenbroekis the PID of the server or client process. 214eda6f593SDavid van Moolenbroek.It Fl V 215eda6f593SDavid van MoolenbroekReport the 216eda6f593SDavid van Moolenbroek.Nm 217eda6f593SDavid van Moolenbroekversion. 218eda6f593SDavid van Moolenbroek.It Ar command Op Ar flags 219eda6f593SDavid van MoolenbroekThis specifies one of a set of commands used to control 220eda6f593SDavid van Moolenbroek.Nm , 221eda6f593SDavid van Moolenbroekas described in the following sections. 222eda6f593SDavid van MoolenbroekIf no commands are specified, the 223eda6f593SDavid van Moolenbroek.Ic new-session 224eda6f593SDavid van Moolenbroekcommand is assumed. 225eda6f593SDavid van Moolenbroek.El 226eda6f593SDavid van Moolenbroek.Sh KEY BINDINGS 227eda6f593SDavid van Moolenbroek.Nm 228eda6f593SDavid van Moolenbroekmay be controlled from an attached client by using a key combination of a 229eda6f593SDavid van Moolenbroekprefix key, 230eda6f593SDavid van Moolenbroek.Ql C-b 231eda6f593SDavid van Moolenbroek(Ctrl-b) by default, followed by a command key. 232eda6f593SDavid van Moolenbroek.Pp 233eda6f593SDavid van MoolenbroekThe default command key bindings are: 234eda6f593SDavid van Moolenbroek.Pp 235eda6f593SDavid van Moolenbroek.Bl -tag -width "XXXXXXXXXX" -offset indent -compact 236eda6f593SDavid van Moolenbroek.It C-b 237eda6f593SDavid van MoolenbroekSend the prefix key (C-b) through to the application. 238eda6f593SDavid van Moolenbroek.It C-o 239eda6f593SDavid van MoolenbroekRotate the panes in the current window forwards. 240eda6f593SDavid van Moolenbroek.It C-z 241eda6f593SDavid van MoolenbroekSuspend the 242eda6f593SDavid van Moolenbroek.Nm 243eda6f593SDavid van Moolenbroekclient. 244eda6f593SDavid van Moolenbroek.It ! 245eda6f593SDavid van MoolenbroekBreak the current pane out of the window. 246eda6f593SDavid van Moolenbroek.It \&" 247eda6f593SDavid van MoolenbroekSplit the current pane into two, top and bottom. 248eda6f593SDavid van Moolenbroek.It # 249eda6f593SDavid van MoolenbroekList all paste buffers. 250eda6f593SDavid van Moolenbroek.It $ 251eda6f593SDavid van MoolenbroekRename the current session. 252eda6f593SDavid van Moolenbroek.It % 253eda6f593SDavid van MoolenbroekSplit the current pane into two, left and right. 254eda6f593SDavid van Moolenbroek.It & 255eda6f593SDavid van MoolenbroekKill the current window. 256eda6f593SDavid van Moolenbroek.It ' 257eda6f593SDavid van MoolenbroekPrompt for a window index to select. 258eda6f593SDavid van Moolenbroek.It , 259eda6f593SDavid van MoolenbroekRename the current window. 260eda6f593SDavid van Moolenbroek.It - 261eda6f593SDavid van MoolenbroekDelete the most recently copied buffer of text. 262eda6f593SDavid van Moolenbroek.It . 263eda6f593SDavid van MoolenbroekPrompt for an index to move the current window. 264eda6f593SDavid van Moolenbroek.It 0 to 9 265eda6f593SDavid van MoolenbroekSelect windows 0 to 9. 266eda6f593SDavid van Moolenbroek.It : 267eda6f593SDavid van MoolenbroekEnter the 268eda6f593SDavid van Moolenbroek.Nm 269eda6f593SDavid van Moolenbroekcommand prompt. 270eda6f593SDavid van Moolenbroek.It ; 271eda6f593SDavid van MoolenbroekMove to the previously active pane. 272eda6f593SDavid van Moolenbroek.It = 273eda6f593SDavid van MoolenbroekChoose which buffer to paste interactively from a list. 274eda6f593SDavid van Moolenbroek.It \&? 275eda6f593SDavid van MoolenbroekList all key bindings. 276eda6f593SDavid van Moolenbroek.It D 277eda6f593SDavid van MoolenbroekChoose a client to detach. 278eda6f593SDavid van Moolenbroek.It \&[ 279eda6f593SDavid van MoolenbroekEnter copy mode to copy text or view the history. 280eda6f593SDavid van Moolenbroek.It \&] 281eda6f593SDavid van MoolenbroekPaste the most recently copied buffer of text. 282eda6f593SDavid van Moolenbroek.It c 283eda6f593SDavid van MoolenbroekCreate a new window. 284eda6f593SDavid van Moolenbroek.It d 285eda6f593SDavid van MoolenbroekDetach the current client. 286eda6f593SDavid van Moolenbroek.It f 287eda6f593SDavid van MoolenbroekPrompt to search for text in open windows. 288eda6f593SDavid van Moolenbroek.It i 289eda6f593SDavid van MoolenbroekDisplay some information about the current window. 290eda6f593SDavid van Moolenbroek.It l 291eda6f593SDavid van MoolenbroekMove to the previously selected window. 292eda6f593SDavid van Moolenbroek.It n 293eda6f593SDavid van MoolenbroekChange to the next window. 294eda6f593SDavid van Moolenbroek.It o 295eda6f593SDavid van MoolenbroekSelect the next pane in the current window. 296eda6f593SDavid van Moolenbroek.It p 297eda6f593SDavid van MoolenbroekChange to the previous window. 298eda6f593SDavid van Moolenbroek.It q 299eda6f593SDavid van MoolenbroekBriefly display pane indexes. 300eda6f593SDavid van Moolenbroek.It r 301eda6f593SDavid van MoolenbroekForce redraw of the attached client. 302eda6f593SDavid van Moolenbroek.It s 303eda6f593SDavid van MoolenbroekSelect a new session for the attached client interactively. 304eda6f593SDavid van Moolenbroek.It L 305eda6f593SDavid van MoolenbroekSwitch the attached client back to the last session. 306eda6f593SDavid van Moolenbroek.It t 307eda6f593SDavid van MoolenbroekShow the time. 308eda6f593SDavid van Moolenbroek.It w 309eda6f593SDavid van MoolenbroekChoose the current window interactively. 310eda6f593SDavid van Moolenbroek.It x 311eda6f593SDavid van MoolenbroekKill the current pane. 312eda6f593SDavid van Moolenbroek.It { 313eda6f593SDavid van MoolenbroekSwap the current pane with the previous pane. 314eda6f593SDavid van Moolenbroek.It } 315eda6f593SDavid van MoolenbroekSwap the current pane with the next pane. 316eda6f593SDavid van Moolenbroek.It ~ 317eda6f593SDavid van MoolenbroekShow previous messages from 318eda6f593SDavid van Moolenbroek.Nm , 319eda6f593SDavid van Moolenbroekif any. 320eda6f593SDavid van Moolenbroek.It Page Up 321eda6f593SDavid van MoolenbroekEnter copy mode and scroll one page up. 322eda6f593SDavid van Moolenbroek.It Up, Down 323eda6f593SDavid van Moolenbroek.It Left, Right 324eda6f593SDavid van MoolenbroekChange to the pane above, below, to the left, or to the right of the current 325eda6f593SDavid van Moolenbroekpane. 326eda6f593SDavid van Moolenbroek.It M-1 to M-5 327eda6f593SDavid van MoolenbroekArrange panes in one of the five preset layouts: even-horizontal, 328eda6f593SDavid van Moolenbroekeven-vertical, main-horizontal, main-vertical, or tiled. 329eda6f593SDavid van Moolenbroek.It M-n 330eda6f593SDavid van MoolenbroekMove to the next window with a bell or activity marker. 331eda6f593SDavid van Moolenbroek.It M-o 332eda6f593SDavid van MoolenbroekRotate the panes in the current window backwards. 333eda6f593SDavid van Moolenbroek.It M-p 334eda6f593SDavid van MoolenbroekMove to the previous window with a bell or activity marker. 335eda6f593SDavid van Moolenbroek.It C-Up, C-Down 336eda6f593SDavid van Moolenbroek.It C-Left, C-Right 337eda6f593SDavid van MoolenbroekResize the current pane in steps of one cell. 338eda6f593SDavid van Moolenbroek.It M-Up, M-Down 339eda6f593SDavid van Moolenbroek.It M-Left, M-Right 340eda6f593SDavid van MoolenbroekResize the current pane in steps of five cells. 341eda6f593SDavid van Moolenbroek.El 342eda6f593SDavid van Moolenbroek.Pp 343eda6f593SDavid van MoolenbroekKey bindings may be changed with the 344eda6f593SDavid van Moolenbroek.Ic bind-key 345eda6f593SDavid van Moolenbroekand 346eda6f593SDavid van Moolenbroek.Ic unbind-key 347eda6f593SDavid van Moolenbroekcommands. 348eda6f593SDavid van Moolenbroek.Sh COMMANDS 349eda6f593SDavid van MoolenbroekThis section contains a list of the commands supported by 350eda6f593SDavid van Moolenbroek.Nm . 351eda6f593SDavid van MoolenbroekMost commands accept the optional 352eda6f593SDavid van Moolenbroek.Fl t 353eda6f593SDavid van Moolenbroekargument with one of 354eda6f593SDavid van Moolenbroek.Ar target-client , 355eda6f593SDavid van Moolenbroek.Ar target-session 356eda6f593SDavid van Moolenbroek.Ar target-window , 357eda6f593SDavid van Moolenbroekor 358eda6f593SDavid van Moolenbroek.Ar target-pane . 359eda6f593SDavid van MoolenbroekThese specify the client, session, window or pane which a command should affect. 360eda6f593SDavid van Moolenbroek.Ar target-client 361eda6f593SDavid van Moolenbroekis the name of the 362*0a6a1f1dSLionel Sambuc.Xr pty 7 363eda6f593SDavid van Moolenbroekfile to which the client is connected, for example either of 364eda6f593SDavid van Moolenbroek.Pa /dev/ttyp1 365eda6f593SDavid van Moolenbroekor 366eda6f593SDavid van Moolenbroek.Pa ttyp1 367eda6f593SDavid van Moolenbroekfor the client attached to 368eda6f593SDavid van Moolenbroek.Pa /dev/ttyp1 . 369eda6f593SDavid van MoolenbroekIf no client is specified, the current client is chosen, if possible, or an 370eda6f593SDavid van Moolenbroekerror is reported. 371eda6f593SDavid van MoolenbroekClients may be listed with the 372eda6f593SDavid van Moolenbroek.Ic list-clients 373eda6f593SDavid van Moolenbroekcommand. 374eda6f593SDavid van Moolenbroek.Pp 375eda6f593SDavid van Moolenbroek.Ar target-session 376*0a6a1f1dSLionel Sambucis the session id prefixed with a $, the name of a session (as listed by the 377eda6f593SDavid van Moolenbroek.Ic list-sessions 378*0a6a1f1dSLionel Sambuccommand), or the name of a client with the same syntax as 379eda6f593SDavid van Moolenbroek.Ar target-client , 380eda6f593SDavid van Moolenbroekin which case the session attached to the client is used. 381eda6f593SDavid van MoolenbroekWhen looking for the session name, 382eda6f593SDavid van Moolenbroek.Nm 383eda6f593SDavid van Moolenbroekinitially searches for an exact match; if none is found, the session names 384eda6f593SDavid van Moolenbroekare checked for any for which 385eda6f593SDavid van Moolenbroek.Ar target-session 386eda6f593SDavid van Moolenbroekis a prefix or for which it matches as an 387eda6f593SDavid van Moolenbroek.Xr fnmatch 3 388eda6f593SDavid van Moolenbroekpattern. 389eda6f593SDavid van MoolenbroekIf a single match is found, it is used as the target session; multiple matches 390eda6f593SDavid van Moolenbroekproduce an error. 391eda6f593SDavid van MoolenbroekIf a session is omitted, the current session is used if available; if no 392eda6f593SDavid van Moolenbroekcurrent session is available, the most recently used is chosen. 393eda6f593SDavid van Moolenbroek.Pp 394eda6f593SDavid van Moolenbroek.Ar target-window 395eda6f593SDavid van Moolenbroekspecifies a window in the form 396eda6f593SDavid van Moolenbroek.Em session Ns \&: Ns Em window . 397eda6f593SDavid van Moolenbroek.Em session 398eda6f593SDavid van Moolenbroekfollows the same rules as for 399eda6f593SDavid van Moolenbroek.Ar target-session , 400eda6f593SDavid van Moolenbroekand 401eda6f593SDavid van Moolenbroek.Em window 402*0a6a1f1dSLionel Sambucis looked for in order: as a window index, for example mysession:1; 403*0a6a1f1dSLionel Sambucas a window ID, such as @1; 404*0a6a1f1dSLionel Sambucas an exact window name, such as mysession:mywindow; then as an 405eda6f593SDavid van Moolenbroek.Xr fnmatch 3 406eda6f593SDavid van Moolenbroekpattern or the start of a window name, such as mysession:mywin* or 407eda6f593SDavid van Moolenbroekmysession:mywin. 408eda6f593SDavid van MoolenbroekAn empty window name specifies the next unused index if appropriate (for 409eda6f593SDavid van Moolenbroekexample the 410eda6f593SDavid van Moolenbroek.Ic new-window 411eda6f593SDavid van Moolenbroekand 412eda6f593SDavid van Moolenbroek.Ic link-window 413eda6f593SDavid van Moolenbroekcommands) 414eda6f593SDavid van Moolenbroekotherwise the current window in 415eda6f593SDavid van Moolenbroek.Em session 416eda6f593SDavid van Moolenbroekis chosen. 417eda6f593SDavid van MoolenbroekThe special character 418eda6f593SDavid van Moolenbroek.Ql \&! 419*0a6a1f1dSLionel Sambucuses the last (previously current) window, 420*0a6a1f1dSLionel Sambuc.Ql ^ 421*0a6a1f1dSLionel Sambucselects the highest numbered window, 422*0a6a1f1dSLionel Sambuc.Ql $ 423*0a6a1f1dSLionel Sambucselects the lowest numbered window, and 424eda6f593SDavid van Moolenbroek.Ql + 425eda6f593SDavid van Moolenbroekand 426eda6f593SDavid van Moolenbroek.Ql - 427*0a6a1f1dSLionel Sambucselect the next window or the previous window by number. 428eda6f593SDavid van MoolenbroekWhen the argument does not contain a colon, 429eda6f593SDavid van Moolenbroek.Nm 430eda6f593SDavid van Moolenbroekfirst attempts to parse it as window; if that fails, an attempt is made to 431eda6f593SDavid van Moolenbroekmatch a session. 432eda6f593SDavid van Moolenbroek.Pp 433eda6f593SDavid van Moolenbroek.Ar target-pane 434eda6f593SDavid van Moolenbroektakes a similar form to 435eda6f593SDavid van Moolenbroek.Ar target-window 436eda6f593SDavid van Moolenbroekbut with the optional addition of a period followed by a pane index, for 437eda6f593SDavid van Moolenbroekexample: mysession:mywindow.1. 438eda6f593SDavid van MoolenbroekIf the pane index is omitted, the currently active pane in the specified 439eda6f593SDavid van Moolenbroekwindow is used. 440eda6f593SDavid van MoolenbroekIf neither a colon nor period appears, 441eda6f593SDavid van Moolenbroek.Nm 442eda6f593SDavid van Moolenbroekfirst attempts to use the argument as a pane index; if that fails, it is looked 443eda6f593SDavid van Moolenbroekup as for 444eda6f593SDavid van Moolenbroek.Ar target-window . 445eda6f593SDavid van MoolenbroekA 446eda6f593SDavid van Moolenbroek.Ql + 447eda6f593SDavid van Moolenbroekor 448eda6f593SDavid van Moolenbroek.Ql - 449eda6f593SDavid van Moolenbroekindicate the next or previous pane index, respectively. 450eda6f593SDavid van MoolenbroekOne of the strings 451eda6f593SDavid van Moolenbroek.Em top , 452eda6f593SDavid van Moolenbroek.Em bottom , 453eda6f593SDavid van Moolenbroek.Em left , 454eda6f593SDavid van Moolenbroek.Em right , 455eda6f593SDavid van Moolenbroek.Em top-left , 456eda6f593SDavid van Moolenbroek.Em top-right , 457eda6f593SDavid van Moolenbroek.Em bottom-left 458eda6f593SDavid van Moolenbroekor 459eda6f593SDavid van Moolenbroek.Em bottom-right 460eda6f593SDavid van Moolenbroekmay be used instead of a pane index. 461eda6f593SDavid van Moolenbroek.Pp 462eda6f593SDavid van MoolenbroekThe special characters 463eda6f593SDavid van Moolenbroek.Ql + 464eda6f593SDavid van Moolenbroekand 465eda6f593SDavid van Moolenbroek.Ql - 466eda6f593SDavid van Moolenbroekmay be followed by an offset, for example: 467eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 468eda6f593SDavid van Moolenbroekselect-window -t:+2 469eda6f593SDavid van Moolenbroek.Ed 470eda6f593SDavid van Moolenbroek.Pp 471eda6f593SDavid van MoolenbroekWhen dealing with a session that doesn't contain sequential window indexes, 472eda6f593SDavid van Moolenbroekthey will be correctly skipped. 473eda6f593SDavid van Moolenbroek.Pp 474eda6f593SDavid van Moolenbroek.Nm 475eda6f593SDavid van Moolenbroekalso gives each pane created in a server an identifier consisting of a 476eda6f593SDavid van Moolenbroek.Ql % 477eda6f593SDavid van Moolenbroekand a number, starting from zero. 478eda6f593SDavid van MoolenbroekA pane's identifier is unique for the life of the 479eda6f593SDavid van Moolenbroek.Nm 480eda6f593SDavid van Moolenbroekserver and is passed to the child process of the pane in the 481eda6f593SDavid van Moolenbroek.Ev TMUX_PANE 482eda6f593SDavid van Moolenbroekenvironment variable. 483eda6f593SDavid van MoolenbroekIt may be used alone to target a pane or the window containing it. 484eda6f593SDavid van Moolenbroek.Pp 485eda6f593SDavid van Moolenbroek.Ar shell-command 486eda6f593SDavid van Moolenbroekarguments are 487eda6f593SDavid van Moolenbroek.Xr sh 1 488eda6f593SDavid van Moolenbroekcommands. 489eda6f593SDavid van MoolenbroekThese must be passed as a single item, which typically means quoting them, for 490eda6f593SDavid van Moolenbroekexample: 491eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 492eda6f593SDavid van Moolenbroeknew-window 'vi /etc/passwd' 493eda6f593SDavid van Moolenbroek.Ed 494eda6f593SDavid van Moolenbroek.Pp 495eda6f593SDavid van Moolenbroek.Ar command 496eda6f593SDavid van Moolenbroek.Op Ar arguments 497eda6f593SDavid van Moolenbroekrefers to a 498eda6f593SDavid van Moolenbroek.Nm 499eda6f593SDavid van Moolenbroekcommand, passed with the command and arguments separately, for example: 500eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 501eda6f593SDavid van Moolenbroekbind-key F1 set-window-option force-width 81 502eda6f593SDavid van Moolenbroek.Ed 503eda6f593SDavid van Moolenbroek.Pp 504eda6f593SDavid van MoolenbroekOr if using 505eda6f593SDavid van Moolenbroek.Xr sh 1 : 506eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 507eda6f593SDavid van Moolenbroek$ tmux bind-key F1 set-window-option force-width 81 508eda6f593SDavid van Moolenbroek.Ed 509eda6f593SDavid van Moolenbroek.Pp 510eda6f593SDavid van MoolenbroekMultiple commands may be specified together as part of a 511eda6f593SDavid van Moolenbroek.Em command sequence . 512eda6f593SDavid van MoolenbroekEach command should be separated by spaces and a semicolon; 513*0a6a1f1dSLionel Sambuccommands are executed sequentially from left to right and 514*0a6a1f1dSLionel Sambuclines ending with a backslash continue on to the next line, 515*0a6a1f1dSLionel Sambucexcept when escaped by another backslash. 516eda6f593SDavid van MoolenbroekA literal semicolon may be included by escaping it with a backslash (for 517eda6f593SDavid van Moolenbroekexample, when specifying a command sequence to 518eda6f593SDavid van Moolenbroek.Ic bind-key ) . 519eda6f593SDavid van Moolenbroek.Pp 520eda6f593SDavid van MoolenbroekExample 521eda6f593SDavid van Moolenbroek.Nm 522eda6f593SDavid van Moolenbroekcommands include: 523eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 524eda6f593SDavid van Moolenbroekrefresh-client -t/dev/ttyp2 525eda6f593SDavid van Moolenbroek 526eda6f593SDavid van Moolenbroekrename-session -tfirst newname 527eda6f593SDavid van Moolenbroek 528eda6f593SDavid van Moolenbroekset-window-option -t:0 monitor-activity on 529eda6f593SDavid van Moolenbroek 530eda6f593SDavid van Moolenbroeknew-window ; split-window -d 531*0a6a1f1dSLionel Sambuc 532*0a6a1f1dSLionel Sambucbind-key R source-file ~/.tmux.conf \e; \e 533*0a6a1f1dSLionel Sambuc display-message "source-file done" 534eda6f593SDavid van Moolenbroek.Ed 535eda6f593SDavid van Moolenbroek.Pp 536eda6f593SDavid van MoolenbroekOr from 537eda6f593SDavid van Moolenbroek.Xr sh 1 : 538eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 539eda6f593SDavid van Moolenbroek$ tmux kill-window -t :1 540eda6f593SDavid van Moolenbroek 541eda6f593SDavid van Moolenbroek$ tmux new-window \e; split-window -d 542eda6f593SDavid van Moolenbroek 543eda6f593SDavid van Moolenbroek$ tmux new-session -d 'vi /etc/passwd' \e; split-window -d \e; attach 544eda6f593SDavid van Moolenbroek.Ed 545eda6f593SDavid van Moolenbroek.Sh CLIENTS AND SESSIONS 546eda6f593SDavid van MoolenbroekThe 547eda6f593SDavid van Moolenbroek.Nm 548eda6f593SDavid van Moolenbroekserver manages clients, sessions, windows and panes. 549eda6f593SDavid van MoolenbroekClients are attached to sessions to interact with them, either 550eda6f593SDavid van Moolenbroekwhen they are created with the 551eda6f593SDavid van Moolenbroek.Ic new-session 552eda6f593SDavid van Moolenbroekcommand, or later with the 553eda6f593SDavid van Moolenbroek.Ic attach-session 554eda6f593SDavid van Moolenbroekcommand. 555eda6f593SDavid van MoolenbroekEach session has one or more windows 556eda6f593SDavid van Moolenbroek.Em linked 557eda6f593SDavid van Moolenbroekinto it. 558eda6f593SDavid van MoolenbroekWindows may be linked to multiple sessions and are made up of one or 559eda6f593SDavid van Moolenbroekmore panes, 560eda6f593SDavid van Moolenbroekeach of which contains a pseudo terminal. 561eda6f593SDavid van MoolenbroekCommands for creating, linking and otherwise manipulating windows 562eda6f593SDavid van Moolenbroekare covered 563eda6f593SDavid van Moolenbroekin the 564eda6f593SDavid van Moolenbroek.Sx WINDOWS AND PANES 565eda6f593SDavid van Moolenbroeksection. 566eda6f593SDavid van Moolenbroek.Pp 567eda6f593SDavid van MoolenbroekThe following commands are available to manage clients and sessions: 568eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 569eda6f593SDavid van Moolenbroek.It Xo Ic attach-session 570eda6f593SDavid van Moolenbroek.Op Fl dr 571*0a6a1f1dSLionel Sambuc.Op Fl c Ar working-directory 572eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session 573eda6f593SDavid van Moolenbroek.Xc 574eda6f593SDavid van Moolenbroek.D1 (alias: Ic attach ) 575eda6f593SDavid van MoolenbroekIf run from outside 576eda6f593SDavid van Moolenbroek.Nm , 577eda6f593SDavid van Moolenbroekcreate a new client in the current terminal and attach it to 578eda6f593SDavid van Moolenbroek.Ar target-session . 579eda6f593SDavid van MoolenbroekIf used from inside, switch the current client. 580eda6f593SDavid van MoolenbroekIf 581eda6f593SDavid van Moolenbroek.Fl d 582eda6f593SDavid van Moolenbroekis specified, any other clients attached to the session are detached. 583eda6f593SDavid van Moolenbroek.Fl r 584eda6f593SDavid van Moolenbroeksignifies the client is read-only (only keys bound to the 585eda6f593SDavid van Moolenbroek.Ic detach-client 586*0a6a1f1dSLionel Sambucor 587*0a6a1f1dSLionel Sambuc.Ic switch-client 588*0a6a1f1dSLionel Sambuccommands have any effect) 589eda6f593SDavid van Moolenbroek.Pp 590eda6f593SDavid van MoolenbroekIf no server is started, 591eda6f593SDavid van Moolenbroek.Ic attach-session 592eda6f593SDavid van Moolenbroekwill attempt to start it; this will fail unless sessions are created in the 593eda6f593SDavid van Moolenbroekconfiguration file. 594eda6f593SDavid van Moolenbroek.Pp 595eda6f593SDavid van MoolenbroekThe 596eda6f593SDavid van Moolenbroek.Ar target-session 597eda6f593SDavid van Moolenbroekrules for 598eda6f593SDavid van Moolenbroek.Ic attach-session 599eda6f593SDavid van Moolenbroekare slightly adjusted: if 600eda6f593SDavid van Moolenbroek.Nm 601eda6f593SDavid van Moolenbroekneeds to select the most recently used session, it will prefer the most 602eda6f593SDavid van Moolenbroekrecently used 603eda6f593SDavid van Moolenbroek.Em unattached 604eda6f593SDavid van Moolenbroeksession. 605*0a6a1f1dSLionel Sambuc.Pp 606*0a6a1f1dSLionel Sambuc.Fl c 607*0a6a1f1dSLionel Sambucwill set the session working directory (used for new windows) to 608*0a6a1f1dSLionel Sambuc.Ar working-directory . 609eda6f593SDavid van Moolenbroek.It Xo Ic detach-client 610eda6f593SDavid van Moolenbroek.Op Fl P 611*0a6a1f1dSLionel Sambuc.Op Fl a 612eda6f593SDavid van Moolenbroek.Op Fl s Ar target-session 613eda6f593SDavid van Moolenbroek.Op Fl t Ar target-client 614eda6f593SDavid van Moolenbroek.Xc 615eda6f593SDavid van Moolenbroek.D1 (alias: Ic detach ) 616eda6f593SDavid van MoolenbroekDetach the current client if bound to a key, the client specified with 617eda6f593SDavid van Moolenbroek.Fl t , 618*0a6a1f1dSLionel Sambucor all clients currently attached to the session specified by 619eda6f593SDavid van Moolenbroek.Fl s . 620*0a6a1f1dSLionel SambucThe 621*0a6a1f1dSLionel Sambuc.Fl a 622*0a6a1f1dSLionel Sambucoption kills all but the client given with 623*0a6a1f1dSLionel Sambuc.Fl t . 624eda6f593SDavid van MoolenbroekIf 625eda6f593SDavid van Moolenbroek.Fl P 626eda6f593SDavid van Moolenbroekis given, send SIGHUP to the parent process of the client, typically causing it 627eda6f593SDavid van Moolenbroekto exit. 628eda6f593SDavid van Moolenbroek.It Ic has-session Op Fl t Ar target-session 629eda6f593SDavid van Moolenbroek.D1 (alias: Ic has ) 630eda6f593SDavid van MoolenbroekReport an error and exit with 1 if the specified session does not exist. 631eda6f593SDavid van MoolenbroekIf it does exist, exit with 0. 632eda6f593SDavid van Moolenbroek.It Ic kill-server 633eda6f593SDavid van MoolenbroekKill the 634eda6f593SDavid van Moolenbroek.Nm 635eda6f593SDavid van Moolenbroekserver and clients and destroy all sessions. 636*0a6a1f1dSLionel Sambuc.It Xo Ic kill-session 637*0a6a1f1dSLionel Sambuc.Op Fl a 638*0a6a1f1dSLionel Sambuc.Op Fl t Ar target-session 639*0a6a1f1dSLionel Sambuc.Xc 640eda6f593SDavid van MoolenbroekDestroy the given session, closing any windows linked to it and no other 641eda6f593SDavid van Moolenbroeksessions, and detaching all clients attached to it. 642*0a6a1f1dSLionel SambucIf 643*0a6a1f1dSLionel Sambuc.Fl a 644*0a6a1f1dSLionel Sambucis given, all sessions but the specified one is killed. 645*0a6a1f1dSLionel Sambuc.It Xo Ic list-clients 646*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 647*0a6a1f1dSLionel Sambuc.Op Fl t Ar target-session 648*0a6a1f1dSLionel Sambuc.Xc 649eda6f593SDavid van Moolenbroek.D1 (alias: Ic lsc ) 650eda6f593SDavid van MoolenbroekList all clients attached to the server. 651*0a6a1f1dSLionel SambucFor the meaning of the 652*0a6a1f1dSLionel Sambuc.Fl F 653*0a6a1f1dSLionel Sambucflag, see the 654*0a6a1f1dSLionel Sambuc.Sx FORMATS 655*0a6a1f1dSLionel Sambucsection. 656eda6f593SDavid van MoolenbroekIf 657eda6f593SDavid van Moolenbroek.Ar target-session 658eda6f593SDavid van Moolenbroekis specified, list only clients connected to that session. 659eda6f593SDavid van Moolenbroek.It Ic list-commands 660eda6f593SDavid van Moolenbroek.D1 (alias: Ic lscm ) 661eda6f593SDavid van MoolenbroekList the syntax of all commands supported by 662eda6f593SDavid van Moolenbroek.Nm . 663*0a6a1f1dSLionel Sambuc.It Ic list-sessions Op Fl F Ar format 664eda6f593SDavid van Moolenbroek.D1 (alias: Ic ls ) 665eda6f593SDavid van MoolenbroekList all sessions managed by the server. 666*0a6a1f1dSLionel SambucFor the meaning of the 667*0a6a1f1dSLionel Sambuc.Fl F 668*0a6a1f1dSLionel Sambucflag, see the 669*0a6a1f1dSLionel Sambuc.Sx FORMATS 670*0a6a1f1dSLionel Sambucsection. 671eda6f593SDavid van Moolenbroek.It Ic lock-client Op Fl t Ar target-client 672eda6f593SDavid van Moolenbroek.D1 (alias: Ic lockc ) 673eda6f593SDavid van MoolenbroekLock 674eda6f593SDavid van Moolenbroek.Ar target-client , 675eda6f593SDavid van Moolenbroeksee the 676eda6f593SDavid van Moolenbroek.Ic lock-server 677eda6f593SDavid van Moolenbroekcommand. 678eda6f593SDavid van Moolenbroek.It Ic lock-session Op Fl t Ar target-session 679eda6f593SDavid van Moolenbroek.D1 (alias: Ic locks ) 680eda6f593SDavid van MoolenbroekLock all clients attached to 681eda6f593SDavid van Moolenbroek.Ar target-session . 682eda6f593SDavid van Moolenbroek.It Xo Ic new-session 683*0a6a1f1dSLionel Sambuc.Op Fl AdDP 684*0a6a1f1dSLionel Sambuc.Op Fl c Ar start-directory 685*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 686eda6f593SDavid van Moolenbroek.Op Fl n Ar window-name 687eda6f593SDavid van Moolenbroek.Op Fl s Ar session-name 688eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session 689eda6f593SDavid van Moolenbroek.Op Fl x Ar width 690eda6f593SDavid van Moolenbroek.Op Fl y Ar height 691eda6f593SDavid van Moolenbroek.Op Ar shell-command 692eda6f593SDavid van Moolenbroek.Xc 693eda6f593SDavid van Moolenbroek.D1 (alias: Ic new ) 694eda6f593SDavid van MoolenbroekCreate a new session with name 695eda6f593SDavid van Moolenbroek.Ar session-name . 696eda6f593SDavid van Moolenbroek.Pp 697eda6f593SDavid van MoolenbroekThe new session is attached to the current terminal unless 698eda6f593SDavid van Moolenbroek.Fl d 699eda6f593SDavid van Moolenbroekis given. 700eda6f593SDavid van Moolenbroek.Ar window-name 701eda6f593SDavid van Moolenbroekand 702eda6f593SDavid van Moolenbroek.Ar shell-command 703eda6f593SDavid van Moolenbroekare the name of and shell command to execute in the initial window. 704eda6f593SDavid van MoolenbroekIf 705eda6f593SDavid van Moolenbroek.Fl d 706eda6f593SDavid van Moolenbroekis used, 707eda6f593SDavid van Moolenbroek.Fl x 708eda6f593SDavid van Moolenbroekand 709eda6f593SDavid van Moolenbroek.Fl y 710eda6f593SDavid van Moolenbroekspecify the size of the initial window (80 by 24 if not given). 711eda6f593SDavid van Moolenbroek.Pp 712eda6f593SDavid van MoolenbroekIf run from a terminal, any 713*0a6a1f1dSLionel Sambuc.Xr termios 3 714eda6f593SDavid van Moolenbroekspecial characters are saved and used for new windows in the new session. 715eda6f593SDavid van Moolenbroek.Pp 716*0a6a1f1dSLionel SambucThe 717*0a6a1f1dSLionel Sambuc.Fl A 718*0a6a1f1dSLionel Sambucflag makes 719*0a6a1f1dSLionel Sambuc.Ic new-session 720*0a6a1f1dSLionel Sambucbehave like 721*0a6a1f1dSLionel Sambuc.Ic attach-session 722*0a6a1f1dSLionel Sambucif 723*0a6a1f1dSLionel Sambuc.Ar session-name 724*0a6a1f1dSLionel Sambucalready exists; in the case, 725*0a6a1f1dSLionel Sambuc.Fl D 726*0a6a1f1dSLionel Sambucbehaves like 727*0a6a1f1dSLionel Sambuc.Fl d 728*0a6a1f1dSLionel Sambucto 729*0a6a1f1dSLionel Sambuc.Ic attach-session . 730*0a6a1f1dSLionel Sambuc.Pp 731eda6f593SDavid van MoolenbroekIf 732eda6f593SDavid van Moolenbroek.Fl t 733eda6f593SDavid van Moolenbroekis given, the new session is 734eda6f593SDavid van Moolenbroek.Em grouped 735eda6f593SDavid van Moolenbroekwith 736eda6f593SDavid van Moolenbroek.Ar target-session . 737eda6f593SDavid van MoolenbroekThis means they share the same set of windows - all windows from 738eda6f593SDavid van Moolenbroek.Ar target-session 739eda6f593SDavid van Moolenbroekare linked to the new session and any subsequent new windows or windows being 740eda6f593SDavid van Moolenbroekclosed are applied to both sessions. 741eda6f593SDavid van MoolenbroekThe current and previous window and any session options remain independent and 742eda6f593SDavid van Moolenbroekeither session may be killed without affecting the other. 743eda6f593SDavid van MoolenbroekGiving 744eda6f593SDavid van Moolenbroek.Fl n 745eda6f593SDavid van Moolenbroekor 746eda6f593SDavid van Moolenbroek.Ar shell-command 747eda6f593SDavid van Moolenbroekare invalid if 748eda6f593SDavid van Moolenbroek.Fl t 749eda6f593SDavid van Moolenbroekis used. 750*0a6a1f1dSLionel Sambuc.Pp 751*0a6a1f1dSLionel SambucThe 752*0a6a1f1dSLionel Sambuc.Fl P 753*0a6a1f1dSLionel Sambucoption prints information about the new session after it has been created. 754*0a6a1f1dSLionel SambucBy default, it uses the format 755*0a6a1f1dSLionel Sambuc.Ql #{session_name}: 756*0a6a1f1dSLionel Sambucbut a different format may be specified with 757*0a6a1f1dSLionel Sambuc.Fl F . 758*0a6a1f1dSLionel Sambuc.It Xo Ic refresh-client 759*0a6a1f1dSLionel Sambuc.Op Fl S 760*0a6a1f1dSLionel Sambuc.Op Fl t Ar target-client 761*0a6a1f1dSLionel Sambuc.Xc 762eda6f593SDavid van Moolenbroek.D1 (alias: Ic refresh ) 763eda6f593SDavid van MoolenbroekRefresh the current client if bound to a key, or a single client if one is given 764eda6f593SDavid van Moolenbroekwith 765eda6f593SDavid van Moolenbroek.Fl t . 766*0a6a1f1dSLionel SambucIf 767*0a6a1f1dSLionel Sambuc.Fl S 768*0a6a1f1dSLionel Sambucis specified, only update the client's status bar. 769eda6f593SDavid van Moolenbroek.It Xo Ic rename-session 770eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session 771eda6f593SDavid van Moolenbroek.Ar new-name 772eda6f593SDavid van Moolenbroek.Xc 773eda6f593SDavid van Moolenbroek.D1 (alias: Ic rename ) 774eda6f593SDavid van MoolenbroekRename the session to 775eda6f593SDavid van Moolenbroek.Ar new-name . 776eda6f593SDavid van Moolenbroek.It Xo Ic show-messages 777*0a6a1f1dSLionel Sambuc.Op Fl IJT 778eda6f593SDavid van Moolenbroek.Op Fl t Ar target-client 779eda6f593SDavid van Moolenbroek.Xc 780eda6f593SDavid van Moolenbroek.D1 (alias: Ic showmsgs ) 781*0a6a1f1dSLionel SambucShow client messages or server information. 782eda6f593SDavid van MoolenbroekAny messages displayed on the status line are saved in a per-client message 783eda6f593SDavid van Moolenbroeklog, up to a maximum of the limit set by the 784eda6f593SDavid van Moolenbroek.Ar message-limit 785eda6f593SDavid van Moolenbroeksession option for the session attached to that client. 786*0a6a1f1dSLionel SambucWith 787*0a6a1f1dSLionel Sambuc.Fl t , 788*0a6a1f1dSLionel Sambucdisplay the log for 789eda6f593SDavid van Moolenbroek.Ar target-client . 790*0a6a1f1dSLionel Sambuc.Fl I , 791*0a6a1f1dSLionel Sambuc.Fl J 792*0a6a1f1dSLionel Sambucand 793*0a6a1f1dSLionel Sambuc.Fl T 794*0a6a1f1dSLionel Sambucshow debugging information about the running server, jobs and terminals. 795eda6f593SDavid van Moolenbroek.It Ic source-file Ar path 796eda6f593SDavid van Moolenbroek.D1 (alias: Ic source ) 797eda6f593SDavid van MoolenbroekExecute commands from 798eda6f593SDavid van Moolenbroek.Ar path . 799eda6f593SDavid van Moolenbroek.It Ic start-server 800eda6f593SDavid van Moolenbroek.D1 (alias: Ic start ) 801eda6f593SDavid van MoolenbroekStart the 802eda6f593SDavid van Moolenbroek.Nm 803eda6f593SDavid van Moolenbroekserver, if not already running, without creating any sessions. 804eda6f593SDavid van Moolenbroek.It Xo Ic suspend-client 805eda6f593SDavid van Moolenbroek.Op Fl t Ar target-client 806eda6f593SDavid van Moolenbroek.Xc 807eda6f593SDavid van Moolenbroek.D1 (alias: Ic suspendc ) 808eda6f593SDavid van MoolenbroekSuspend a client by sending 809eda6f593SDavid van Moolenbroek.Dv SIGTSTP 810eda6f593SDavid van Moolenbroek(tty stop). 811eda6f593SDavid van Moolenbroek.It Xo Ic switch-client 812*0a6a1f1dSLionel Sambuc.Op Fl lnpr 813eda6f593SDavid van Moolenbroek.Op Fl c Ar target-client 814eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session 815eda6f593SDavid van Moolenbroek.Xc 816eda6f593SDavid van Moolenbroek.D1 (alias: Ic switchc ) 817eda6f593SDavid van MoolenbroekSwitch the current session for client 818eda6f593SDavid van Moolenbroek.Ar target-client 819eda6f593SDavid van Moolenbroekto 820eda6f593SDavid van Moolenbroek.Ar target-session . 821eda6f593SDavid van MoolenbroekIf 822eda6f593SDavid van Moolenbroek.Fl l , 823eda6f593SDavid van Moolenbroek.Fl n 824eda6f593SDavid van Moolenbroekor 825eda6f593SDavid van Moolenbroek.Fl p 826eda6f593SDavid van Moolenbroekis used, the client is moved to the last, next or previous session 827eda6f593SDavid van Moolenbroekrespectively. 828*0a6a1f1dSLionel Sambuc.Fl r 829*0a6a1f1dSLionel Sambuctoggles whether a client is read-only (see the 830*0a6a1f1dSLionel Sambuc.Ic attach-session 831*0a6a1f1dSLionel Sambuccommand). 832eda6f593SDavid van Moolenbroek.El 833eda6f593SDavid van Moolenbroek.Sh WINDOWS AND PANES 834eda6f593SDavid van MoolenbroekA 835eda6f593SDavid van Moolenbroek.Nm 836eda6f593SDavid van Moolenbroekwindow may be in one of several modes. 837eda6f593SDavid van MoolenbroekThe default permits direct access to the terminal attached to the window. 838eda6f593SDavid van MoolenbroekThe other is copy mode, which permits a section of a window or its 839eda6f593SDavid van Moolenbroekhistory to be copied to a 840eda6f593SDavid van Moolenbroek.Em paste buffer 841eda6f593SDavid van Moolenbroekfor later insertion into another window. 842eda6f593SDavid van MoolenbroekThis mode is entered with the 843eda6f593SDavid van Moolenbroek.Ic copy-mode 844eda6f593SDavid van Moolenbroekcommand, bound to 845eda6f593SDavid van Moolenbroek.Ql \&[ 846eda6f593SDavid van Moolenbroekby default. 847eda6f593SDavid van MoolenbroekIt is also entered when a command that produces output, such as 848eda6f593SDavid van Moolenbroek.Ic list-keys , 849eda6f593SDavid van Moolenbroekis executed from a key binding. 850eda6f593SDavid van Moolenbroek.Pp 851eda6f593SDavid van MoolenbroekThe keys available depend on whether emacs or vi mode is selected 852eda6f593SDavid van Moolenbroek(see the 853eda6f593SDavid van Moolenbroek.Ic mode-keys 854eda6f593SDavid van Moolenbroekoption). 855eda6f593SDavid van MoolenbroekThe following keys are supported as appropriate for the mode: 856eda6f593SDavid van Moolenbroek.Bl -column "FunctionXXXXXXXXXXXXXXXXX" "viXXXXXXXXXX" "emacs" -offset indent 857eda6f593SDavid van Moolenbroek.It Sy "Function" Ta Sy "vi" Ta Sy "emacs" 858eda6f593SDavid van Moolenbroek.It Li "Back to indentation" Ta "^" Ta "M-m" 859eda6f593SDavid van Moolenbroek.It Li "Bottom of history" Ta "G" Ta "M-<" 860eda6f593SDavid van Moolenbroek.It Li "Clear selection" Ta "Escape" Ta "C-g" 861eda6f593SDavid van Moolenbroek.It Li "Copy selection" Ta "Enter" Ta "M-w" 862eda6f593SDavid van Moolenbroek.It Li "Cursor down" Ta "j" Ta "Down" 863eda6f593SDavid van Moolenbroek.It Li "Cursor left" Ta "h" Ta "Left" 864eda6f593SDavid van Moolenbroek.It Li "Cursor right" Ta "l" Ta "Right" 865eda6f593SDavid van Moolenbroek.It Li "Cursor to bottom line" Ta "L" Ta "" 866eda6f593SDavid van Moolenbroek.It Li "Cursor to middle line" Ta "M" Ta "M-r" 867eda6f593SDavid van Moolenbroek.It Li "Cursor to top line" Ta "H" Ta "M-R" 868eda6f593SDavid van Moolenbroek.It Li "Cursor up" Ta "k" Ta "Up" 869eda6f593SDavid van Moolenbroek.It Li "Delete entire line" Ta "d" Ta "C-u" 870eda6f593SDavid van Moolenbroek.It Li "Delete/Copy to end of line" Ta "D" Ta "C-k" 871eda6f593SDavid van Moolenbroek.It Li "End of line" Ta "$" Ta "C-e" 872eda6f593SDavid van Moolenbroek.It Li "Go to line" Ta ":" Ta "g" 873eda6f593SDavid van Moolenbroek.It Li "Half page down" Ta "C-d" Ta "M-Down" 874eda6f593SDavid van Moolenbroek.It Li "Half page up" Ta "C-u" Ta "M-Up" 875eda6f593SDavid van Moolenbroek.It Li "Jump forward" Ta "f" Ta "f" 876*0a6a1f1dSLionel Sambuc.It Li "Jump to forward" Ta "t" Ta "" 877eda6f593SDavid van Moolenbroek.It Li "Jump backward" Ta "F" Ta "F" 878*0a6a1f1dSLionel Sambuc.It Li "Jump to backward" Ta "T" Ta "" 879eda6f593SDavid van Moolenbroek.It Li "Jump again" Ta ";" Ta ";" 880eda6f593SDavid van Moolenbroek.It Li "Jump again in reverse" Ta "," Ta "," 881eda6f593SDavid van Moolenbroek.It Li "Next page" Ta "C-f" Ta "Page down" 882eda6f593SDavid van Moolenbroek.It Li "Next space" Ta "W" Ta "" 883eda6f593SDavid van Moolenbroek.It Li "Next space, end of word" Ta "E" Ta "" 884eda6f593SDavid van Moolenbroek.It Li "Next word" Ta "w" Ta "" 885eda6f593SDavid van Moolenbroek.It Li "Next word end" Ta "e" Ta "M-f" 886*0a6a1f1dSLionel Sambuc.It Li "Other end of selection" Ta "o" Ta "" 887eda6f593SDavid van Moolenbroek.It Li "Paste buffer" Ta "p" Ta "C-y" 888eda6f593SDavid van Moolenbroek.It Li "Previous page" Ta "C-b" Ta "Page up" 889eda6f593SDavid van Moolenbroek.It Li "Previous word" Ta "b" Ta "M-b" 890eda6f593SDavid van Moolenbroek.It Li "Previous space" Ta "B" Ta "" 891eda6f593SDavid van Moolenbroek.It Li "Quit mode" Ta "q" Ta "Escape" 892eda6f593SDavid van Moolenbroek.It Li "Rectangle toggle" Ta "v" Ta "R" 893eda6f593SDavid van Moolenbroek.It Li "Scroll down" Ta "C-Down or C-e" Ta "C-Down" 894eda6f593SDavid van Moolenbroek.It Li "Scroll up" Ta "C-Up or C-y" Ta "C-Up" 895eda6f593SDavid van Moolenbroek.It Li "Search again" Ta "n" Ta "n" 896eda6f593SDavid van Moolenbroek.It Li "Search again in reverse" Ta "N" Ta "N" 897eda6f593SDavid van Moolenbroek.It Li "Search backward" Ta "?" Ta "C-r" 898eda6f593SDavid van Moolenbroek.It Li "Search forward" Ta "/" Ta "C-s" 899eda6f593SDavid van Moolenbroek.It Li "Start of line" Ta "0" Ta "C-a" 900eda6f593SDavid van Moolenbroek.It Li "Start selection" Ta "Space" Ta "C-Space" 901eda6f593SDavid van Moolenbroek.It Li "Top of history" Ta "g" Ta "M->" 902*0a6a1f1dSLionel Sambuc.It Li "Transpose characters" Ta "" Ta "C-t" 903eda6f593SDavid van Moolenbroek.El 904eda6f593SDavid van Moolenbroek.Pp 905eda6f593SDavid van MoolenbroekThe next and previous word keys use space and the 906eda6f593SDavid van Moolenbroek.Ql - , 907eda6f593SDavid van Moolenbroek.Ql _ 908eda6f593SDavid van Moolenbroekand 909eda6f593SDavid van Moolenbroek.Ql @ 910eda6f593SDavid van Moolenbroekcharacters as word delimiters by default, but this can be adjusted by 911eda6f593SDavid van Moolenbroeksetting the 912eda6f593SDavid van Moolenbroek.Em word-separators 913*0a6a1f1dSLionel Sambucsession option. 914eda6f593SDavid van MoolenbroekNext word moves to the start of the next word, next word end to the end of the 915eda6f593SDavid van Moolenbroeknext word and previous word to the start of the previous word. 916eda6f593SDavid van MoolenbroekThe three next and previous space keys work similarly but use a space alone as 917eda6f593SDavid van Moolenbroekthe word separator. 918eda6f593SDavid van Moolenbroek.Pp 919eda6f593SDavid van MoolenbroekThe jump commands enable quick movement within a line. 920eda6f593SDavid van MoolenbroekFor instance, typing 921eda6f593SDavid van Moolenbroek.Ql f 922eda6f593SDavid van Moolenbroekfollowed by 923eda6f593SDavid van Moolenbroek.Ql / 924eda6f593SDavid van Moolenbroekwill move the cursor to the next 925eda6f593SDavid van Moolenbroek.Ql / 926eda6f593SDavid van Moolenbroekcharacter on the current line. 927eda6f593SDavid van MoolenbroekA 928eda6f593SDavid van Moolenbroek.Ql \&; 929eda6f593SDavid van Moolenbroekwill then jump to the next occurrence. 930eda6f593SDavid van Moolenbroek.Pp 931eda6f593SDavid van MoolenbroekCommands in copy mode may be prefaced by an optional repeat count. 932eda6f593SDavid van MoolenbroekWith vi key bindings, a prefix is entered using the number keys; with 933eda6f593SDavid van Moolenbroekemacs, the Alt (meta) key and a number begins prefix entry. 934eda6f593SDavid van MoolenbroekFor example, to move the cursor forward by ten words, use 935eda6f593SDavid van Moolenbroek.Ql M-1 0 M-f 936eda6f593SDavid van Moolenbroekin emacs mode, and 937eda6f593SDavid van Moolenbroek.Ql 10w 938eda6f593SDavid van Moolenbroekin vi. 939eda6f593SDavid van Moolenbroek.Pp 940*0a6a1f1dSLionel SambucWhen copying the selection, the repeat count indicates the buffer index to 941*0a6a1f1dSLionel Sambucreplace, if used. 942*0a6a1f1dSLionel Sambuc.Pp 943eda6f593SDavid van MoolenbroekMode key bindings are defined in a set of named tables: 944eda6f593SDavid van Moolenbroek.Em vi-edit 945eda6f593SDavid van Moolenbroekand 946eda6f593SDavid van Moolenbroek.Em emacs-edit 947eda6f593SDavid van Moolenbroekfor keys used when line editing at the command prompt; 948eda6f593SDavid van Moolenbroek.Em vi-choice 949eda6f593SDavid van Moolenbroekand 950eda6f593SDavid van Moolenbroek.Em emacs-choice 951eda6f593SDavid van Moolenbroekfor keys used when choosing from lists (such as produced by the 952eda6f593SDavid van Moolenbroek.Ic choose-window 953eda6f593SDavid van Moolenbroekcommand); and 954eda6f593SDavid van Moolenbroek.Em vi-copy 955eda6f593SDavid van Moolenbroekand 956eda6f593SDavid van Moolenbroek.Em emacs-copy 957eda6f593SDavid van Moolenbroekused in copy mode. 958eda6f593SDavid van MoolenbroekThe tables may be viewed with the 959eda6f593SDavid van Moolenbroek.Ic list-keys 960eda6f593SDavid van Moolenbroekcommand and keys modified or removed with 961eda6f593SDavid van Moolenbroek.Ic bind-key 962eda6f593SDavid van Moolenbroekand 963eda6f593SDavid van Moolenbroek.Ic unbind-key . 964*0a6a1f1dSLionel SambucOne command accepts an argument, 965*0a6a1f1dSLionel Sambuc.Ic copy-pipe , 966*0a6a1f1dSLionel Sambucwhich copies the selection and pipes it to a command. 967*0a6a1f1dSLionel SambucFor example the following will bind 968*0a6a1f1dSLionel Sambuc.Ql C-q 969*0a6a1f1dSLionel Sambucto copy the selection into 970*0a6a1f1dSLionel Sambuc.Pa /tmp 971*0a6a1f1dSLionel Sambucas well as the paste buffer: 972*0a6a1f1dSLionel Sambuc.Bd -literal -offset indent 973*0a6a1f1dSLionel Sambucbind-key -temacs-copy C-q copy-pipe "cat >/tmp/out" 974*0a6a1f1dSLionel Sambuc.Ed 975eda6f593SDavid van Moolenbroek.Pp 976eda6f593SDavid van MoolenbroekThe paste buffer key pastes the first line from the top paste buffer on the 977eda6f593SDavid van Moolenbroekstack. 978eda6f593SDavid van Moolenbroek.Pp 979eda6f593SDavid van MoolenbroekThe synopsis for the 980eda6f593SDavid van Moolenbroek.Ic copy-mode 981eda6f593SDavid van Moolenbroekcommand is: 982eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 983eda6f593SDavid van Moolenbroek.It Xo Ic copy-mode 984eda6f593SDavid van Moolenbroek.Op Fl u 985eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 986eda6f593SDavid van Moolenbroek.Xc 987eda6f593SDavid van MoolenbroekEnter copy mode. 988eda6f593SDavid van MoolenbroekThe 989eda6f593SDavid van Moolenbroek.Fl u 990eda6f593SDavid van Moolenbroekoption scrolls one page up. 991eda6f593SDavid van Moolenbroek.El 992eda6f593SDavid van Moolenbroek.Pp 993eda6f593SDavid van MoolenbroekEach window displayed by 994eda6f593SDavid van Moolenbroek.Nm 995eda6f593SDavid van Moolenbroekmay be split into one or more 996eda6f593SDavid van Moolenbroek.Em panes ; 997eda6f593SDavid van Moolenbroekeach pane takes up a certain area of the display and is a separate terminal. 998eda6f593SDavid van MoolenbroekA window may be split into panes using the 999eda6f593SDavid van Moolenbroek.Ic split-window 1000eda6f593SDavid van Moolenbroekcommand. 1001eda6f593SDavid van MoolenbroekWindows may be split horizontally (with the 1002eda6f593SDavid van Moolenbroek.Fl h 1003eda6f593SDavid van Moolenbroekflag) or vertically. 1004eda6f593SDavid van MoolenbroekPanes may be resized with the 1005eda6f593SDavid van Moolenbroek.Ic resize-pane 1006eda6f593SDavid van Moolenbroekcommand (bound to 1007eda6f593SDavid van Moolenbroek.Ql C-up , 1008eda6f593SDavid van Moolenbroek.Ql C-down 1009eda6f593SDavid van Moolenbroek.Ql C-left 1010eda6f593SDavid van Moolenbroekand 1011eda6f593SDavid van Moolenbroek.Ql C-right 1012eda6f593SDavid van Moolenbroekby default), the current pane may be changed with the 1013eda6f593SDavid van Moolenbroek.Ic select-pane 1014eda6f593SDavid van Moolenbroekcommand and the 1015eda6f593SDavid van Moolenbroek.Ic rotate-window 1016eda6f593SDavid van Moolenbroekand 1017eda6f593SDavid van Moolenbroek.Ic swap-pane 1018eda6f593SDavid van Moolenbroekcommands may be used to swap panes without changing their position. 1019eda6f593SDavid van MoolenbroekPanes are numbered beginning from zero in the order they are created. 1020eda6f593SDavid van Moolenbroek.Pp 1021eda6f593SDavid van MoolenbroekA number of preset 1022eda6f593SDavid van Moolenbroek.Em layouts 1023eda6f593SDavid van Moolenbroekare available. 1024eda6f593SDavid van MoolenbroekThese may be selected with the 1025eda6f593SDavid van Moolenbroek.Ic select-layout 1026eda6f593SDavid van Moolenbroekcommand or cycled with 1027eda6f593SDavid van Moolenbroek.Ic next-layout 1028eda6f593SDavid van Moolenbroek(bound to 1029eda6f593SDavid van Moolenbroek.Ql Space 1030eda6f593SDavid van Moolenbroekby default); once a layout is chosen, panes within it may be moved and resized 1031eda6f593SDavid van Moolenbroekas normal. 1032eda6f593SDavid van Moolenbroek.Pp 1033eda6f593SDavid van MoolenbroekThe following layouts are supported: 1034eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 1035eda6f593SDavid van Moolenbroek.It Ic even-horizontal 1036eda6f593SDavid van MoolenbroekPanes are spread out evenly from left to right across the window. 1037eda6f593SDavid van Moolenbroek.It Ic even-vertical 1038eda6f593SDavid van MoolenbroekPanes are spread evenly from top to bottom. 1039eda6f593SDavid van Moolenbroek.It Ic main-horizontal 1040eda6f593SDavid van MoolenbroekA large (main) pane is shown at the top of the window and the remaining panes 1041eda6f593SDavid van Moolenbroekare spread from left to right in the leftover space at the bottom. 1042eda6f593SDavid van MoolenbroekUse the 1043eda6f593SDavid van Moolenbroek.Em main-pane-height 1044eda6f593SDavid van Moolenbroekwindow option to specify the height of the top pane. 1045eda6f593SDavid van Moolenbroek.It Ic main-vertical 1046eda6f593SDavid van MoolenbroekSimilar to 1047eda6f593SDavid van Moolenbroek.Ic main-horizontal 1048eda6f593SDavid van Moolenbroekbut the large pane is placed on the left and the others spread from top to 1049eda6f593SDavid van Moolenbroekbottom along the right. 1050eda6f593SDavid van MoolenbroekSee the 1051eda6f593SDavid van Moolenbroek.Em main-pane-width 1052eda6f593SDavid van Moolenbroekwindow option. 1053eda6f593SDavid van Moolenbroek.It Ic tiled 1054eda6f593SDavid van MoolenbroekPanes are spread out as evenly as possible over the window in both rows and 1055eda6f593SDavid van Moolenbroekcolumns. 1056eda6f593SDavid van Moolenbroek.El 1057eda6f593SDavid van Moolenbroek.Pp 1058eda6f593SDavid van MoolenbroekIn addition, 1059eda6f593SDavid van Moolenbroek.Ic select-layout 1060eda6f593SDavid van Moolenbroekmay be used to apply a previously used layout - the 1061eda6f593SDavid van Moolenbroek.Ic list-windows 1062eda6f593SDavid van Moolenbroekcommand displays the layout of each window in a form suitable for use with 1063eda6f593SDavid van Moolenbroek.Ic select-layout . 1064eda6f593SDavid van MoolenbroekFor example: 1065eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 1066eda6f593SDavid van Moolenbroek$ tmux list-windows 1067eda6f593SDavid van Moolenbroek0: ksh [159x48] 1068eda6f593SDavid van Moolenbroek layout: bb62,159x48,0,0{79x48,0,0,79x48,80,0} 1069eda6f593SDavid van Moolenbroek$ tmux select-layout bb62,159x48,0,0{79x48,0,0,79x48,80,0} 1070eda6f593SDavid van Moolenbroek.Ed 1071eda6f593SDavid van Moolenbroek.Pp 1072eda6f593SDavid van Moolenbroek.Nm 1073eda6f593SDavid van Moolenbroekautomatically adjusts the size of the layout for the current window size. 1074eda6f593SDavid van MoolenbroekNote that a layout cannot be applied to a window with more panes than that 1075eda6f593SDavid van Moolenbroekfrom which the layout was originally defined. 1076eda6f593SDavid van Moolenbroek.Pp 1077eda6f593SDavid van MoolenbroekCommands related to windows and panes are as follows: 1078eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 1079eda6f593SDavid van Moolenbroek.It Xo Ic break-pane 1080*0a6a1f1dSLionel Sambuc.Op Fl dP 1081*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 1082eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 1083eda6f593SDavid van Moolenbroek.Xc 1084eda6f593SDavid van Moolenbroek.D1 (alias: Ic breakp ) 1085eda6f593SDavid van MoolenbroekBreak 1086eda6f593SDavid van Moolenbroek.Ar target-pane 1087eda6f593SDavid van Moolenbroekoff from its containing window to make it the only pane in a new window. 1088eda6f593SDavid van MoolenbroekIf 1089eda6f593SDavid van Moolenbroek.Fl d 1090eda6f593SDavid van Moolenbroekis given, the new window does not become the current window. 1091*0a6a1f1dSLionel SambucThe 1092*0a6a1f1dSLionel Sambuc.Fl P 1093*0a6a1f1dSLionel Sambucoption prints information about the new window after it has been created. 1094*0a6a1f1dSLionel SambucBy default, it uses the format 1095*0a6a1f1dSLionel Sambuc.Ql #{session_name}:#{window_index} 1096*0a6a1f1dSLionel Sambucbut a different format may be specified with 1097*0a6a1f1dSLionel Sambuc.Fl F . 1098eda6f593SDavid van Moolenbroek.It Xo Ic capture-pane 1099*0a6a1f1dSLionel Sambuc.Op Fl aepPq 1100eda6f593SDavid van Moolenbroek.Op Fl b Ar buffer-index 1101eda6f593SDavid van Moolenbroek.Op Fl E Ar end-line 1102eda6f593SDavid van Moolenbroek.Op Fl S Ar start-line 1103eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 1104eda6f593SDavid van Moolenbroek.Xc 1105eda6f593SDavid van Moolenbroek.D1 (alias: Ic capturep ) 1106*0a6a1f1dSLionel SambucCapture the contents of a pane. 1107*0a6a1f1dSLionel SambucIf 1108*0a6a1f1dSLionel Sambuc.Fl p 1109*0a6a1f1dSLionel Sambucis given, the output goes to stdout, otherwise to the buffer specified with 1110*0a6a1f1dSLionel Sambuc.Fl b 1111*0a6a1f1dSLionel Sambucor a new buffer if omitted. 1112*0a6a1f1dSLionel SambucIf 1113*0a6a1f1dSLionel Sambuc.Fl a 1114*0a6a1f1dSLionel Sambucis given, the alternate screen is used, and the history is not accessible. 1115*0a6a1f1dSLionel SambucIf no alternate screen exists, an error will be returned unless 1116*0a6a1f1dSLionel Sambuc.Fl q 1117*0a6a1f1dSLionel Sambucis given. 1118*0a6a1f1dSLionel SambucIf 1119*0a6a1f1dSLionel Sambuc.Fl e 1120*0a6a1f1dSLionel Sambucis given, the output includes escape sequences for text and background 1121*0a6a1f1dSLionel Sambucattributes. 1122*0a6a1f1dSLionel Sambuc.Fl C 1123*0a6a1f1dSLionel Sambucalso escapes non-printable characters as octal \exxx. 1124*0a6a1f1dSLionel Sambuc.Fl J 1125*0a6a1f1dSLionel Sambucjoins wrapped lines and preserves trailing spaces at each line's end. 1126*0a6a1f1dSLionel Sambuc.Fl P 1127*0a6a1f1dSLionel Sambuccaptures only any output that the pane has received that is the beginning of an 1128*0a6a1f1dSLionel Sambucas-yet incomplete escape sequence. 1129eda6f593SDavid van Moolenbroek.Pp 1130eda6f593SDavid van Moolenbroek.Fl S 1131eda6f593SDavid van Moolenbroekand 1132eda6f593SDavid van Moolenbroek.Fl E 1133eda6f593SDavid van Moolenbroekspecify the starting and ending line numbers, zero is the first line of the 1134eda6f593SDavid van Moolenbroekvisible pane and negative numbers are lines in the history. 1135eda6f593SDavid van MoolenbroekThe default is to capture only the visible contents of the pane. 1136eda6f593SDavid van Moolenbroek.It Xo 1137eda6f593SDavid van Moolenbroek.Ic choose-client 1138*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 1139eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1140eda6f593SDavid van Moolenbroek.Op Ar template 1141eda6f593SDavid van Moolenbroek.Xc 1142eda6f593SDavid van MoolenbroekPut a window into client choice mode, allowing a client to be selected 1143eda6f593SDavid van Moolenbroekinteractively from a list. 1144eda6f593SDavid van MoolenbroekAfter a client is chosen, 1145eda6f593SDavid van Moolenbroek.Ql %% 1146eda6f593SDavid van Moolenbroekis replaced by the client 1147*0a6a1f1dSLionel Sambuc.Xr pty 7 1148eda6f593SDavid van Moolenbroekpath in 1149eda6f593SDavid van Moolenbroek.Ar template 1150eda6f593SDavid van Moolenbroekand the result executed as a command. 1151eda6f593SDavid van MoolenbroekIf 1152eda6f593SDavid van Moolenbroek.Ar template 1153eda6f593SDavid van Moolenbroekis not given, "detach-client -t '%%'" is used. 1154*0a6a1f1dSLionel SambucFor the meaning of the 1155*0a6a1f1dSLionel Sambuc.Fl F 1156*0a6a1f1dSLionel Sambucflag, see the 1157*0a6a1f1dSLionel Sambuc.Sx FORMATS 1158*0a6a1f1dSLionel Sambucsection. 1159*0a6a1f1dSLionel SambucThis command works only if at least one client is attached. 1160*0a6a1f1dSLionel Sambuc.It Xo 1161*0a6a1f1dSLionel Sambuc.Ic choose-list 1162*0a6a1f1dSLionel Sambuc.Op Fl l Ar items 1163*0a6a1f1dSLionel Sambuc.Op Fl t Ar target-window 1164*0a6a1f1dSLionel Sambuc.Op Ar template 1165*0a6a1f1dSLionel Sambuc.Xc 1166*0a6a1f1dSLionel SambucPut a window into list choice mode, allowing 1167*0a6a1f1dSLionel Sambuc.Ar items 1168*0a6a1f1dSLionel Sambucto be selected. 1169*0a6a1f1dSLionel Sambuc.Ar items 1170*0a6a1f1dSLionel Sambuccan be a comma-separated list to display more than one item. 1171*0a6a1f1dSLionel SambucIf an item has spaces, that entry must be quoted. 1172*0a6a1f1dSLionel SambucAfter an item is chosen, 1173*0a6a1f1dSLionel Sambuc.Ql %% 1174*0a6a1f1dSLionel Sambucis replaced by the chosen item in the 1175*0a6a1f1dSLionel Sambuc.Ar template 1176*0a6a1f1dSLionel Sambucand the result is executed as a command. 1177*0a6a1f1dSLionel SambucIf 1178*0a6a1f1dSLionel Sambuc.Ar template 1179*0a6a1f1dSLionel Sambucis not given, "run-shell '%%'" is used. 1180*0a6a1f1dSLionel Sambuc.Ar items 1181*0a6a1f1dSLionel Sambucalso accepts format specifiers. 1182*0a6a1f1dSLionel SambucFor the meaning of this see the 1183*0a6a1f1dSLionel Sambuc.Sx FORMATS 1184*0a6a1f1dSLionel Sambucsection. 1185*0a6a1f1dSLionel SambucThis command works only if at least one client is attached. 1186eda6f593SDavid van Moolenbroek.It Xo 1187eda6f593SDavid van Moolenbroek.Ic choose-session 1188*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 1189eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1190eda6f593SDavid van Moolenbroek.Op Ar template 1191eda6f593SDavid van Moolenbroek.Xc 1192eda6f593SDavid van MoolenbroekPut a window into session choice mode, where a session may be selected 1193eda6f593SDavid van Moolenbroekinteractively from a list. 1194eda6f593SDavid van MoolenbroekWhen one is chosen, 1195eda6f593SDavid van Moolenbroek.Ql %% 1196eda6f593SDavid van Moolenbroekis replaced by the session name in 1197eda6f593SDavid van Moolenbroek.Ar template 1198eda6f593SDavid van Moolenbroekand the result executed as a command. 1199eda6f593SDavid van MoolenbroekIf 1200eda6f593SDavid van Moolenbroek.Ar template 1201eda6f593SDavid van Moolenbroekis not given, "switch-client -t '%%'" is used. 1202*0a6a1f1dSLionel SambucFor the meaning of the 1203*0a6a1f1dSLionel Sambuc.Fl F 1204*0a6a1f1dSLionel Sambucflag, see the 1205*0a6a1f1dSLionel Sambuc.Sx FORMATS 1206*0a6a1f1dSLionel Sambucsection. 1207*0a6a1f1dSLionel SambucThis command works only if at least one client is attached. 1208*0a6a1f1dSLionel Sambuc.It Xo 1209*0a6a1f1dSLionel Sambuc.Ic choose-tree 1210*0a6a1f1dSLionel Sambuc.Op Fl suw 1211*0a6a1f1dSLionel Sambuc.Op Fl b Ar session-template 1212*0a6a1f1dSLionel Sambuc.Op Fl c Ar window-template 1213*0a6a1f1dSLionel Sambuc.Op Fl S Ar format 1214*0a6a1f1dSLionel Sambuc.Op Fl W Ar format 1215*0a6a1f1dSLionel Sambuc.Op Fl t Ar target-window 1216*0a6a1f1dSLionel Sambuc.Xc 1217*0a6a1f1dSLionel SambucPut a window into tree choice mode, where either sessions or windows may be 1218*0a6a1f1dSLionel Sambucselected interactively from a list. 1219*0a6a1f1dSLionel SambucBy default, windows belonging to a session are indented to show their 1220*0a6a1f1dSLionel Sambucrelationship to a session. 1221*0a6a1f1dSLionel Sambuc.Pp 1222*0a6a1f1dSLionel SambucNote that the 1223*0a6a1f1dSLionel Sambuc.Ic choose-window 1224*0a6a1f1dSLionel Sambucand 1225*0a6a1f1dSLionel Sambuc.Ic choose-session 1226*0a6a1f1dSLionel Sambuccommands are wrappers around 1227*0a6a1f1dSLionel Sambuc.Ic choose-tree . 1228*0a6a1f1dSLionel Sambuc.Pp 1229*0a6a1f1dSLionel SambucIf 1230*0a6a1f1dSLionel Sambuc.Fl s 1231*0a6a1f1dSLionel Sambucis given, will show sessions. 1232*0a6a1f1dSLionel SambucIf 1233*0a6a1f1dSLionel Sambuc.Fl w 1234*0a6a1f1dSLionel Sambucis given, will show windows. 1235*0a6a1f1dSLionel Sambuc.Pp 1236*0a6a1f1dSLionel SambucBy default, the tree is collapsed and sessions must be expanded to windows 1237*0a6a1f1dSLionel Sambucwith the right arrow key. 1238*0a6a1f1dSLionel SambucThe 1239*0a6a1f1dSLionel Sambuc.Fl u 1240*0a6a1f1dSLionel Sambucoption will start with all sessions expanded instead. 1241*0a6a1f1dSLionel Sambuc.Pp 1242*0a6a1f1dSLionel SambucIf 1243*0a6a1f1dSLionel Sambuc.Fl b 1244*0a6a1f1dSLionel Sambucis given, will override the default session command. 1245*0a6a1f1dSLionel SambucNote that 1246*0a6a1f1dSLionel Sambuc.Ql %% 1247*0a6a1f1dSLionel Sambuccan be used and will be replaced with the session name. 1248*0a6a1f1dSLionel SambucThe default option if not specified is "switch-client -t '%%'". 1249*0a6a1f1dSLionel SambucIf 1250*0a6a1f1dSLionel Sambuc.Fl c 1251*0a6a1f1dSLionel Sambucis given, will override the default window command. 1252*0a6a1f1dSLionel SambucLike 1253*0a6a1f1dSLionel Sambuc.Fl b , 1254*0a6a1f1dSLionel Sambuc.Ql %% 1255*0a6a1f1dSLionel Sambuccan be used and will be replaced with the session name and window index. 1256*0a6a1f1dSLionel SambucWhen a window is chosen from the list, the session command is run before the 1257*0a6a1f1dSLionel Sambucwindow command. 1258*0a6a1f1dSLionel Sambuc.Pp 1259*0a6a1f1dSLionel SambucIf 1260*0a6a1f1dSLionel Sambuc.Fl S 1261*0a6a1f1dSLionel Sambucis given will display the specified format instead of the default session 1262*0a6a1f1dSLionel Sambucformat. 1263*0a6a1f1dSLionel SambucIf 1264*0a6a1f1dSLionel Sambuc.Fl W 1265*0a6a1f1dSLionel Sambucis given will display the specified format instead of the default window 1266*0a6a1f1dSLionel Sambucformat. 1267*0a6a1f1dSLionel SambucFor the meaning of the 1268*0a6a1f1dSLionel Sambuc.Fl s 1269*0a6a1f1dSLionel Sambucand 1270*0a6a1f1dSLionel Sambuc.Fl w 1271*0a6a1f1dSLionel Sambucoptions, see the 1272*0a6a1f1dSLionel Sambuc.Sx FORMATS 1273*0a6a1f1dSLionel Sambucsection. 1274*0a6a1f1dSLionel Sambuc.Pp 1275*0a6a1f1dSLionel SambucThis command works only if at least one client is attached. 1276eda6f593SDavid van Moolenbroek.It Xo 1277eda6f593SDavid van Moolenbroek.Ic choose-window 1278*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 1279eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1280eda6f593SDavid van Moolenbroek.Op Ar template 1281eda6f593SDavid van Moolenbroek.Xc 1282eda6f593SDavid van MoolenbroekPut a window into window choice mode, where a window may be chosen 1283eda6f593SDavid van Moolenbroekinteractively from a list. 1284eda6f593SDavid van MoolenbroekAfter a window is selected, 1285eda6f593SDavid van Moolenbroek.Ql %% 1286eda6f593SDavid van Moolenbroekis replaced by the session name and window index in 1287eda6f593SDavid van Moolenbroek.Ar template 1288eda6f593SDavid van Moolenbroekand the result executed as a command. 1289eda6f593SDavid van MoolenbroekIf 1290eda6f593SDavid van Moolenbroek.Ar template 1291eda6f593SDavid van Moolenbroekis not given, "select-window -t '%%'" is used. 1292*0a6a1f1dSLionel SambucFor the meaning of the 1293*0a6a1f1dSLionel Sambuc.Fl F 1294*0a6a1f1dSLionel Sambucflag, see the 1295*0a6a1f1dSLionel Sambuc.Sx FORMATS 1296*0a6a1f1dSLionel Sambucsection. 1297*0a6a1f1dSLionel SambucThis command works only if at least one client is attached. 1298eda6f593SDavid van Moolenbroek.It Ic display-panes Op Fl t Ar target-client 1299eda6f593SDavid van Moolenbroek.D1 (alias: Ic displayp) 1300eda6f593SDavid van MoolenbroekDisplay a visible indicator of each pane shown by 1301eda6f593SDavid van Moolenbroek.Ar target-client . 1302eda6f593SDavid van MoolenbroekSee the 1303eda6f593SDavid van Moolenbroek.Ic display-panes-time , 1304eda6f593SDavid van Moolenbroek.Ic display-panes-colour , 1305eda6f593SDavid van Moolenbroekand 1306eda6f593SDavid van Moolenbroek.Ic display-panes-active-colour 1307eda6f593SDavid van Moolenbroeksession options. 1308eda6f593SDavid van MoolenbroekWhile the indicator is on screen, a pane may be selected with the 1309eda6f593SDavid van Moolenbroek.Ql 0 1310eda6f593SDavid van Moolenbroekto 1311eda6f593SDavid van Moolenbroek.Ql 9 1312eda6f593SDavid van Moolenbroekkeys. 1313eda6f593SDavid van Moolenbroek.It Xo Ic find-window 1314*0a6a1f1dSLionel Sambuc.Op Fl CNT 1315*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 1316eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1317eda6f593SDavid van Moolenbroek.Ar match-string 1318eda6f593SDavid van Moolenbroek.Xc 1319eda6f593SDavid van Moolenbroek.D1 (alias: Ic findw ) 1320eda6f593SDavid van MoolenbroekSearch for the 1321eda6f593SDavid van Moolenbroek.Xr fnmatch 3 1322eda6f593SDavid van Moolenbroekpattern 1323eda6f593SDavid van Moolenbroek.Ar match-string 1324eda6f593SDavid van Moolenbroekin window names, titles, and visible content (but not history). 1325*0a6a1f1dSLionel SambucThe flags control matching behavior: 1326*0a6a1f1dSLionel Sambuc.Fl C 1327*0a6a1f1dSLionel Sambucmatches only visible window contents, 1328*0a6a1f1dSLionel Sambuc.Fl N 1329*0a6a1f1dSLionel Sambucmatches only the window name and 1330*0a6a1f1dSLionel Sambuc.Fl T 1331*0a6a1f1dSLionel Sambucmatches only the window title. 1332*0a6a1f1dSLionel SambucThe default is 1333*0a6a1f1dSLionel Sambuc.Fl CNT . 1334*0a6a1f1dSLionel SambucIf only one window is matched, it'll be automatically selected, 1335*0a6a1f1dSLionel Sambucotherwise a choice list is shown. 1336*0a6a1f1dSLionel SambucFor the meaning of the 1337*0a6a1f1dSLionel Sambuc.Fl F 1338*0a6a1f1dSLionel Sambucflag, see the 1339*0a6a1f1dSLionel Sambuc.Sx FORMATS 1340*0a6a1f1dSLionel Sambucsection. 1341*0a6a1f1dSLionel SambucThis command works only if at least one client is attached. 1342eda6f593SDavid van Moolenbroek.It Xo Ic join-pane 1343*0a6a1f1dSLionel Sambuc.Op Fl bdhv 1344eda6f593SDavid van Moolenbroek.Oo Fl l 1345eda6f593SDavid van Moolenbroek.Ar size | 1346eda6f593SDavid van Moolenbroek.Fl p Ar percentage Oc 1347eda6f593SDavid van Moolenbroek.Op Fl s Ar src-pane 1348eda6f593SDavid van Moolenbroek.Op Fl t Ar dst-pane 1349eda6f593SDavid van Moolenbroek.Xc 1350eda6f593SDavid van Moolenbroek.D1 (alias: Ic joinp ) 1351eda6f593SDavid van MoolenbroekLike 1352eda6f593SDavid van Moolenbroek.Ic split-window , 1353eda6f593SDavid van Moolenbroekbut instead of splitting 1354eda6f593SDavid van Moolenbroek.Ar dst-pane 1355eda6f593SDavid van Moolenbroekand creating a new pane, split it and move 1356eda6f593SDavid van Moolenbroek.Ar src-pane 1357eda6f593SDavid van Moolenbroekinto the space. 1358eda6f593SDavid van MoolenbroekThis can be used to reverse 1359eda6f593SDavid van Moolenbroek.Ic break-pane . 1360*0a6a1f1dSLionel SambucThe 1361*0a6a1f1dSLionel Sambuc.Fl b 1362*0a6a1f1dSLionel Sambucoption causes 1363*0a6a1f1dSLionel Sambuc.Ar src-pane 1364*0a6a1f1dSLionel Sambucto be joined to left of or above 1365*0a6a1f1dSLionel Sambuc.Ar dst-pane . 1366eda6f593SDavid van Moolenbroek.It Xo Ic kill-pane 1367eda6f593SDavid van Moolenbroek.Op Fl a 1368eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 1369eda6f593SDavid van Moolenbroek.Xc 1370eda6f593SDavid van Moolenbroek.D1 (alias: Ic killp ) 1371eda6f593SDavid van MoolenbroekDestroy the given pane. 1372eda6f593SDavid van MoolenbroekIf no panes remain in the containing window, it is also destroyed. 1373eda6f593SDavid van MoolenbroekThe 1374eda6f593SDavid van Moolenbroek.Fl a 1375eda6f593SDavid van Moolenbroekoption kills all but the pane given with 1376eda6f593SDavid van Moolenbroek.Fl t . 1377*0a6a1f1dSLionel Sambuc.It Xo Ic kill-window 1378*0a6a1f1dSLionel Sambuc.Op Fl a 1379*0a6a1f1dSLionel Sambuc.Op Fl t Ar target-window 1380*0a6a1f1dSLionel Sambuc.Xc 1381eda6f593SDavid van Moolenbroek.D1 (alias: Ic killw ) 1382eda6f593SDavid van MoolenbroekKill the current window or the window at 1383eda6f593SDavid van Moolenbroek.Ar target-window , 1384eda6f593SDavid van Moolenbroekremoving it from any sessions to which it is linked. 1385*0a6a1f1dSLionel SambucThe 1386*0a6a1f1dSLionel Sambuc.Fl a 1387*0a6a1f1dSLionel Sambucoption kills all but the window given with 1388*0a6a1f1dSLionel Sambuc.Fl t . 1389eda6f593SDavid van Moolenbroek.It Ic last-pane Op Fl t Ar target-window 1390eda6f593SDavid van Moolenbroek.D1 (alias: Ic lastp ) 1391eda6f593SDavid van MoolenbroekSelect the last (previously selected) pane. 1392eda6f593SDavid van Moolenbroek.It Ic last-window Op Fl t Ar target-session 1393eda6f593SDavid van Moolenbroek.D1 (alias: Ic last ) 1394eda6f593SDavid van MoolenbroekSelect the last (previously selected) window. 1395eda6f593SDavid van MoolenbroekIf no 1396eda6f593SDavid van Moolenbroek.Ar target-session 1397eda6f593SDavid van Moolenbroekis specified, select the last window of the current session. 1398eda6f593SDavid van Moolenbroek.It Xo Ic link-window 1399eda6f593SDavid van Moolenbroek.Op Fl dk 1400eda6f593SDavid van Moolenbroek.Op Fl s Ar src-window 1401eda6f593SDavid van Moolenbroek.Op Fl t Ar dst-window 1402eda6f593SDavid van Moolenbroek.Xc 1403eda6f593SDavid van Moolenbroek.D1 (alias: Ic linkw ) 1404eda6f593SDavid van MoolenbroekLink the window at 1405eda6f593SDavid van Moolenbroek.Ar src-window 1406eda6f593SDavid van Moolenbroekto the specified 1407eda6f593SDavid van Moolenbroek.Ar dst-window . 1408eda6f593SDavid van MoolenbroekIf 1409eda6f593SDavid van Moolenbroek.Ar dst-window 1410eda6f593SDavid van Moolenbroekis specified and no such window exists, the 1411eda6f593SDavid van Moolenbroek.Ar src-window 1412eda6f593SDavid van Moolenbroekis linked there. 1413eda6f593SDavid van MoolenbroekIf 1414eda6f593SDavid van Moolenbroek.Fl k 1415eda6f593SDavid van Moolenbroekis given and 1416eda6f593SDavid van Moolenbroek.Ar dst-window 1417eda6f593SDavid van Moolenbroekexists, it is killed, otherwise an error is generated. 1418eda6f593SDavid van MoolenbroekIf 1419eda6f593SDavid van Moolenbroek.Fl d 1420eda6f593SDavid van Moolenbroekis given, the newly linked window is not selected. 1421eda6f593SDavid van Moolenbroek.It Xo Ic list-panes 1422eda6f593SDavid van Moolenbroek.Op Fl as 1423*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 1424eda6f593SDavid van Moolenbroek.Op Fl t Ar target 1425eda6f593SDavid van Moolenbroek.Xc 1426eda6f593SDavid van Moolenbroek.D1 (alias: Ic lsp ) 1427eda6f593SDavid van MoolenbroekIf 1428eda6f593SDavid van Moolenbroek.Fl a 1429eda6f593SDavid van Moolenbroekis given, 1430eda6f593SDavid van Moolenbroek.Ar target 1431eda6f593SDavid van Moolenbroekis ignored and all panes on the server are listed. 1432eda6f593SDavid van MoolenbroekIf 1433eda6f593SDavid van Moolenbroek.Fl s 1434eda6f593SDavid van Moolenbroekis given, 1435eda6f593SDavid van Moolenbroek.Ar target 1436eda6f593SDavid van Moolenbroekis a session (or the current session). 1437eda6f593SDavid van MoolenbroekIf neither is given, 1438eda6f593SDavid van Moolenbroek.Ar target 1439eda6f593SDavid van Moolenbroekis a window (or the current window). 1440*0a6a1f1dSLionel SambucFor the meaning of the 1441*0a6a1f1dSLionel Sambuc.Fl F 1442*0a6a1f1dSLionel Sambucflag, see the 1443*0a6a1f1dSLionel Sambuc.Sx FORMATS 1444*0a6a1f1dSLionel Sambucsection. 1445eda6f593SDavid van Moolenbroek.It Xo Ic list-windows 1446eda6f593SDavid van Moolenbroek.Op Fl a 1447*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 1448eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session 1449eda6f593SDavid van Moolenbroek.Xc 1450eda6f593SDavid van Moolenbroek.D1 (alias: Ic lsw ) 1451eda6f593SDavid van MoolenbroekIf 1452eda6f593SDavid van Moolenbroek.Fl a 1453eda6f593SDavid van Moolenbroekis given, list all windows on the server. 1454eda6f593SDavid van MoolenbroekOtherwise, list windows in the current session or in 1455eda6f593SDavid van Moolenbroek.Ar target-session . 1456*0a6a1f1dSLionel SambucFor the meaning of the 1457*0a6a1f1dSLionel Sambuc.Fl F 1458*0a6a1f1dSLionel Sambucflag, see the 1459*0a6a1f1dSLionel Sambuc.Sx FORMATS 1460*0a6a1f1dSLionel Sambucsection. 1461*0a6a1f1dSLionel Sambuc.It Xo Ic move-pane 1462*0a6a1f1dSLionel Sambuc.Op Fl bdhv 1463*0a6a1f1dSLionel Sambuc.Oo Fl l 1464*0a6a1f1dSLionel Sambuc.Ar size | 1465*0a6a1f1dSLionel Sambuc.Fl p Ar percentage Oc 1466*0a6a1f1dSLionel Sambuc.Op Fl s Ar src-pane 1467*0a6a1f1dSLionel Sambuc.Op Fl t Ar dst-pane 1468*0a6a1f1dSLionel Sambuc.Xc 1469*0a6a1f1dSLionel Sambuc.D1 (alias: Ic movep ) 1470*0a6a1f1dSLionel SambucLike 1471*0a6a1f1dSLionel Sambuc.Ic join-pane , 1472*0a6a1f1dSLionel Sambucbut 1473*0a6a1f1dSLionel Sambuc.Ar src-pane 1474*0a6a1f1dSLionel Sambucand 1475*0a6a1f1dSLionel Sambuc.Ar dst-pane 1476*0a6a1f1dSLionel Sambucmay belong to the same window. 1477eda6f593SDavid van Moolenbroek.It Xo Ic move-window 1478*0a6a1f1dSLionel Sambuc.Op Fl rdk 1479eda6f593SDavid van Moolenbroek.Op Fl s Ar src-window 1480eda6f593SDavid van Moolenbroek.Op Fl t Ar dst-window 1481eda6f593SDavid van Moolenbroek.Xc 1482eda6f593SDavid van Moolenbroek.D1 (alias: Ic movew ) 1483eda6f593SDavid van MoolenbroekThis is similar to 1484eda6f593SDavid van Moolenbroek.Ic link-window , 1485eda6f593SDavid van Moolenbroekexcept the window at 1486eda6f593SDavid van Moolenbroek.Ar src-window 1487eda6f593SDavid van Moolenbroekis moved to 1488eda6f593SDavid van Moolenbroek.Ar dst-window . 1489*0a6a1f1dSLionel SambucWith 1490*0a6a1f1dSLionel Sambuc.Fl r , 1491*0a6a1f1dSLionel Sambucall windows in the session are renumbered in sequential order, respecting 1492*0a6a1f1dSLionel Sambucthe 1493*0a6a1f1dSLionel Sambuc.Ic base-index 1494*0a6a1f1dSLionel Sambucoption. 1495eda6f593SDavid van Moolenbroek.It Xo Ic new-window 1496eda6f593SDavid van Moolenbroek.Op Fl adkP 1497*0a6a1f1dSLionel Sambuc.Op Fl c Ar start-directory 1498*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 1499eda6f593SDavid van Moolenbroek.Op Fl n Ar window-name 1500eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1501eda6f593SDavid van Moolenbroek.Op Ar shell-command 1502eda6f593SDavid van Moolenbroek.Xc 1503eda6f593SDavid van Moolenbroek.D1 (alias: Ic neww ) 1504eda6f593SDavid van MoolenbroekCreate a new window. 1505eda6f593SDavid van MoolenbroekWith 1506eda6f593SDavid van Moolenbroek.Fl a , 1507eda6f593SDavid van Moolenbroekthe new window is inserted at the next index up from the specified 1508eda6f593SDavid van Moolenbroek.Ar target-window , 1509eda6f593SDavid van Moolenbroekmoving windows up if necessary, 1510eda6f593SDavid van Moolenbroekotherwise 1511eda6f593SDavid van Moolenbroek.Ar target-window 1512eda6f593SDavid van Moolenbroekis the new window location. 1513eda6f593SDavid van Moolenbroek.Pp 1514eda6f593SDavid van MoolenbroekIf 1515eda6f593SDavid van Moolenbroek.Fl d 1516eda6f593SDavid van Moolenbroekis given, the session does not make the new window the current window. 1517eda6f593SDavid van Moolenbroek.Ar target-window 1518eda6f593SDavid van Moolenbroekrepresents the window to be created; if the target already exists an error is 1519eda6f593SDavid van Moolenbroekshown, unless the 1520eda6f593SDavid van Moolenbroek.Fl k 1521eda6f593SDavid van Moolenbroekflag is used, in which case it is destroyed. 1522eda6f593SDavid van Moolenbroek.Ar shell-command 1523eda6f593SDavid van Moolenbroekis the command to execute. 1524eda6f593SDavid van MoolenbroekIf 1525eda6f593SDavid van Moolenbroek.Ar shell-command 1526eda6f593SDavid van Moolenbroekis not specified, the value of the 1527eda6f593SDavid van Moolenbroek.Ic default-command 1528eda6f593SDavid van Moolenbroekoption is used. 1529*0a6a1f1dSLionel Sambuc.Fl c 1530*0a6a1f1dSLionel Sambucspecifies the working directory in which the new window is created. 1531eda6f593SDavid van Moolenbroek.Pp 1532eda6f593SDavid van MoolenbroekWhen the shell command completes, the window closes. 1533eda6f593SDavid van MoolenbroekSee the 1534eda6f593SDavid van Moolenbroek.Ic remain-on-exit 1535eda6f593SDavid van Moolenbroekoption to change this behaviour. 1536eda6f593SDavid van Moolenbroek.Pp 1537eda6f593SDavid van MoolenbroekThe 1538eda6f593SDavid van Moolenbroek.Ev TERM 1539eda6f593SDavid van Moolenbroekenvironment variable must be set to 1540eda6f593SDavid van Moolenbroek.Dq screen 1541eda6f593SDavid van Moolenbroekfor all programs running 1542eda6f593SDavid van Moolenbroek.Em inside 1543eda6f593SDavid van Moolenbroek.Nm . 1544eda6f593SDavid van MoolenbroekNew windows will automatically have 1545eda6f593SDavid van Moolenbroek.Dq TERM=screen 1546eda6f593SDavid van Moolenbroekadded to their environment, but care must be taken not to reset this in shell 1547eda6f593SDavid van Moolenbroekstart-up files. 1548eda6f593SDavid van Moolenbroek.Pp 1549eda6f593SDavid van MoolenbroekThe 1550eda6f593SDavid van Moolenbroek.Fl P 1551*0a6a1f1dSLionel Sambucoption prints information about the new window after it has been created. 1552*0a6a1f1dSLionel SambucBy default, it uses the format 1553*0a6a1f1dSLionel Sambuc.Ql #{session_name}:#{window_index} 1554*0a6a1f1dSLionel Sambucbut a different format may be specified with 1555*0a6a1f1dSLionel Sambuc.Fl F . 1556eda6f593SDavid van Moolenbroek.It Ic next-layout Op Fl t Ar target-window 1557eda6f593SDavid van Moolenbroek.D1 (alias: Ic nextl ) 1558eda6f593SDavid van MoolenbroekMove a window to the next layout and rearrange the panes to fit. 1559eda6f593SDavid van Moolenbroek.It Xo Ic next-window 1560eda6f593SDavid van Moolenbroek.Op Fl a 1561eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session 1562eda6f593SDavid van Moolenbroek.Xc 1563eda6f593SDavid van Moolenbroek.D1 (alias: Ic next ) 1564eda6f593SDavid van MoolenbroekMove to the next window in the session. 1565eda6f593SDavid van MoolenbroekIf 1566eda6f593SDavid van Moolenbroek.Fl a 1567*0a6a1f1dSLionel Sambucis used, move to the next window with an alert. 1568eda6f593SDavid van Moolenbroek.It Xo Ic pipe-pane 1569eda6f593SDavid van Moolenbroek.Op Fl o 1570eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 1571eda6f593SDavid van Moolenbroek.Op Ar shell-command 1572eda6f593SDavid van Moolenbroek.Xc 1573eda6f593SDavid van Moolenbroek.D1 (alias: Ic pipep ) 1574eda6f593SDavid van MoolenbroekPipe any output sent by the program in 1575eda6f593SDavid van Moolenbroek.Ar target-pane 1576eda6f593SDavid van Moolenbroekto a shell command. 1577eda6f593SDavid van MoolenbroekA pane may only be piped to one command at a time, any existing pipe is 1578eda6f593SDavid van Moolenbroekclosed before 1579eda6f593SDavid van Moolenbroek.Ar shell-command 1580eda6f593SDavid van Moolenbroekis executed. 1581eda6f593SDavid van MoolenbroekThe 1582eda6f593SDavid van Moolenbroek.Ar shell-command 1583eda6f593SDavid van Moolenbroekstring may contain the special character sequences supported by the 1584eda6f593SDavid van Moolenbroek.Ic status-left 1585eda6f593SDavid van Moolenbroekoption. 1586eda6f593SDavid van MoolenbroekIf no 1587eda6f593SDavid van Moolenbroek.Ar shell-command 1588eda6f593SDavid van Moolenbroekis given, the current pipe (if any) is closed. 1589eda6f593SDavid van Moolenbroek.Pp 1590eda6f593SDavid van MoolenbroekThe 1591eda6f593SDavid van Moolenbroek.Fl o 1592eda6f593SDavid van Moolenbroekoption only opens a new pipe if no previous pipe exists, allowing a pipe to 1593eda6f593SDavid van Moolenbroekbe toggled with a single key, for example: 1594eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 1595eda6f593SDavid van Moolenbroekbind-key C-p pipe-pane -o 'cat >>~/output.#I-#P' 1596eda6f593SDavid van Moolenbroek.Ed 1597eda6f593SDavid van Moolenbroek.It Xo Ic previous-layout 1598eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1599eda6f593SDavid van Moolenbroek.Xc 1600eda6f593SDavid van Moolenbroek.D1 (alias: Ic prevl ) 1601eda6f593SDavid van MoolenbroekMove to the previous layout in the session. 1602eda6f593SDavid van Moolenbroek.It Xo Ic previous-window 1603eda6f593SDavid van Moolenbroek.Op Fl a 1604eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session 1605eda6f593SDavid van Moolenbroek.Xc 1606eda6f593SDavid van Moolenbroek.D1 (alias: Ic prev ) 1607eda6f593SDavid van MoolenbroekMove to the previous window in the session. 1608eda6f593SDavid van MoolenbroekWith 1609eda6f593SDavid van Moolenbroek.Fl a , 1610*0a6a1f1dSLionel Sambucmove to the previous window with an alert. 1611eda6f593SDavid van Moolenbroek.It Xo Ic rename-window 1612eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1613eda6f593SDavid van Moolenbroek.Ar new-name 1614eda6f593SDavid van Moolenbroek.Xc 1615eda6f593SDavid van Moolenbroek.D1 (alias: Ic renamew ) 1616eda6f593SDavid van MoolenbroekRename the current window, or the window at 1617eda6f593SDavid van Moolenbroek.Ar target-window 1618eda6f593SDavid van Moolenbroekif specified, to 1619eda6f593SDavid van Moolenbroek.Ar new-name . 1620eda6f593SDavid van Moolenbroek.It Xo Ic resize-pane 1621*0a6a1f1dSLionel Sambuc.Op Fl DLRUZ 1622eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 1623*0a6a1f1dSLionel Sambuc.Op Fl x Ar width 1624*0a6a1f1dSLionel Sambuc.Op Fl y Ar height 1625eda6f593SDavid van Moolenbroek.Op Ar adjustment 1626eda6f593SDavid van Moolenbroek.Xc 1627eda6f593SDavid van Moolenbroek.D1 (alias: Ic resizep ) 1628*0a6a1f1dSLionel SambucResize a pane, up, down, left or right by 1629*0a6a1f1dSLionel Sambuc.Ar adjustment 1630*0a6a1f1dSLionel Sambucwith 1631*0a6a1f1dSLionel Sambuc.Fl U , 1632eda6f593SDavid van Moolenbroek.Fl D , 1633eda6f593SDavid van Moolenbroek.Fl L 1634*0a6a1f1dSLionel Sambucor 1635*0a6a1f1dSLionel Sambuc.Fl R , 1636*0a6a1f1dSLionel Sambucor 1637*0a6a1f1dSLionel Sambucto an absolute size 1638*0a6a1f1dSLionel Sambucwith 1639*0a6a1f1dSLionel Sambuc.Fl x 1640*0a6a1f1dSLionel Sambucor 1641*0a6a1f1dSLionel Sambuc.Fl y . 1642eda6f593SDavid van MoolenbroekThe 1643eda6f593SDavid van Moolenbroek.Ar adjustment 1644eda6f593SDavid van Moolenbroekis given in lines or cells (the default is 1). 1645*0a6a1f1dSLionel Sambuc.Pp 1646*0a6a1f1dSLionel SambucWith 1647*0a6a1f1dSLionel Sambuc.Fl Z , 1648*0a6a1f1dSLionel Sambucthe active pane is toggled between zoomed (occupying the whole of the window) 1649*0a6a1f1dSLionel Sambucand unzoomed (its normal position in the layout). 1650eda6f593SDavid van Moolenbroek.It Xo Ic respawn-pane 1651eda6f593SDavid van Moolenbroek.Op Fl k 1652eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 1653eda6f593SDavid van Moolenbroek.Op Ar shell-command 1654eda6f593SDavid van Moolenbroek.Xc 1655eda6f593SDavid van Moolenbroek.D1 (alias: Ic respawnp ) 1656eda6f593SDavid van MoolenbroekReactivate a pane in which the command has exited (see the 1657eda6f593SDavid van Moolenbroek.Ic remain-on-exit 1658eda6f593SDavid van Moolenbroekwindow option). 1659eda6f593SDavid van MoolenbroekIf 1660eda6f593SDavid van Moolenbroek.Ar shell-command 1661eda6f593SDavid van Moolenbroekis not given, the command used when the pane was created is executed. 1662eda6f593SDavid van MoolenbroekThe pane must be already inactive, unless 1663eda6f593SDavid van Moolenbroek.Fl k 1664eda6f593SDavid van Moolenbroekis given, in which case any existing command is killed. 1665eda6f593SDavid van Moolenbroek.It Xo Ic respawn-window 1666eda6f593SDavid van Moolenbroek.Op Fl k 1667eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1668eda6f593SDavid van Moolenbroek.Op Ar shell-command 1669eda6f593SDavid van Moolenbroek.Xc 1670eda6f593SDavid van Moolenbroek.D1 (alias: Ic respawnw ) 1671eda6f593SDavid van MoolenbroekReactivate a window in which the command has exited (see the 1672eda6f593SDavid van Moolenbroek.Ic remain-on-exit 1673eda6f593SDavid van Moolenbroekwindow option). 1674eda6f593SDavid van MoolenbroekIf 1675eda6f593SDavid van Moolenbroek.Ar shell-command 1676eda6f593SDavid van Moolenbroekis not given, the command used when the window was created is executed. 1677eda6f593SDavid van MoolenbroekThe window must be already inactive, unless 1678eda6f593SDavid van Moolenbroek.Fl k 1679eda6f593SDavid van Moolenbroekis given, in which case any existing command is killed. 1680eda6f593SDavid van Moolenbroek.It Xo Ic rotate-window 1681eda6f593SDavid van Moolenbroek.Op Fl DU 1682eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1683eda6f593SDavid van Moolenbroek.Xc 1684eda6f593SDavid van Moolenbroek.D1 (alias: Ic rotatew ) 1685eda6f593SDavid van MoolenbroekRotate the positions of the panes within a window, either upward (numerically 1686eda6f593SDavid van Moolenbroeklower) with 1687eda6f593SDavid van Moolenbroek.Fl U 1688eda6f593SDavid van Moolenbroekor downward (numerically higher). 1689eda6f593SDavid van Moolenbroek.It Xo Ic select-layout 1690eda6f593SDavid van Moolenbroek.Op Fl np 1691eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1692eda6f593SDavid van Moolenbroek.Op Ar layout-name 1693eda6f593SDavid van Moolenbroek.Xc 1694eda6f593SDavid van Moolenbroek.D1 (alias: Ic selectl ) 1695eda6f593SDavid van MoolenbroekChoose a specific layout for a window. 1696eda6f593SDavid van MoolenbroekIf 1697eda6f593SDavid van Moolenbroek.Ar layout-name 1698eda6f593SDavid van Moolenbroekis not given, the last preset layout used (if any) is reapplied. 1699eda6f593SDavid van Moolenbroek.Fl n 1700eda6f593SDavid van Moolenbroekand 1701eda6f593SDavid van Moolenbroek.Fl p 1702eda6f593SDavid van Moolenbroekare equivalent to the 1703eda6f593SDavid van Moolenbroek.Ic next-layout 1704eda6f593SDavid van Moolenbroekand 1705eda6f593SDavid van Moolenbroek.Ic previous-layout 1706eda6f593SDavid van Moolenbroekcommands. 1707eda6f593SDavid van Moolenbroek.It Xo Ic select-pane 1708eda6f593SDavid van Moolenbroek.Op Fl lDLRU 1709eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 1710eda6f593SDavid van Moolenbroek.Xc 1711eda6f593SDavid van Moolenbroek.D1 (alias: Ic selectp ) 1712eda6f593SDavid van MoolenbroekMake pane 1713eda6f593SDavid van Moolenbroek.Ar target-pane 1714eda6f593SDavid van Moolenbroekthe active pane in window 1715eda6f593SDavid van Moolenbroek.Ar target-window . 1716eda6f593SDavid van MoolenbroekIf one of 1717eda6f593SDavid van Moolenbroek.Fl D , 1718eda6f593SDavid van Moolenbroek.Fl L , 1719eda6f593SDavid van Moolenbroek.Fl R , 1720eda6f593SDavid van Moolenbroekor 1721eda6f593SDavid van Moolenbroek.Fl U 1722eda6f593SDavid van Moolenbroekis used, respectively the pane below, to the left, to the right, or above the 1723eda6f593SDavid van Moolenbroektarget pane is used. 1724eda6f593SDavid van Moolenbroek.Fl l 1725eda6f593SDavid van Moolenbroekis the same as using the 1726eda6f593SDavid van Moolenbroek.Ic last-pane 1727eda6f593SDavid van Moolenbroekcommand. 1728eda6f593SDavid van Moolenbroek.It Xo Ic select-window 1729*0a6a1f1dSLionel Sambuc.Op Fl lnpT 1730eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1731eda6f593SDavid van Moolenbroek.Xc 1732eda6f593SDavid van Moolenbroek.D1 (alias: Ic selectw ) 1733eda6f593SDavid van MoolenbroekSelect the window at 1734eda6f593SDavid van Moolenbroek.Ar target-window . 1735eda6f593SDavid van Moolenbroek.Fl l , 1736eda6f593SDavid van Moolenbroek.Fl n 1737eda6f593SDavid van Moolenbroekand 1738eda6f593SDavid van Moolenbroek.Fl p 1739eda6f593SDavid van Moolenbroekare equivalent to the 1740eda6f593SDavid van Moolenbroek.Ic last-window , 1741eda6f593SDavid van Moolenbroek.Ic next-window 1742eda6f593SDavid van Moolenbroekand 1743eda6f593SDavid van Moolenbroek.Ic previous-window 1744eda6f593SDavid van Moolenbroekcommands. 1745*0a6a1f1dSLionel SambucIf 1746*0a6a1f1dSLionel Sambuc.Fl T 1747*0a6a1f1dSLionel Sambucis given and the selected window is already the current window, 1748*0a6a1f1dSLionel Sambucthe command behaves like 1749*0a6a1f1dSLionel Sambuc.Ic last-window . 1750eda6f593SDavid van Moolenbroek.It Xo Ic split-window 1751eda6f593SDavid van Moolenbroek.Op Fl dhvP 1752*0a6a1f1dSLionel Sambuc.Op Fl c Ar start-directory 1753eda6f593SDavid van Moolenbroek.Oo Fl l 1754eda6f593SDavid van Moolenbroek.Ar size | 1755eda6f593SDavid van Moolenbroek.Fl p Ar percentage Oc 1756eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 1757eda6f593SDavid van Moolenbroek.Op Ar shell-command 1758*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 1759eda6f593SDavid van Moolenbroek.Xc 1760eda6f593SDavid van Moolenbroek.D1 (alias: Ic splitw ) 1761eda6f593SDavid van MoolenbroekCreate a new pane by splitting 1762eda6f593SDavid van Moolenbroek.Ar target-pane : 1763eda6f593SDavid van Moolenbroek.Fl h 1764eda6f593SDavid van Moolenbroekdoes a horizontal split and 1765eda6f593SDavid van Moolenbroek.Fl v 1766eda6f593SDavid van Moolenbroeka vertical split; if neither is specified, 1767eda6f593SDavid van Moolenbroek.Fl v 1768eda6f593SDavid van Moolenbroekis assumed. 1769eda6f593SDavid van MoolenbroekThe 1770eda6f593SDavid van Moolenbroek.Fl l 1771eda6f593SDavid van Moolenbroekand 1772eda6f593SDavid van Moolenbroek.Fl p 1773eda6f593SDavid van Moolenbroekoptions specify the size of the new pane in lines (for vertical split) or in 1774eda6f593SDavid van Moolenbroekcells (for horizontal split), or as a percentage, respectively. 1775eda6f593SDavid van MoolenbroekAll other options have the same meaning as for the 1776eda6f593SDavid van Moolenbroek.Ic new-window 1777eda6f593SDavid van Moolenbroekcommand. 1778eda6f593SDavid van Moolenbroek.It Xo Ic swap-pane 1779eda6f593SDavid van Moolenbroek.Op Fl dDU 1780eda6f593SDavid van Moolenbroek.Op Fl s Ar src-pane 1781eda6f593SDavid van Moolenbroek.Op Fl t Ar dst-pane 1782eda6f593SDavid van Moolenbroek.Xc 1783eda6f593SDavid van Moolenbroek.D1 (alias: Ic swapp ) 1784eda6f593SDavid van MoolenbroekSwap two panes. 1785eda6f593SDavid van MoolenbroekIf 1786eda6f593SDavid van Moolenbroek.Fl U 1787eda6f593SDavid van Moolenbroekis used and no source pane is specified with 1788eda6f593SDavid van Moolenbroek.Fl s , 1789eda6f593SDavid van Moolenbroek.Ar dst-pane 1790eda6f593SDavid van Moolenbroekis swapped with the previous pane (before it numerically); 1791eda6f593SDavid van Moolenbroek.Fl D 1792eda6f593SDavid van Moolenbroekswaps with the next pane (after it numerically). 1793eda6f593SDavid van Moolenbroek.Fl d 1794eda6f593SDavid van Moolenbroekinstructs 1795eda6f593SDavid van Moolenbroek.Nm 1796eda6f593SDavid van Moolenbroeknot to change the active pane. 1797eda6f593SDavid van Moolenbroek.It Xo Ic swap-window 1798eda6f593SDavid van Moolenbroek.Op Fl d 1799eda6f593SDavid van Moolenbroek.Op Fl s Ar src-window 1800eda6f593SDavid van Moolenbroek.Op Fl t Ar dst-window 1801eda6f593SDavid van Moolenbroek.Xc 1802eda6f593SDavid van Moolenbroek.D1 (alias: Ic swapw ) 1803eda6f593SDavid van MoolenbroekThis is similar to 1804eda6f593SDavid van Moolenbroek.Ic link-window , 1805eda6f593SDavid van Moolenbroekexcept the source and destination windows are swapped. 1806eda6f593SDavid van MoolenbroekIt is an error if no window exists at 1807eda6f593SDavid van Moolenbroek.Ar src-window . 1808eda6f593SDavid van Moolenbroek.It Xo Ic unlink-window 1809eda6f593SDavid van Moolenbroek.Op Fl k 1810eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 1811eda6f593SDavid van Moolenbroek.Xc 1812eda6f593SDavid van Moolenbroek.D1 (alias: Ic unlinkw ) 1813eda6f593SDavid van MoolenbroekUnlink 1814eda6f593SDavid van Moolenbroek.Ar target-window . 1815eda6f593SDavid van MoolenbroekUnless 1816eda6f593SDavid van Moolenbroek.Fl k 1817eda6f593SDavid van Moolenbroekis given, a window may be unlinked only if it is linked to multiple sessions - 1818eda6f593SDavid van Moolenbroekwindows may not be linked to no sessions; 1819eda6f593SDavid van Moolenbroekif 1820eda6f593SDavid van Moolenbroek.Fl k 1821eda6f593SDavid van Moolenbroekis specified and the window is linked to only one session, it is unlinked and 1822eda6f593SDavid van Moolenbroekdestroyed. 1823eda6f593SDavid van Moolenbroek.El 1824eda6f593SDavid van Moolenbroek.Sh KEY BINDINGS 1825eda6f593SDavid van Moolenbroek.Nm 1826eda6f593SDavid van Moolenbroekallows a command to be bound to most keys, with or without a prefix key. 1827eda6f593SDavid van MoolenbroekWhen specifying keys, most represent themselves (for example 1828eda6f593SDavid van Moolenbroek.Ql A 1829eda6f593SDavid van Moolenbroekto 1830eda6f593SDavid van Moolenbroek.Ql Z ) . 1831eda6f593SDavid van MoolenbroekCtrl keys may be prefixed with 1832eda6f593SDavid van Moolenbroek.Ql C- 1833eda6f593SDavid van Moolenbroekor 1834eda6f593SDavid van Moolenbroek.Ql ^ , 1835eda6f593SDavid van Moolenbroekand Alt (meta) with 1836eda6f593SDavid van Moolenbroek.Ql M- . 1837eda6f593SDavid van MoolenbroekIn addition, the following special key names are accepted: 1838eda6f593SDavid van Moolenbroek.Em Up , 1839eda6f593SDavid van Moolenbroek.Em Down , 1840eda6f593SDavid van Moolenbroek.Em Left , 1841eda6f593SDavid van Moolenbroek.Em Right , 1842eda6f593SDavid van Moolenbroek.Em BSpace , 1843eda6f593SDavid van Moolenbroek.Em BTab , 1844eda6f593SDavid van Moolenbroek.Em DC 1845eda6f593SDavid van Moolenbroek(Delete), 1846eda6f593SDavid van Moolenbroek.Em End , 1847eda6f593SDavid van Moolenbroek.Em Enter , 1848eda6f593SDavid van Moolenbroek.Em Escape , 1849eda6f593SDavid van Moolenbroek.Em F1 1850eda6f593SDavid van Moolenbroekto 1851eda6f593SDavid van Moolenbroek.Em F20 , 1852eda6f593SDavid van Moolenbroek.Em Home , 1853eda6f593SDavid van Moolenbroek.Em IC 1854eda6f593SDavid van Moolenbroek(Insert), 1855*0a6a1f1dSLionel Sambuc.Em NPage/PageDown/PgDn , 1856*0a6a1f1dSLionel Sambuc.Em PPage/PageUp/PgUp , 1857eda6f593SDavid van Moolenbroek.Em Space , 1858eda6f593SDavid van Moolenbroekand 1859eda6f593SDavid van Moolenbroek.Em Tab . 1860eda6f593SDavid van MoolenbroekNote that to bind the 1861eda6f593SDavid van Moolenbroek.Ql \&" 1862eda6f593SDavid van Moolenbroekor 1863eda6f593SDavid van Moolenbroek.Ql ' 1864eda6f593SDavid van Moolenbroekkeys, quotation marks are necessary, for example: 1865eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 1866eda6f593SDavid van Moolenbroekbind-key '"' split-window 1867eda6f593SDavid van Moolenbroekbind-key "'" new-window 1868eda6f593SDavid van Moolenbroek.Ed 1869eda6f593SDavid van Moolenbroek.Pp 1870eda6f593SDavid van MoolenbroekCommands related to key bindings are as follows: 1871eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 1872eda6f593SDavid van Moolenbroek.It Xo Ic bind-key 1873eda6f593SDavid van Moolenbroek.Op Fl cnr 1874eda6f593SDavid van Moolenbroek.Op Fl t Ar key-table 1875eda6f593SDavid van Moolenbroek.Ar key Ar command Op Ar arguments 1876eda6f593SDavid van Moolenbroek.Xc 1877eda6f593SDavid van Moolenbroek.D1 (alias: Ic bind ) 1878eda6f593SDavid van MoolenbroekBind key 1879eda6f593SDavid van Moolenbroek.Ar key 1880eda6f593SDavid van Moolenbroekto 1881eda6f593SDavid van Moolenbroek.Ar command . 1882eda6f593SDavid van MoolenbroekBy default (without 1883eda6f593SDavid van Moolenbroek.Fl t ) 1884eda6f593SDavid van Moolenbroekthe primary key bindings are modified (those normally activated with the prefix 1885eda6f593SDavid van Moolenbroekkey); in this case, if 1886eda6f593SDavid van Moolenbroek.Fl n 1887eda6f593SDavid van Moolenbroekis specified, it is not necessary to use the prefix key, 1888eda6f593SDavid van Moolenbroek.Ar command 1889eda6f593SDavid van Moolenbroekis bound to 1890eda6f593SDavid van Moolenbroek.Ar key 1891eda6f593SDavid van Moolenbroekalone. 1892eda6f593SDavid van MoolenbroekThe 1893eda6f593SDavid van Moolenbroek.Fl r 1894eda6f593SDavid van Moolenbroekflag indicates this key may repeat, see the 1895eda6f593SDavid van Moolenbroek.Ic repeat-time 1896eda6f593SDavid van Moolenbroekoption. 1897eda6f593SDavid van Moolenbroek.Pp 1898eda6f593SDavid van MoolenbroekIf 1899eda6f593SDavid van Moolenbroek.Fl t 1900eda6f593SDavid van Moolenbroekis present, 1901eda6f593SDavid van Moolenbroek.Ar key 1902eda6f593SDavid van Moolenbroekis bound in 1903eda6f593SDavid van Moolenbroek.Ar key-table : 1904eda6f593SDavid van Moolenbroekthe binding for command mode with 1905eda6f593SDavid van Moolenbroek.Fl c 1906eda6f593SDavid van Moolenbroekor for normal mode without. 1907eda6f593SDavid van MoolenbroekTo view the default bindings and possible commands, see the 1908eda6f593SDavid van Moolenbroek.Ic list-keys 1909eda6f593SDavid van Moolenbroekcommand. 1910eda6f593SDavid van Moolenbroek.It Ic list-keys Op Fl t Ar key-table 1911eda6f593SDavid van Moolenbroek.D1 (alias: Ic lsk ) 1912eda6f593SDavid van MoolenbroekList all key bindings. 1913eda6f593SDavid van MoolenbroekWithout 1914eda6f593SDavid van Moolenbroek.Fl t 1915eda6f593SDavid van Moolenbroekthe primary key bindings - those executed when preceded by the prefix key - 1916eda6f593SDavid van Moolenbroekare printed. 1917eda6f593SDavid van Moolenbroek.Pp 1918eda6f593SDavid van MoolenbroekWith 1919eda6f593SDavid van Moolenbroek.Fl t , 1920eda6f593SDavid van Moolenbroekthe key bindings in 1921eda6f593SDavid van Moolenbroek.Ar key-table 1922eda6f593SDavid van Moolenbroekare listed; this may be one of: 1923eda6f593SDavid van Moolenbroek.Em vi-edit , 1924eda6f593SDavid van Moolenbroek.Em emacs-edit , 1925eda6f593SDavid van Moolenbroek.Em vi-choice , 1926eda6f593SDavid van Moolenbroek.Em emacs-choice , 1927eda6f593SDavid van Moolenbroek.Em vi-copy 1928eda6f593SDavid van Moolenbroekor 1929eda6f593SDavid van Moolenbroek.Em emacs-copy . 1930eda6f593SDavid van Moolenbroek.It Xo Ic send-keys 1931*0a6a1f1dSLionel Sambuc.Op Fl lR 1932eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 1933eda6f593SDavid van Moolenbroek.Ar key Ar ... 1934eda6f593SDavid van Moolenbroek.Xc 1935eda6f593SDavid van Moolenbroek.D1 (alias: Ic send ) 1936eda6f593SDavid van MoolenbroekSend a key or keys to a window. 1937eda6f593SDavid van MoolenbroekEach argument 1938eda6f593SDavid van Moolenbroek.Ar key 1939eda6f593SDavid van Moolenbroekis the name of the key (such as 1940eda6f593SDavid van Moolenbroek.Ql C-a 1941eda6f593SDavid van Moolenbroekor 1942eda6f593SDavid van Moolenbroek.Ql npage 1943eda6f593SDavid van Moolenbroek) to send; if the string is not recognised as a key, it is sent as a series of 1944eda6f593SDavid van Moolenbroekcharacters. 1945*0a6a1f1dSLionel SambucThe 1946*0a6a1f1dSLionel Sambuc.Fl l 1947*0a6a1f1dSLionel Sambucflag disables key name lookup and sends the keys literally. 1948eda6f593SDavid van MoolenbroekAll arguments are sent sequentially from first to last. 1949*0a6a1f1dSLionel SambucThe 1950*0a6a1f1dSLionel Sambuc.Fl R 1951*0a6a1f1dSLionel Sambucflag causes the terminal state to be reset. 1952*0a6a1f1dSLionel Sambuc.It Xo Ic send-prefix 1953*0a6a1f1dSLionel Sambuc.Op Fl 2 1954*0a6a1f1dSLionel Sambuc.Op Fl t Ar target-pane 1955*0a6a1f1dSLionel Sambuc.Xc 1956*0a6a1f1dSLionel SambucSend the prefix key, or with 1957*0a6a1f1dSLionel Sambuc.Fl 2 1958*0a6a1f1dSLionel Sambucthe secondary prefix key, to a window as if it was pressed. 1959eda6f593SDavid van Moolenbroek.It Xo Ic unbind-key 1960eda6f593SDavid van Moolenbroek.Op Fl acn 1961eda6f593SDavid van Moolenbroek.Op Fl t Ar key-table 1962eda6f593SDavid van Moolenbroek.Ar key 1963eda6f593SDavid van Moolenbroek.Xc 1964eda6f593SDavid van Moolenbroek.D1 (alias: Ic unbind ) 1965eda6f593SDavid van MoolenbroekUnbind the command bound to 1966eda6f593SDavid van Moolenbroek.Ar key . 1967eda6f593SDavid van MoolenbroekWithout 1968eda6f593SDavid van Moolenbroek.Fl t 1969eda6f593SDavid van Moolenbroekthe primary key bindings are modified; in this case, if 1970eda6f593SDavid van Moolenbroek.Fl n 1971eda6f593SDavid van Moolenbroekis specified, the command bound to 1972eda6f593SDavid van Moolenbroek.Ar key 1973eda6f593SDavid van Moolenbroekwithout a prefix (if any) is removed. 1974eda6f593SDavid van MoolenbroekIf 1975eda6f593SDavid van Moolenbroek.Fl a 1976eda6f593SDavid van Moolenbroekis present, all key bindings are removed. 1977eda6f593SDavid van Moolenbroek.Pp 1978eda6f593SDavid van MoolenbroekIf 1979eda6f593SDavid van Moolenbroek.Fl t 1980eda6f593SDavid van Moolenbroekis present, 1981eda6f593SDavid van Moolenbroek.Ar key 1982eda6f593SDavid van Moolenbroekin 1983eda6f593SDavid van Moolenbroek.Ar key-table 1984eda6f593SDavid van Moolenbroekis unbound: the binding for command mode with 1985eda6f593SDavid van Moolenbroek.Fl c 1986eda6f593SDavid van Moolenbroekor for normal mode without. 1987eda6f593SDavid van Moolenbroek.El 1988eda6f593SDavid van Moolenbroek.Sh OPTIONS 1989eda6f593SDavid van MoolenbroekThe appearance and behaviour of 1990eda6f593SDavid van Moolenbroek.Nm 1991eda6f593SDavid van Moolenbroekmay be modified by changing the value of various options. 1992eda6f593SDavid van MoolenbroekThere are three types of option: 1993eda6f593SDavid van Moolenbroek.Em server options , 1994eda6f593SDavid van Moolenbroek.Em session options 1995eda6f593SDavid van Moolenbroekand 1996eda6f593SDavid van Moolenbroek.Em window options . 1997eda6f593SDavid van Moolenbroek.Pp 1998eda6f593SDavid van MoolenbroekThe 1999eda6f593SDavid van Moolenbroek.Nm 2000eda6f593SDavid van Moolenbroekserver has a set of global options which do not apply to any particular 2001eda6f593SDavid van Moolenbroekwindow or session. 2002eda6f593SDavid van MoolenbroekThese are altered with the 2003eda6f593SDavid van Moolenbroek.Ic set-option 2004eda6f593SDavid van Moolenbroek.Fl s 2005eda6f593SDavid van Moolenbroekcommand, or displayed with the 2006eda6f593SDavid van Moolenbroek.Ic show-options 2007eda6f593SDavid van Moolenbroek.Fl s 2008eda6f593SDavid van Moolenbroekcommand. 2009eda6f593SDavid van Moolenbroek.Pp 2010eda6f593SDavid van MoolenbroekIn addition, each individual session may have a set of session options, and 2011eda6f593SDavid van Moolenbroekthere is a separate set of global session options. 2012eda6f593SDavid van MoolenbroekSessions which do not have a particular option configured inherit the value 2013eda6f593SDavid van Moolenbroekfrom the global session options. 2014eda6f593SDavid van MoolenbroekSession options are set or unset with the 2015eda6f593SDavid van Moolenbroek.Ic set-option 2016eda6f593SDavid van Moolenbroekcommand and may be listed with the 2017eda6f593SDavid van Moolenbroek.Ic show-options 2018eda6f593SDavid van Moolenbroekcommand. 2019eda6f593SDavid van MoolenbroekThe available server and session options are listed under the 2020eda6f593SDavid van Moolenbroek.Ic set-option 2021eda6f593SDavid van Moolenbroekcommand. 2022eda6f593SDavid van Moolenbroek.Pp 2023eda6f593SDavid van MoolenbroekSimilarly, a set of window options is attached to each window, and there is 2024eda6f593SDavid van Moolenbroeka set of global window options from which any unset options are inherited. 2025eda6f593SDavid van MoolenbroekWindow options are altered with the 2026eda6f593SDavid van Moolenbroek.Ic set-window-option 2027eda6f593SDavid van Moolenbroekcommand and can be listed with the 2028eda6f593SDavid van Moolenbroek.Ic show-window-options 2029eda6f593SDavid van Moolenbroekcommand. 2030eda6f593SDavid van MoolenbroekAll window options are documented with the 2031eda6f593SDavid van Moolenbroek.Ic set-window-option 2032eda6f593SDavid van Moolenbroekcommand. 2033eda6f593SDavid van Moolenbroek.Pp 2034*0a6a1f1dSLionel Sambuc.Nm 2035*0a6a1f1dSLionel Sambucalso supports user options which are prefixed with a 2036*0a6a1f1dSLionel Sambuc.Ql \&@ . 2037*0a6a1f1dSLionel SambucUser options may have any name, so long as they are prefixed with 2038*0a6a1f1dSLionel Sambuc.Ql \&@ , 2039*0a6a1f1dSLionel Sambucand be set to any string. 2040*0a6a1f1dSLionel SambucFor example 2041*0a6a1f1dSLionel Sambuc.Bd -literal -offset indent 2042*0a6a1f1dSLionel Sambuc$ tmux setw -q @foo "abc123" 2043*0a6a1f1dSLionel Sambuc$ tmux showw -v @foo 2044*0a6a1f1dSLionel Sambucabc123 2045*0a6a1f1dSLionel Sambuc.Ed 2046*0a6a1f1dSLionel Sambuc.Pp 2047eda6f593SDavid van MoolenbroekCommands which set options are as follows: 2048eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 2049eda6f593SDavid van Moolenbroek.It Xo Ic set-option 2050*0a6a1f1dSLionel Sambuc.Op Fl agoqsuw 2051eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session | Ar target-window 2052eda6f593SDavid van Moolenbroek.Ar option Ar value 2053eda6f593SDavid van Moolenbroek.Xc 2054eda6f593SDavid van Moolenbroek.D1 (alias: Ic set ) 2055eda6f593SDavid van MoolenbroekSet a window option with 2056eda6f593SDavid van Moolenbroek.Fl w 2057eda6f593SDavid van Moolenbroek(equivalent to the 2058eda6f593SDavid van Moolenbroek.Ic set-window-option 2059eda6f593SDavid van Moolenbroekcommand), 2060eda6f593SDavid van Moolenbroeka server option with 2061eda6f593SDavid van Moolenbroek.Fl s , 2062eda6f593SDavid van Moolenbroekotherwise a session option. 2063eda6f593SDavid van Moolenbroek.Pp 2064eda6f593SDavid van MoolenbroekIf 2065eda6f593SDavid van Moolenbroek.Fl g 2066eda6f593SDavid van Moolenbroekis specified, the global session or window option is set. 2067eda6f593SDavid van MoolenbroekThe 2068eda6f593SDavid van Moolenbroek.Fl u 2069eda6f593SDavid van Moolenbroekflag unsets an option, so a session inherits the option from the global 2070eda6f593SDavid van Moolenbroekoptions. 2071eda6f593SDavid van MoolenbroekIt is not possible to unset a global option. 2072eda6f593SDavid van Moolenbroek.Pp 2073*0a6a1f1dSLionel SambucThe 2074*0a6a1f1dSLionel Sambuc.Fl o 2075*0a6a1f1dSLionel Sambucflag prevents setting an option that is already set. 2076*0a6a1f1dSLionel Sambuc.Pp 2077*0a6a1f1dSLionel SambucThe 2078*0a6a1f1dSLionel Sambuc.Fl q 2079*0a6a1f1dSLionel Sambucflag suppresses the informational message (as if the 2080*0a6a1f1dSLionel Sambuc.Ic quiet 2081*0a6a1f1dSLionel Sambucserver option was set). 2082*0a6a1f1dSLionel Sambuc.Pp 2083*0a6a1f1dSLionel SambucWith 2084*0a6a1f1dSLionel Sambuc.Fl a , 2085*0a6a1f1dSLionel Sambucand if the option expects a string or a style, 2086*0a6a1f1dSLionel Sambuc.Ar value 2087*0a6a1f1dSLionel Sambucis appended to the existing setting. 2088*0a6a1f1dSLionel SambucFor example: 2089*0a6a1f1dSLionel Sambuc.Bd -literal -offset indent 2090*0a6a1f1dSLionel Sambucset -g status-left "foo" 2091*0a6a1f1dSLionel Sambucset -ag status-left "bar" 2092*0a6a1f1dSLionel Sambuc.Ed 2093*0a6a1f1dSLionel Sambuc.Pp 2094*0a6a1f1dSLionel SambucWill result in 2095*0a6a1f1dSLionel Sambuc.Ql foobar . 2096*0a6a1f1dSLionel SambucAnd: 2097*0a6a1f1dSLionel Sambuc.Bd -literal -offset indent 2098*0a6a1f1dSLionel Sambucset -g status-style "bg=red" 2099*0a6a1f1dSLionel Sambucset -ag status-style "fg=blue" 2100*0a6a1f1dSLionel Sambuc.Ed 2101*0a6a1f1dSLionel Sambuc.Pp 2102*0a6a1f1dSLionel SambucWill result in a red background 2103*0a6a1f1dSLionel Sambuc.Em and 2104*0a6a1f1dSLionel Sambucblue foreground. 2105*0a6a1f1dSLionel SambucWithout 2106*0a6a1f1dSLionel Sambuc.Fl a , 2107*0a6a1f1dSLionel Sambucthe result would be the default background and a blue foreground. 2108*0a6a1f1dSLionel Sambuc.Pp 2109eda6f593SDavid van MoolenbroekAvailable window options are listed under 2110eda6f593SDavid van Moolenbroek.Ic set-window-option . 2111eda6f593SDavid van Moolenbroek.Pp 2112*0a6a1f1dSLionel Sambuc.Ar value 2113*0a6a1f1dSLionel Sambucdepends on the option and may be a number, a string, or a flag (on, off, or 2114*0a6a1f1dSLionel Sambucomitted to toggle). 2115*0a6a1f1dSLionel Sambuc.Pp 2116eda6f593SDavid van MoolenbroekAvailable server options are: 2117eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 2118eda6f593SDavid van Moolenbroek.It Ic buffer-limit Ar number 2119eda6f593SDavid van MoolenbroekSet the number of buffers; as new buffers are added to the top of the stack, 2120eda6f593SDavid van Moolenbroekold ones are removed from the bottom if necessary to maintain this maximum 2121eda6f593SDavid van Moolenbroeklength. 2122*0a6a1f1dSLionel Sambuc.It Ic escape-time Ar time 2123*0a6a1f1dSLionel SambucSet the time in milliseconds for which 2124*0a6a1f1dSLionel Sambuc.Nm 2125*0a6a1f1dSLionel Sambucwaits after an escape is input to determine if it is part of a function or meta 2126*0a6a1f1dSLionel Sambuckey sequences. 2127*0a6a1f1dSLionel SambucThe default is 500 milliseconds. 2128*0a6a1f1dSLionel Sambuc.It Xo Ic exit-unattached 2129*0a6a1f1dSLionel Sambuc.Op Ic on | off 2130*0a6a1f1dSLionel Sambuc.Xc 2131*0a6a1f1dSLionel SambucIf enabled, the server will exit when there are no attached clients. 2132*0a6a1f1dSLionel Sambuc.It Xo Ic focus-events 2133*0a6a1f1dSLionel Sambuc.Op Ic on | off 2134*0a6a1f1dSLionel Sambuc.Xc 2135*0a6a1f1dSLionel SambucWhen enabled, focus events are requested from the terminal if supported and 2136*0a6a1f1dSLionel Sambucpassed through to applications running in 2137*0a6a1f1dSLionel Sambuc.Nm . 2138*0a6a1f1dSLionel SambucAttached clients should be detached and attached again after changing this 2139*0a6a1f1dSLionel Sambucoption. 2140*0a6a1f1dSLionel Sambuc.It Xo Ic quiet 2141*0a6a1f1dSLionel Sambuc.Op Ic on | off 2142*0a6a1f1dSLionel Sambuc.Xc 2143*0a6a1f1dSLionel SambucEnable or disable the display of various informational messages (see also the 2144*0a6a1f1dSLionel Sambuc.Fl q 2145*0a6a1f1dSLionel Sambuccommand line flag). 2146eda6f593SDavid van Moolenbroek.It Xo Ic set-clipboard 2147eda6f593SDavid van Moolenbroek.Op Ic on | off 2148eda6f593SDavid van Moolenbroek.Xc 2149eda6f593SDavid van MoolenbroekAttempt to set the terminal clipboard content using the 2150eda6f593SDavid van Moolenbroek\ee]52;...\e007 2151eda6f593SDavid van Moolenbroek.Xr xterm 1 2152eda6f593SDavid van Moolenbroekescape sequences. 2153eda6f593SDavid van MoolenbroekThis option is on by default if there is an 2154eda6f593SDavid van Moolenbroek.Em \&Ms 2155eda6f593SDavid van Moolenbroekentry in the 2156eda6f593SDavid van Moolenbroek.Xr terminfo 5 2157eda6f593SDavid van Moolenbroekdescription for the client terminal. 2158eda6f593SDavid van MoolenbroekNote that this feature needs to be enabled in 2159eda6f593SDavid van Moolenbroek.Xr xterm 1 2160eda6f593SDavid van Moolenbroekby setting the resource: 2161eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 2162eda6f593SDavid van MoolenbroekdisallowedWindowOps: 20,21,SetXprop 2163eda6f593SDavid van Moolenbroek.Ed 2164eda6f593SDavid van Moolenbroek.Pp 2165eda6f593SDavid van MoolenbroekOr changing this property from the 2166eda6f593SDavid van Moolenbroek.Xr xterm 1 2167eda6f593SDavid van Moolenbroekinteractive menu when required. 2168eda6f593SDavid van Moolenbroek.El 2169eda6f593SDavid van Moolenbroek.Pp 2170eda6f593SDavid van MoolenbroekAvailable session options are: 2171eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 2172*0a6a1f1dSLionel Sambuc.It Ic assume-paste-time Ar milliseconds 2173*0a6a1f1dSLionel SambucIf keys are entered faster than one in 2174*0a6a1f1dSLionel Sambuc.Ar milliseconds , 2175*0a6a1f1dSLionel Sambucthey are assumed to have been pasted rather than typed and 2176*0a6a1f1dSLionel Sambuc.Nm 2177*0a6a1f1dSLionel Sambuckey bindings are not processed. 2178*0a6a1f1dSLionel SambucThe default is one millisecond and zero disables. 2179eda6f593SDavid van Moolenbroek.It Ic base-index Ar index 2180eda6f593SDavid van MoolenbroekSet the base index from which an unused index should be searched when a new 2181eda6f593SDavid van Moolenbroekwindow is created. 2182eda6f593SDavid van MoolenbroekThe default is zero. 2183eda6f593SDavid van Moolenbroek.It Xo Ic bell-action 2184eda6f593SDavid van Moolenbroek.Op Ic any | none | current 2185eda6f593SDavid van Moolenbroek.Xc 2186eda6f593SDavid van MoolenbroekSet action on window bell. 2187eda6f593SDavid van Moolenbroek.Ic any 2188eda6f593SDavid van Moolenbroekmeans a bell in any window linked to a session causes a bell in the current 2189eda6f593SDavid van Moolenbroekwindow of that session, 2190eda6f593SDavid van Moolenbroek.Ic none 2191eda6f593SDavid van Moolenbroekmeans all bells are ignored and 2192eda6f593SDavid van Moolenbroek.Ic current 2193*0a6a1f1dSLionel Sambucmeans only bells in windows other than the current window are ignored. 2194eda6f593SDavid van Moolenbroek.It Xo Ic bell-on-alert 2195eda6f593SDavid van Moolenbroek.Op Ic on | off 2196eda6f593SDavid van Moolenbroek.Xc 2197*0a6a1f1dSLionel SambucIf on, ring the terminal bell when an alert 2198eda6f593SDavid van Moolenbroekoccurs. 2199eda6f593SDavid van Moolenbroek.It Ic default-command Ar shell-command 2200eda6f593SDavid van MoolenbroekSet the command used for new windows (if not specified when the window is 2201eda6f593SDavid van Moolenbroekcreated) to 2202eda6f593SDavid van Moolenbroek.Ar shell-command , 2203eda6f593SDavid van Moolenbroekwhich may be any 2204eda6f593SDavid van Moolenbroek.Xr sh 1 2205eda6f593SDavid van Moolenbroekcommand. 2206eda6f593SDavid van MoolenbroekThe default is an empty string, which instructs 2207eda6f593SDavid van Moolenbroek.Nm 2208eda6f593SDavid van Moolenbroekto create a login shell using the value of the 2209eda6f593SDavid van Moolenbroek.Ic default-shell 2210eda6f593SDavid van Moolenbroekoption. 2211eda6f593SDavid van Moolenbroek.It Ic default-shell Ar path 2212eda6f593SDavid van MoolenbroekSpecify the default shell. 2213eda6f593SDavid van MoolenbroekThis is used as the login shell for new windows when the 2214eda6f593SDavid van Moolenbroek.Ic default-command 2215eda6f593SDavid van Moolenbroekoption is set to empty, and must be the full path of the executable. 2216eda6f593SDavid van MoolenbroekWhen started 2217eda6f593SDavid van Moolenbroek.Nm 2218eda6f593SDavid van Moolenbroektries to set a default value from the first suitable of the 2219eda6f593SDavid van Moolenbroek.Ev SHELL 2220eda6f593SDavid van Moolenbroekenvironment variable, the shell returned by 2221eda6f593SDavid van Moolenbroek.Xr getpwuid 3 , 2222eda6f593SDavid van Moolenbroekor 2223eda6f593SDavid van Moolenbroek.Pa /bin/sh . 2224eda6f593SDavid van MoolenbroekThis option should be configured when 2225eda6f593SDavid van Moolenbroek.Nm 2226eda6f593SDavid van Moolenbroekis used as a login shell. 2227eda6f593SDavid van Moolenbroek.It Ic default-terminal Ar terminal 2228eda6f593SDavid van MoolenbroekSet the default terminal for new windows created in this session - the 2229eda6f593SDavid van Moolenbroekdefault value of the 2230eda6f593SDavid van Moolenbroek.Ev TERM 2231eda6f593SDavid van Moolenbroekenvironment variable. 2232eda6f593SDavid van MoolenbroekFor 2233eda6f593SDavid van Moolenbroek.Nm 2234eda6f593SDavid van Moolenbroekto work correctly, this 2235eda6f593SDavid van Moolenbroek.Em must 2236eda6f593SDavid van Moolenbroekbe set to 2237eda6f593SDavid van Moolenbroek.Ql screen 2238eda6f593SDavid van Moolenbroekor a derivative of it. 2239eda6f593SDavid van Moolenbroek.It Xo Ic destroy-unattached 2240eda6f593SDavid van Moolenbroek.Op Ic on | off 2241eda6f593SDavid van Moolenbroek.Xc 2242eda6f593SDavid van MoolenbroekIf enabled and the session is no longer attached to any clients, it is 2243eda6f593SDavid van Moolenbroekdestroyed. 2244eda6f593SDavid van Moolenbroek.It Xo Ic detach-on-destroy 2245eda6f593SDavid van Moolenbroek.Op Ic on | off 2246eda6f593SDavid van Moolenbroek.Xc 2247eda6f593SDavid van MoolenbroekIf on (the default), the client is detached when the session it is attached to 2248eda6f593SDavid van Moolenbroekis destroyed. 2249eda6f593SDavid van MoolenbroekIf off, the client is switched to the most recently active of the remaining 2250eda6f593SDavid van Moolenbroeksessions. 2251eda6f593SDavid van Moolenbroek.It Ic display-panes-active-colour Ar colour 2252eda6f593SDavid van MoolenbroekSet the colour used by the 2253eda6f593SDavid van Moolenbroek.Ic display-panes 2254eda6f593SDavid van Moolenbroekcommand to show the indicator for the active pane. 2255eda6f593SDavid van Moolenbroek.It Ic display-panes-colour Ar colour 2256eda6f593SDavid van MoolenbroekSet the colour used by the 2257eda6f593SDavid van Moolenbroek.Ic display-panes 2258eda6f593SDavid van Moolenbroekcommand to show the indicators for inactive panes. 2259eda6f593SDavid van Moolenbroek.It Ic display-panes-time Ar time 2260eda6f593SDavid van MoolenbroekSet the time in milliseconds for which the indicators shown by the 2261eda6f593SDavid van Moolenbroek.Ic display-panes 2262eda6f593SDavid van Moolenbroekcommand appear. 2263eda6f593SDavid van Moolenbroek.It Ic display-time Ar time 2264eda6f593SDavid van MoolenbroekSet the amount of time for which status line messages and other on-screen 2265eda6f593SDavid van Moolenbroekindicators are displayed. 2266eda6f593SDavid van Moolenbroek.Ar time 2267eda6f593SDavid van Moolenbroekis in milliseconds. 2268eda6f593SDavid van Moolenbroek.It Ic history-limit Ar lines 2269eda6f593SDavid van MoolenbroekSet the maximum number of lines held in window history. 2270eda6f593SDavid van MoolenbroekThis setting applies only to new windows - existing window histories are not 2271eda6f593SDavid van Moolenbroekresized and retain the limit at the point they were created. 2272eda6f593SDavid van Moolenbroek.It Ic lock-after-time Ar number 2273eda6f593SDavid van MoolenbroekLock the session (like the 2274eda6f593SDavid van Moolenbroek.Ic lock-session 2275eda6f593SDavid van Moolenbroekcommand) after 2276eda6f593SDavid van Moolenbroek.Ar number 2277eda6f593SDavid van Moolenbroekseconds of inactivity, or the entire server (all sessions) if the 2278eda6f593SDavid van Moolenbroek.Ic lock-server 2279eda6f593SDavid van Moolenbroekoption is set. 2280eda6f593SDavid van MoolenbroekThe default is not to lock (set to 0). 2281eda6f593SDavid van Moolenbroek.It Ic lock-command Ar shell-command 2282eda6f593SDavid van MoolenbroekCommand to run when locking each client. 2283eda6f593SDavid van MoolenbroekThe default is to run 2284eda6f593SDavid van Moolenbroek.Xr lock 1 2285eda6f593SDavid van Moolenbroekwith 2286eda6f593SDavid van Moolenbroek.Fl np . 2287eda6f593SDavid van Moolenbroek.It Xo Ic lock-server 2288eda6f593SDavid van Moolenbroek.Op Ic on | off 2289eda6f593SDavid van Moolenbroek.Xc 2290eda6f593SDavid van MoolenbroekIf this option is 2291eda6f593SDavid van Moolenbroek.Ic on 2292eda6f593SDavid van Moolenbroek(the default), 2293eda6f593SDavid van Moolenbroekinstead of each session locking individually as each has been 2294eda6f593SDavid van Moolenbroekidle for 2295eda6f593SDavid van Moolenbroek.Ic lock-after-time , 2296eda6f593SDavid van Moolenbroekthe entire server will lock after 2297eda6f593SDavid van Moolenbroek.Em all 2298eda6f593SDavid van Moolenbroeksessions would have locked. 2299eda6f593SDavid van MoolenbroekThis has no effect as a session option; it must be set as a global option. 2300*0a6a1f1dSLionel Sambuc.It Ic message-command-style Ar style 2301*0a6a1f1dSLionel SambucSet status line message command style, where 2302*0a6a1f1dSLionel Sambuc.Ar style 2303*0a6a1f1dSLionel Sambucis a comma-separated list of characteristics to be specified. 2304*0a6a1f1dSLionel Sambuc.Pp 2305*0a6a1f1dSLionel SambucThese may be 2306*0a6a1f1dSLionel Sambuc.Ql bg=colour 2307*0a6a1f1dSLionel Sambucto set the background colour, 2308*0a6a1f1dSLionel Sambuc.Ql fg=colour 2309*0a6a1f1dSLionel Sambucto set the foreground colour, and a list of attributes as specified below. 2310*0a6a1f1dSLionel Sambuc.Pp 2311*0a6a1f1dSLionel SambucThe colour is one of: 2312*0a6a1f1dSLionel Sambuc.Ic black , 2313*0a6a1f1dSLionel Sambuc.Ic red , 2314*0a6a1f1dSLionel Sambuc.Ic green , 2315*0a6a1f1dSLionel Sambuc.Ic yellow , 2316*0a6a1f1dSLionel Sambuc.Ic blue , 2317*0a6a1f1dSLionel Sambuc.Ic magenta , 2318*0a6a1f1dSLionel Sambuc.Ic cyan , 2319*0a6a1f1dSLionel Sambuc.Ic white , 2320*0a6a1f1dSLionel Sambucaixterm bright variants (if supported: 2321*0a6a1f1dSLionel Sambuc.Ic brightred , 2322*0a6a1f1dSLionel Sambuc.Ic brightgreen , 2323*0a6a1f1dSLionel Sambucand so on), 2324*0a6a1f1dSLionel Sambuc.Ic colour0 2325*0a6a1f1dSLionel Sambucto 2326*0a6a1f1dSLionel Sambuc.Ic colour255 2327*0a6a1f1dSLionel Sambucfrom the 256-colour set, 2328*0a6a1f1dSLionel Sambuc.Ic default , 2329*0a6a1f1dSLionel Sambucor a hexadecimal RGB string such as 2330*0a6a1f1dSLionel Sambuc.Ql #ffffff , 2331*0a6a1f1dSLionel Sambucwhich chooses the closest match from the default 256-colour set. 2332*0a6a1f1dSLionel Sambuc.Pp 2333*0a6a1f1dSLionel SambucThe attributes is either 2334eda6f593SDavid van Moolenbroek.Ic none 2335eda6f593SDavid van Moolenbroekor a comma-delimited list of one or more of: 2336eda6f593SDavid van Moolenbroek.Ic bright 2337eda6f593SDavid van Moolenbroek(or 2338eda6f593SDavid van Moolenbroek.Ic bold ) , 2339eda6f593SDavid van Moolenbroek.Ic dim , 2340eda6f593SDavid van Moolenbroek.Ic underscore , 2341eda6f593SDavid van Moolenbroek.Ic blink , 2342eda6f593SDavid van Moolenbroek.Ic reverse , 2343eda6f593SDavid van Moolenbroek.Ic hidden , 2344eda6f593SDavid van Moolenbroekor 2345*0a6a1f1dSLionel Sambuc.Ic italics , 2346*0a6a1f1dSLionel Sambucto turn an attribute on, or an attribute prefixed with 2347*0a6a1f1dSLionel Sambuc.Ql no 2348*0a6a1f1dSLionel Sambucto turn one off. 2349*0a6a1f1dSLionel Sambuc.Pp 2350*0a6a1f1dSLionel SambucExamples are: 2351*0a6a1f1dSLionel Sambuc.Bd -literal -offset indent 2352*0a6a1f1dSLionel Sambucfg=yellow,bold,underscore,blink 2353*0a6a1f1dSLionel Sambucbg=black,fg=default,noreverse 2354*0a6a1f1dSLionel Sambuc.Ed 2355*0a6a1f1dSLionel Sambuc.Pp 2356*0a6a1f1dSLionel SambucWith the 2357*0a6a1f1dSLionel Sambuc.Fl a 2358*0a6a1f1dSLionel Sambucflag to the 2359*0a6a1f1dSLionel Sambuc.Ic set-option 2360*0a6a1f1dSLionel Sambuccommand the new style is added otherwise the existing style is replaced. 2361eda6f593SDavid van Moolenbroek.It Ic message-limit Ar number 2362eda6f593SDavid van MoolenbroekSet the number of error or information messages to save in the message log for 2363eda6f593SDavid van Moolenbroekeach client. 2364eda6f593SDavid van MoolenbroekThe default is 20. 2365*0a6a1f1dSLionel Sambuc.It Ic message-style Ar style 2366*0a6a1f1dSLionel SambucSet status line message style. 2367*0a6a1f1dSLionel SambucFor how to specify 2368*0a6a1f1dSLionel Sambuc.Ar style , 2369*0a6a1f1dSLionel Sambucsee the 2370*0a6a1f1dSLionel Sambuc.Ic message-command-style 2371*0a6a1f1dSLionel Sambucoption. 2372eda6f593SDavid van Moolenbroek.It Xo Ic mouse-resize-pane 2373eda6f593SDavid van Moolenbroek.Op Ic on | off 2374eda6f593SDavid van Moolenbroek.Xc 2375eda6f593SDavid van MoolenbroekIf on, 2376eda6f593SDavid van Moolenbroek.Nm 2377eda6f593SDavid van Moolenbroekcaptures the mouse and allows panes to be resized by dragging on their borders. 2378eda6f593SDavid van Moolenbroek.It Xo Ic mouse-select-pane 2379eda6f593SDavid van Moolenbroek.Op Ic on | off 2380eda6f593SDavid van Moolenbroek.Xc 2381eda6f593SDavid van MoolenbroekIf on, 2382eda6f593SDavid van Moolenbroek.Nm 2383eda6f593SDavid van Moolenbroekcaptures the mouse and when a window is split into multiple panes the mouse may 2384eda6f593SDavid van Moolenbroekbe used to select the current pane. 2385eda6f593SDavid van MoolenbroekThe mouse click is also passed through to the application as normal. 2386eda6f593SDavid van Moolenbroek.It Xo Ic mouse-select-window 2387eda6f593SDavid van Moolenbroek.Op Ic on | off 2388eda6f593SDavid van Moolenbroek.Xc 2389eda6f593SDavid van MoolenbroekIf on, clicking the mouse on a window name in the status line will select that 2390eda6f593SDavid van Moolenbroekwindow. 2391*0a6a1f1dSLionel Sambuc.It Xo Ic mouse-utf8 2392*0a6a1f1dSLionel Sambuc.Op Ic on | off 2393*0a6a1f1dSLionel Sambuc.Xc 2394*0a6a1f1dSLionel SambucIf enabled, request mouse input as UTF-8 on UTF-8 terminals. 2395*0a6a1f1dSLionel Sambuc.It Ic pane-active-border-style Ar style 2396*0a6a1f1dSLionel SambucSet the pane border style for the currently active pane. 2397*0a6a1f1dSLionel SambucFor how to specify 2398*0a6a1f1dSLionel Sambuc.Ar style , 2399*0a6a1f1dSLionel Sambucsee the 2400*0a6a1f1dSLionel Sambuc.Ic message-command-style 2401*0a6a1f1dSLionel Sambucoption. 2402*0a6a1f1dSLionel SambucAttributes are ignored. 2403*0a6a1f1dSLionel Sambuc.It Ic pane-border-style Ar style 2404*0a6a1f1dSLionel SambucSet the pane border style for paneas aside from the active pane. 2405*0a6a1f1dSLionel SambucFor how to specify 2406*0a6a1f1dSLionel Sambuc.Ar style , 2407*0a6a1f1dSLionel Sambucsee the 2408*0a6a1f1dSLionel Sambuc.Ic message-command-style 2409*0a6a1f1dSLionel Sambucoption. 2410*0a6a1f1dSLionel SambucAttributes are ignored. 2411*0a6a1f1dSLionel Sambuc.It Ic prefix Ar key 2412*0a6a1f1dSLionel SambucSet the key accepted as a prefix key. 2413*0a6a1f1dSLionel Sambuc.It Ic prefix2 Ar key 2414*0a6a1f1dSLionel SambucSet a secondary key accepted as a prefix key. 2415*0a6a1f1dSLionel Sambuc.It Xo Ic renumber-windows 2416*0a6a1f1dSLionel Sambuc.Op Ic on | off 2417*0a6a1f1dSLionel Sambuc.Xc 2418*0a6a1f1dSLionel SambucIf on, when a window is closed in a session, automatically renumber the other 2419*0a6a1f1dSLionel Sambucwindows in numerical order. 2420*0a6a1f1dSLionel SambucThis respects the 2421*0a6a1f1dSLionel Sambuc.Ic base-index 2422*0a6a1f1dSLionel Sambucoption if it has been set. 2423*0a6a1f1dSLionel SambucIf off, do not renumber the windows. 2424eda6f593SDavid van Moolenbroek.It Ic repeat-time Ar time 2425eda6f593SDavid van MoolenbroekAllow multiple commands to be entered without pressing the prefix-key again 2426eda6f593SDavid van Moolenbroekin the specified 2427eda6f593SDavid van Moolenbroek.Ar time 2428eda6f593SDavid van Moolenbroekmilliseconds (the default is 500). 2429eda6f593SDavid van MoolenbroekWhether a key repeats may be set when it is bound using the 2430eda6f593SDavid van Moolenbroek.Fl r 2431eda6f593SDavid van Moolenbroekflag to 2432eda6f593SDavid van Moolenbroek.Ic bind-key . 2433eda6f593SDavid van MoolenbroekRepeat is enabled for the default keys bound to the 2434eda6f593SDavid van Moolenbroek.Ic resize-pane 2435eda6f593SDavid van Moolenbroekcommand. 2436eda6f593SDavid van Moolenbroek.It Xo Ic set-remain-on-exit 2437eda6f593SDavid van Moolenbroek.Op Ic on | off 2438eda6f593SDavid van Moolenbroek.Xc 2439eda6f593SDavid van MoolenbroekSet the 2440eda6f593SDavid van Moolenbroek.Ic remain-on-exit 2441eda6f593SDavid van Moolenbroekwindow option for any windows first created in this session. 2442eda6f593SDavid van MoolenbroekWhen this option is true, windows in which the running program has 2443eda6f593SDavid van Moolenbroekexited do not close, instead remaining open but inactivate. 2444eda6f593SDavid van MoolenbroekUse the 2445eda6f593SDavid van Moolenbroek.Ic respawn-window 2446eda6f593SDavid van Moolenbroekcommand to reactivate such a window, or the 2447eda6f593SDavid van Moolenbroek.Ic kill-window 2448eda6f593SDavid van Moolenbroekcommand to destroy it. 2449eda6f593SDavid van Moolenbroek.It Xo Ic set-titles 2450eda6f593SDavid van Moolenbroek.Op Ic on | off 2451eda6f593SDavid van Moolenbroek.Xc 2452*0a6a1f1dSLionel SambucAttempt to set the client terminal title using the 2453*0a6a1f1dSLionel Sambuc.Em tsl 2454*0a6a1f1dSLionel Sambucand 2455*0a6a1f1dSLionel Sambuc.Em fsl 2456*0a6a1f1dSLionel Sambuc.Xr terminfo 5 2457*0a6a1f1dSLionel Sambucentries if they exist. 2458*0a6a1f1dSLionel Sambuc.Nm 2459*0a6a1f1dSLionel Sambucautomatically sets these to the \ee]2;...\e007 sequence if 2460eda6f593SDavid van Moolenbroekthe terminal appears to be an xterm. 2461eda6f593SDavid van MoolenbroekThis option is off by default. 2462eda6f593SDavid van MoolenbroekNote that elinks 2463eda6f593SDavid van Moolenbroekwill only attempt to set the window title if the STY environment 2464eda6f593SDavid van Moolenbroekvariable is set. 2465eda6f593SDavid van Moolenbroek.It Ic set-titles-string Ar string 2466eda6f593SDavid van MoolenbroekString used to set the window title if 2467eda6f593SDavid van Moolenbroek.Ic set-titles 2468eda6f593SDavid van Moolenbroekis on. 2469eda6f593SDavid van MoolenbroekCharacter sequences are replaced as for the 2470eda6f593SDavid van Moolenbroek.Ic status-left 2471eda6f593SDavid van Moolenbroekoption. 2472eda6f593SDavid van Moolenbroek.It Xo Ic status 2473eda6f593SDavid van Moolenbroek.Op Ic on | off 2474eda6f593SDavid van Moolenbroek.Xc 2475eda6f593SDavid van MoolenbroekShow or hide the status line. 2476eda6f593SDavid van Moolenbroek.It Ic status-interval Ar interval 2477eda6f593SDavid van MoolenbroekUpdate the status bar every 2478eda6f593SDavid van Moolenbroek.Ar interval 2479eda6f593SDavid van Moolenbroekseconds. 2480eda6f593SDavid van MoolenbroekBy default, updates will occur every 15 seconds. 2481eda6f593SDavid van MoolenbroekA setting of zero disables redrawing at interval. 2482eda6f593SDavid van Moolenbroek.It Xo Ic status-justify 2483eda6f593SDavid van Moolenbroek.Op Ic left | centre | right 2484eda6f593SDavid van Moolenbroek.Xc 2485eda6f593SDavid van MoolenbroekSet the position of the window list component of the status line: left, centre 2486eda6f593SDavid van Moolenbroekor right justified. 2487eda6f593SDavid van Moolenbroek.It Xo Ic status-keys 2488eda6f593SDavid van Moolenbroek.Op Ic vi | emacs 2489eda6f593SDavid van Moolenbroek.Xc 2490eda6f593SDavid van MoolenbroekUse vi or emacs-style 2491eda6f593SDavid van Moolenbroekkey bindings in the status line, for example at the command prompt. 2492eda6f593SDavid van MoolenbroekThe default is emacs, unless the 2493eda6f593SDavid van Moolenbroek.Ev VISUAL 2494eda6f593SDavid van Moolenbroekor 2495eda6f593SDavid van Moolenbroek.Ev EDITOR 2496eda6f593SDavid van Moolenbroekenvironment variables are set and contain the string 2497eda6f593SDavid van Moolenbroek.Ql vi . 2498eda6f593SDavid van Moolenbroek.It Ic status-left Ar string 2499eda6f593SDavid van MoolenbroekDisplay 2500eda6f593SDavid van Moolenbroek.Ar string 2501*0a6a1f1dSLionel Sambuc(by default the session name) to the left of the status bar. 2502eda6f593SDavid van Moolenbroek.Ar string 2503eda6f593SDavid van Moolenbroekwill be passed through 2504eda6f593SDavid van Moolenbroek.Xr strftime 3 2505*0a6a1f1dSLionel Sambucand formats (see 2506*0a6a1f1dSLionel Sambuc.Sx FORMATS ) 2507*0a6a1f1dSLionel Sambucwill be expanded. 2508*0a6a1f1dSLionel SambucIt may also contain any of the following special character sequences: 2509eda6f593SDavid van Moolenbroek.Bl -column "Character pair" "Replaced with" -offset indent 2510eda6f593SDavid van Moolenbroek.It Sy "Character pair" Ta Sy "Replaced with" 2511eda6f593SDavid van Moolenbroek.It Li "#(shell-command)" Ta "First line of the command's output" 2512eda6f593SDavid van Moolenbroek.It Li "#[attributes]" Ta "Colour or attribute change" 2513eda6f593SDavid van Moolenbroek.It Li "##" Ta "A literal" Ql # 2514eda6f593SDavid van Moolenbroek.El 2515eda6f593SDavid van Moolenbroek.Pp 2516eda6f593SDavid van MoolenbroekThe #(shell-command) form executes 2517eda6f593SDavid van Moolenbroek.Ql shell-command 2518eda6f593SDavid van Moolenbroekand inserts the first line of its output. 2519eda6f593SDavid van MoolenbroekNote that shell commands are only executed once at the interval specified by 2520eda6f593SDavid van Moolenbroekthe 2521eda6f593SDavid van Moolenbroek.Ic status-interval 2522eda6f593SDavid van Moolenbroekoption: if the status line is redrawn in the meantime, the previous result is 2523eda6f593SDavid van Moolenbroekused. 2524eda6f593SDavid van MoolenbroekShell commands are executed with the 2525eda6f593SDavid van Moolenbroek.Nm 2526eda6f593SDavid van Moolenbroekglobal environment set (see the 2527eda6f593SDavid van Moolenbroek.Sx ENVIRONMENT 2528eda6f593SDavid van Moolenbroeksection). 2529eda6f593SDavid van Moolenbroek.Pp 2530*0a6a1f1dSLionel SambucFor details on how the names and titles can be set see the 2531*0a6a1f1dSLionel Sambuc.Sx "NAMES AND TITLES" 2532*0a6a1f1dSLionel Sambucsection. 2533*0a6a1f1dSLionel SambucFor a list of allowed attributes see the 2534*0a6a1f1dSLionel Sambuc.Ic message-command-style 2535*0a6a1f1dSLionel Sambucoption. 2536eda6f593SDavid van Moolenbroek.Pp 2537eda6f593SDavid van MoolenbroekExamples are: 2538eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 2539eda6f593SDavid van Moolenbroek#(sysctl vm.loadavg) 2540eda6f593SDavid van Moolenbroek#[fg=yellow,bold]#(apm -l)%%#[default] [#S] 2541eda6f593SDavid van Moolenbroek.Ed 2542eda6f593SDavid van Moolenbroek.Pp 2543eda6f593SDavid van MoolenbroekWhere appropriate, special character sequences may be prefixed with a number to 2544eda6f593SDavid van Moolenbroekspecify the maximum length, for example 2545eda6f593SDavid van Moolenbroek.Ql #24T . 2546eda6f593SDavid van Moolenbroek.Pp 2547eda6f593SDavid van MoolenbroekBy default, UTF-8 in 2548eda6f593SDavid van Moolenbroek.Ar string 2549eda6f593SDavid van Moolenbroekis not interpreted, to enable UTF-8, use the 2550eda6f593SDavid van Moolenbroek.Ic status-utf8 2551eda6f593SDavid van Moolenbroekoption. 2552eda6f593SDavid van Moolenbroek.It Ic status-left-length Ar length 2553eda6f593SDavid van MoolenbroekSet the maximum 2554eda6f593SDavid van Moolenbroek.Ar length 2555eda6f593SDavid van Moolenbroekof the left component of the status bar. 2556eda6f593SDavid van MoolenbroekThe default is 10. 2557*0a6a1f1dSLionel Sambuc.It Ic status-left-style Ar style 2558*0a6a1f1dSLionel SambucSet the style of the left part of the status line. 2559*0a6a1f1dSLionel SambucFor how to specify 2560*0a6a1f1dSLionel Sambuc.Ar style , 2561*0a6a1f1dSLionel Sambucsee the 2562*0a6a1f1dSLionel Sambuc.Ic message-command-style 2563*0a6a1f1dSLionel Sambucoption. 2564*0a6a1f1dSLionel Sambuc.It Xo Ic status-position 2565*0a6a1f1dSLionel Sambuc.Op Ic top | bottom 2566*0a6a1f1dSLionel Sambuc.Xc 2567*0a6a1f1dSLionel SambucSet the position of the status line. 2568eda6f593SDavid van Moolenbroek.It Ic status-right Ar string 2569eda6f593SDavid van MoolenbroekDisplay 2570eda6f593SDavid van Moolenbroek.Ar string 2571eda6f593SDavid van Moolenbroekto the right of the status bar. 2572eda6f593SDavid van MoolenbroekBy default, the current window title in double quotes, the date and the time 2573eda6f593SDavid van Moolenbroekare shown. 2574eda6f593SDavid van MoolenbroekAs with 2575eda6f593SDavid van Moolenbroek.Ic status-left , 2576eda6f593SDavid van Moolenbroek.Ar string 2577eda6f593SDavid van Moolenbroekwill be passed to 2578eda6f593SDavid van Moolenbroek.Xr strftime 3 , 2579eda6f593SDavid van Moolenbroekcharacter pairs are replaced, and UTF-8 is dependent on the 2580eda6f593SDavid van Moolenbroek.Ic status-utf8 2581eda6f593SDavid van Moolenbroekoption. 2582eda6f593SDavid van Moolenbroek.It Ic status-right-length Ar length 2583eda6f593SDavid van MoolenbroekSet the maximum 2584eda6f593SDavid van Moolenbroek.Ar length 2585eda6f593SDavid van Moolenbroekof the right component of the status bar. 2586eda6f593SDavid van MoolenbroekThe default is 40. 2587*0a6a1f1dSLionel Sambuc.It Ic status-right-style Ar style 2588*0a6a1f1dSLionel SambucSet the style of the right part of the status line. 2589*0a6a1f1dSLionel SambucFor how to specify 2590*0a6a1f1dSLionel Sambuc.Ar style , 2591*0a6a1f1dSLionel Sambucsee the 2592*0a6a1f1dSLionel Sambuc.Ic message-command-style 2593*0a6a1f1dSLionel Sambucoption. 2594*0a6a1f1dSLionel Sambuc.It Ic status-style Ar style 2595*0a6a1f1dSLionel SambucSet status line style. 2596*0a6a1f1dSLionel SambucFor how to specify 2597*0a6a1f1dSLionel Sambuc.Ar style , 2598*0a6a1f1dSLionel Sambucsee the 2599*0a6a1f1dSLionel Sambuc.Ic message-command-style 2600*0a6a1f1dSLionel Sambucoption. 2601eda6f593SDavid van Moolenbroek.It Xo Ic status-utf8 2602eda6f593SDavid van Moolenbroek.Op Ic on | off 2603eda6f593SDavid van Moolenbroek.Xc 2604eda6f593SDavid van MoolenbroekInstruct 2605eda6f593SDavid van Moolenbroek.Nm 2606eda6f593SDavid van Moolenbroekto treat top-bit-set characters in the 2607eda6f593SDavid van Moolenbroek.Ic status-left 2608eda6f593SDavid van Moolenbroekand 2609eda6f593SDavid van Moolenbroek.Ic status-right 2610eda6f593SDavid van Moolenbroekstrings as UTF-8; notably, this is important for wide characters. 2611eda6f593SDavid van MoolenbroekThis option defaults to off. 2612eda6f593SDavid van Moolenbroek.It Ic terminal-overrides Ar string 2613eda6f593SDavid van MoolenbroekContains a list of entries which override terminal descriptions read using 2614eda6f593SDavid van Moolenbroek.Xr terminfo 5 . 2615eda6f593SDavid van Moolenbroek.Ar string 2616eda6f593SDavid van Moolenbroekis a comma-separated list of items each a colon-separated string made up of a 2617eda6f593SDavid van Moolenbroekterminal type pattern (matched using 2618eda6f593SDavid van Moolenbroek.Xr fnmatch 3 ) 2619eda6f593SDavid van Moolenbroekand a set of 2620eda6f593SDavid van Moolenbroek.Em name=value 2621eda6f593SDavid van Moolenbroekentries. 2622eda6f593SDavid van Moolenbroek.Pp 2623eda6f593SDavid van MoolenbroekFor example, to set the 2624eda6f593SDavid van Moolenbroek.Ql clear 2625eda6f593SDavid van Moolenbroek.Xr terminfo 5 2626eda6f593SDavid van Moolenbroekentry to 2627eda6f593SDavid van Moolenbroek.Ql \ee[H\ee[2J 2628eda6f593SDavid van Moolenbroekfor all terminal types and the 2629eda6f593SDavid van Moolenbroek.Ql dch1 2630eda6f593SDavid van Moolenbroekentry to 2631eda6f593SDavid van Moolenbroek.Ql \ee[P 2632eda6f593SDavid van Moolenbroekfor the 2633eda6f593SDavid van Moolenbroek.Ql rxvt 2634eda6f593SDavid van Moolenbroekterminal type, the option could be set to the string: 2635eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 2636eda6f593SDavid van Moolenbroek"*:clear=\ee[H\ee[2J,rxvt:dch1=\ee[P" 2637eda6f593SDavid van Moolenbroek.Ed 2638eda6f593SDavid van Moolenbroek.Pp 2639eda6f593SDavid van MoolenbroekThe terminal entry value is passed through 2640eda6f593SDavid van Moolenbroek.Xr strunvis 3 2641eda6f593SDavid van Moolenbroekbefore interpretation. 2642eda6f593SDavid van MoolenbroekThe default value forcibly corrects the 2643eda6f593SDavid van Moolenbroek.Ql colors 2644*0a6a1f1dSLionel Sambucentry for terminals which support 256 colours: 2645eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 2646*0a6a1f1dSLionel Sambuc"*256col*:colors=256,xterm*:XT" 2647eda6f593SDavid van Moolenbroek.Ed 2648eda6f593SDavid van Moolenbroek.It Ic update-environment Ar variables 2649eda6f593SDavid van MoolenbroekSet a space-separated string containing a list of environment variables to be 2650eda6f593SDavid van Moolenbroekcopied into the session environment when a new session is created or an 2651eda6f593SDavid van Moolenbroekexisting session is attached. 2652eda6f593SDavid van MoolenbroekAny variables that do not exist in the source environment are set to be 2653eda6f593SDavid van Moolenbroekremoved from the session environment (as if 2654eda6f593SDavid van Moolenbroek.Fl r 2655eda6f593SDavid van Moolenbroekwas given to the 2656eda6f593SDavid van Moolenbroek.Ic set-environment 2657eda6f593SDavid van Moolenbroekcommand). 2658eda6f593SDavid van MoolenbroekThe default is 2659eda6f593SDavid van Moolenbroek"DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID 2660eda6f593SDavid van MoolenbroekXAUTHORITY". 2661eda6f593SDavid van Moolenbroek.It Xo Ic visual-activity 2662eda6f593SDavid van Moolenbroek.Op Ic on | off 2663eda6f593SDavid van Moolenbroek.Xc 2664eda6f593SDavid van MoolenbroekIf on, display a status line message when activity occurs in a window 2665eda6f593SDavid van Moolenbroekfor which the 2666eda6f593SDavid van Moolenbroek.Ic monitor-activity 2667eda6f593SDavid van Moolenbroekwindow option is enabled. 2668eda6f593SDavid van Moolenbroek.It Xo Ic visual-bell 2669eda6f593SDavid van Moolenbroek.Op Ic on | off 2670eda6f593SDavid van Moolenbroek.Xc 2671eda6f593SDavid van MoolenbroekIf this option is on, a message is shown on a bell instead of it being passed 2672eda6f593SDavid van Moolenbroekthrough to the terminal (which normally makes a sound). 2673eda6f593SDavid van MoolenbroekAlso see the 2674eda6f593SDavid van Moolenbroek.Ic bell-action 2675eda6f593SDavid van Moolenbroekoption. 2676eda6f593SDavid van Moolenbroek.It Xo Ic visual-content 2677eda6f593SDavid van Moolenbroek.Op Ic on | off 2678eda6f593SDavid van Moolenbroek.Xc 2679eda6f593SDavid van MoolenbroekLike 2680eda6f593SDavid van Moolenbroek.Ic visual-activity , 2681eda6f593SDavid van Moolenbroekdisplay a message when content is present in a window 2682eda6f593SDavid van Moolenbroekfor which the 2683eda6f593SDavid van Moolenbroek.Ic monitor-content 2684eda6f593SDavid van Moolenbroekwindow option is enabled. 2685eda6f593SDavid van Moolenbroek.It Xo Ic visual-silence 2686eda6f593SDavid van Moolenbroek.Op Ic on | off 2687eda6f593SDavid van Moolenbroek.Xc 2688eda6f593SDavid van MoolenbroekIf 2689eda6f593SDavid van Moolenbroek.Ic monitor-silence 2690eda6f593SDavid van Moolenbroekis enabled, prints a message after the interval has expired on a given window. 2691*0a6a1f1dSLionel Sambuc.It Ic word-separators Ar string 2692*0a6a1f1dSLionel SambucSets the session's conception of what characters are considered word 2693*0a6a1f1dSLionel Sambucseparators, for the purposes of the next and previous word commands in 2694*0a6a1f1dSLionel Sambuccopy mode. 2695*0a6a1f1dSLionel SambucThe default is 2696*0a6a1f1dSLionel Sambuc.Ql \ -_@ . 2697eda6f593SDavid van Moolenbroek.El 2698eda6f593SDavid van Moolenbroek.It Xo Ic set-window-option 2699*0a6a1f1dSLionel Sambuc.Op Fl agoqu 2700eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 2701eda6f593SDavid van Moolenbroek.Ar option Ar value 2702eda6f593SDavid van Moolenbroek.Xc 2703eda6f593SDavid van Moolenbroek.D1 (alias: Ic setw ) 2704eda6f593SDavid van MoolenbroekSet a window option. 2705eda6f593SDavid van MoolenbroekThe 2706eda6f593SDavid van Moolenbroek.Fl a , 2707*0a6a1f1dSLionel Sambuc.Fl g , 2708*0a6a1f1dSLionel Sambuc.Fl o , 2709*0a6a1f1dSLionel Sambuc.Fl q 2710eda6f593SDavid van Moolenbroekand 2711eda6f593SDavid van Moolenbroek.Fl u 2712eda6f593SDavid van Moolenbroekflags work similarly to the 2713eda6f593SDavid van Moolenbroek.Ic set-option 2714eda6f593SDavid van Moolenbroekcommand. 2715eda6f593SDavid van Moolenbroek.Pp 2716eda6f593SDavid van MoolenbroekSupported window options are: 2717eda6f593SDavid van Moolenbroek.Pp 2718eda6f593SDavid van Moolenbroek.Bl -tag -width Ds -compact 2719eda6f593SDavid van Moolenbroek.It Xo Ic aggressive-resize 2720eda6f593SDavid van Moolenbroek.Op Ic on | off 2721eda6f593SDavid van Moolenbroek.Xc 2722eda6f593SDavid van MoolenbroekAggressively resize the chosen window. 2723eda6f593SDavid van MoolenbroekThis means that 2724eda6f593SDavid van Moolenbroek.Nm 2725eda6f593SDavid van Moolenbroekwill resize the window to the size of the smallest session for which it is the 2726eda6f593SDavid van Moolenbroekcurrent window, rather than the smallest session to which it is attached. 2727eda6f593SDavid van MoolenbroekThe window may resize when the current window is changed on another sessions; 2728eda6f593SDavid van Moolenbroekthis option is good for full-screen programs which support 2729eda6f593SDavid van Moolenbroek.Dv SIGWINCH 2730eda6f593SDavid van Moolenbroekand poor for interactive programs such as shells. 2731eda6f593SDavid van Moolenbroek.Pp 2732*0a6a1f1dSLionel Sambuc.It Xo Ic allow-rename 2733*0a6a1f1dSLionel Sambuc.Op Ic on | off 2734*0a6a1f1dSLionel Sambuc.Xc 2735*0a6a1f1dSLionel SambucAllow programs to change the window name using a terminal escape 2736*0a6a1f1dSLionel Sambucsequence (\\033k...\\033\\\\). 2737*0a6a1f1dSLionel SambucThe default is on. 2738*0a6a1f1dSLionel Sambuc.Pp 2739eda6f593SDavid van Moolenbroek.It Xo Ic alternate-screen 2740eda6f593SDavid van Moolenbroek.Op Ic on | off 2741eda6f593SDavid van Moolenbroek.Xc 2742eda6f593SDavid van MoolenbroekThis option configures whether programs running inside 2743eda6f593SDavid van Moolenbroek.Nm 2744eda6f593SDavid van Moolenbroekmay use the terminal alternate screen feature, which allows the 2745eda6f593SDavid van Moolenbroek.Em smcup 2746eda6f593SDavid van Moolenbroekand 2747eda6f593SDavid van Moolenbroek.Em rmcup 2748eda6f593SDavid van Moolenbroek.Xr terminfo 5 2749eda6f593SDavid van Moolenbroekcapabilities. 2750eda6f593SDavid van MoolenbroekThe alternate screen feature preserves the contents of the window when an 2751eda6f593SDavid van Moolenbroekinteractive application starts and restores it on exit, so that any output 2752eda6f593SDavid van Moolenbroekvisible before the application starts reappears unchanged after it exits. 2753eda6f593SDavid van MoolenbroekThe default is on. 2754eda6f593SDavid van Moolenbroek.Pp 2755eda6f593SDavid van Moolenbroek.It Xo Ic automatic-rename 2756eda6f593SDavid van Moolenbroek.Op Ic on | off 2757eda6f593SDavid van Moolenbroek.Xc 2758eda6f593SDavid van MoolenbroekControl automatic window renaming. 2759eda6f593SDavid van MoolenbroekWhen this setting is enabled, 2760eda6f593SDavid van Moolenbroek.Nm 2761*0a6a1f1dSLionel Sambucwill rename the window automatically using the format specified by 2762*0a6a1f1dSLionel Sambuc.Ic automatic-rename-format . 2763eda6f593SDavid van MoolenbroekThis flag is automatically disabled for an individual window when a name 2764eda6f593SDavid van Moolenbroekis specified at creation with 2765eda6f593SDavid van Moolenbroek.Ic new-window 2766eda6f593SDavid van Moolenbroekor 2767eda6f593SDavid van Moolenbroek.Ic new-session , 2768eda6f593SDavid van Moolenbroekor later with 2769*0a6a1f1dSLionel Sambuc.Ic rename-window , 2770*0a6a1f1dSLionel Sambucor with a terminal escape sequence. 2771eda6f593SDavid van MoolenbroekIt may be switched off globally with: 2772eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 2773eda6f593SDavid van Moolenbroekset-window-option -g automatic-rename off 2774eda6f593SDavid van Moolenbroek.Ed 2775eda6f593SDavid van Moolenbroek.Pp 2776*0a6a1f1dSLionel Sambuc.It Ic automatic-rename-format Ar format 2777*0a6a1f1dSLionel SambucThe format (see 2778*0a6a1f1dSLionel Sambuc.Sx FORMATS ) 2779*0a6a1f1dSLionel Sambucused when the 2780*0a6a1f1dSLionel Sambuc.Ic automatic-rename 2781*0a6a1f1dSLionel Sambucoption is enabled. 2782*0a6a1f1dSLionel Sambuc.Pp 2783*0a6a1f1dSLionel Sambuc.It Ic c0-change-interval Ar interval 2784*0a6a1f1dSLionel Sambuc.It Ic c0-change-trigger Ar trigger 2785*0a6a1f1dSLionel SambucThese two options configure a simple form of rate limiting for a pane. 2786*0a6a1f1dSLionel SambucIf 2787*0a6a1f1dSLionel Sambuc.Nm 2788*0a6a1f1dSLionel Sambucsees more than 2789*0a6a1f1dSLionel Sambuc.Ar trigger 2790*0a6a1f1dSLionel SambucC0 sequences that modify the screen (for example, carriage returns, linefeeds 2791*0a6a1f1dSLionel Sambucor backspaces) in one millisecond, it will stop updating the pane immediately and 2792*0a6a1f1dSLionel Sambucinstead redraw it entirely every 2793*0a6a1f1dSLionel Sambuc.Ar interval 2794*0a6a1f1dSLionel Sambucmilliseconds. 2795*0a6a1f1dSLionel SambucThis helps to prevent fast output (such as 2796*0a6a1f1dSLionel Sambuc.Xr yes 1 ) 2797*0a6a1f1dSLionel Sambucoverwhelming the terminal. 2798*0a6a1f1dSLionel SambucThe default is a trigger of 250 and an interval of 100. 2799*0a6a1f1dSLionel SambucA trigger of zero disables the rate limiting. 2800*0a6a1f1dSLionel Sambuc.Pp 2801eda6f593SDavid van Moolenbroek.It Ic clock-mode-colour Ar colour 2802eda6f593SDavid van MoolenbroekSet clock colour. 2803eda6f593SDavid van Moolenbroek.Pp 2804eda6f593SDavid van Moolenbroek.It Xo Ic clock-mode-style 2805eda6f593SDavid van Moolenbroek.Op Ic 12 | 24 2806eda6f593SDavid van Moolenbroek.Xc 2807eda6f593SDavid van MoolenbroekSet clock hour format. 2808eda6f593SDavid van Moolenbroek.Pp 2809eda6f593SDavid van Moolenbroek.It Ic force-height Ar height 2810eda6f593SDavid van Moolenbroek.It Ic force-width Ar width 2811eda6f593SDavid van MoolenbroekPrevent 2812eda6f593SDavid van Moolenbroek.Nm 2813eda6f593SDavid van Moolenbroekfrom resizing a window to greater than 2814eda6f593SDavid van Moolenbroek.Ar width 2815eda6f593SDavid van Moolenbroekor 2816eda6f593SDavid van Moolenbroek.Ar height . 2817eda6f593SDavid van MoolenbroekA value of zero restores the default unlimited setting. 2818eda6f593SDavid van Moolenbroek.Pp 2819eda6f593SDavid van Moolenbroek.It Ic main-pane-height Ar height 2820eda6f593SDavid van Moolenbroek.It Ic main-pane-width Ar width 2821eda6f593SDavid van MoolenbroekSet the width or height of the main (left or top) pane in the 2822eda6f593SDavid van Moolenbroek.Ic main-horizontal 2823eda6f593SDavid van Moolenbroekor 2824eda6f593SDavid van Moolenbroek.Ic main-vertical 2825eda6f593SDavid van Moolenbroeklayouts. 2826eda6f593SDavid van Moolenbroek.Pp 2827eda6f593SDavid van Moolenbroek.It Xo Ic mode-keys 2828eda6f593SDavid van Moolenbroek.Op Ic vi | emacs 2829eda6f593SDavid van Moolenbroek.Xc 2830eda6f593SDavid van MoolenbroekUse vi or emacs-style key bindings in copy and choice modes. 2831eda6f593SDavid van MoolenbroekAs with the 2832eda6f593SDavid van Moolenbroek.Ic status-keys 2833eda6f593SDavid van Moolenbroekoption, the default is emacs, unless 2834eda6f593SDavid van Moolenbroek.Ev VISUAL 2835eda6f593SDavid van Moolenbroekor 2836eda6f593SDavid van Moolenbroek.Ev EDITOR 2837eda6f593SDavid van Moolenbroekcontains 2838eda6f593SDavid van Moolenbroek.Ql vi . 2839eda6f593SDavid van Moolenbroek.Pp 2840eda6f593SDavid van Moolenbroek.It Xo Ic mode-mouse 2841*0a6a1f1dSLionel Sambuc.Op Ic on | off | copy-mode 2842eda6f593SDavid van Moolenbroek.Xc 2843eda6f593SDavid van MoolenbroekMouse state in modes. 2844eda6f593SDavid van MoolenbroekIf on, the mouse may be used to enter copy mode and copy a selection by 2845eda6f593SDavid van Moolenbroekdragging, to enter copy mode and scroll with the mouse wheel, or to select an 2846eda6f593SDavid van Moolenbroekoption in choice mode. 2847*0a6a1f1dSLionel SambucIf set to 2848*0a6a1f1dSLionel Sambuc.Em copy-mode , 2849*0a6a1f1dSLionel Sambucthe mouse behaves as set to on, but cannot be used to enter copy 2850*0a6a1f1dSLionel Sambucmode. 2851*0a6a1f1dSLionel Sambuc.Pp 2852*0a6a1f1dSLionel Sambuc.It Ic mode-style Ar style 2853*0a6a1f1dSLionel SambucSet window modes style. 2854*0a6a1f1dSLionel SambucFor how to specify 2855*0a6a1f1dSLionel Sambuc.Ar style , 2856*0a6a1f1dSLionel Sambucsee the 2857*0a6a1f1dSLionel Sambuc.Ic message-command-style 2858*0a6a1f1dSLionel Sambucoption. 2859eda6f593SDavid van Moolenbroek.Pp 2860eda6f593SDavid van Moolenbroek.It Xo Ic monitor-activity 2861eda6f593SDavid van Moolenbroek.Op Ic on | off 2862eda6f593SDavid van Moolenbroek.Xc 2863eda6f593SDavid van MoolenbroekMonitor for activity in the window. 2864eda6f593SDavid van MoolenbroekWindows with activity are highlighted in the status line. 2865eda6f593SDavid van Moolenbroek.Pp 2866eda6f593SDavid van Moolenbroek.It Ic monitor-content Ar match-string 2867eda6f593SDavid van MoolenbroekMonitor content in the window. 2868eda6f593SDavid van MoolenbroekWhen 2869eda6f593SDavid van Moolenbroek.Xr fnmatch 3 2870eda6f593SDavid van Moolenbroekpattern 2871eda6f593SDavid van Moolenbroek.Ar match-string 2872eda6f593SDavid van Moolenbroekappears in the window, it is highlighted in the status line. 2873eda6f593SDavid van Moolenbroek.Pp 2874eda6f593SDavid van Moolenbroek.It Xo Ic monitor-silence 2875eda6f593SDavid van Moolenbroek.Op Ic interval 2876eda6f593SDavid van Moolenbroek.Xc 2877eda6f593SDavid van MoolenbroekMonitor for silence (no activity) in the window within 2878eda6f593SDavid van Moolenbroek.Ic interval 2879eda6f593SDavid van Moolenbroekseconds. 2880eda6f593SDavid van MoolenbroekWindows that have been silent for the interval are highlighted in the 2881eda6f593SDavid van Moolenbroekstatus line. 2882eda6f593SDavid van MoolenbroekAn interval of zero disables the monitoring. 2883eda6f593SDavid van Moolenbroek.Pp 2884eda6f593SDavid van Moolenbroek.It Ic other-pane-height Ar height 2885eda6f593SDavid van MoolenbroekSet the height of the other panes (not the main pane) in the 2886eda6f593SDavid van Moolenbroek.Ic main-horizontal 2887eda6f593SDavid van Moolenbroeklayout. 2888eda6f593SDavid van MoolenbroekIf this option is set to 0 (the default), it will have no effect. 2889eda6f593SDavid van MoolenbroekIf both the 2890eda6f593SDavid van Moolenbroek.Ic main-pane-height 2891eda6f593SDavid van Moolenbroekand 2892eda6f593SDavid van Moolenbroek.Ic other-pane-height 2893eda6f593SDavid van Moolenbroekoptions are set, the main pane will grow taller to make the other panes the 2894eda6f593SDavid van Moolenbroekspecified height, but will never shrink to do so. 2895eda6f593SDavid van Moolenbroek.Pp 2896eda6f593SDavid van Moolenbroek.It Ic other-pane-width Ar width 2897eda6f593SDavid van MoolenbroekLike 2898eda6f593SDavid van Moolenbroek.Ic other-pane-height , 2899eda6f593SDavid van Moolenbroekbut set the width of other panes in the 2900eda6f593SDavid van Moolenbroek.Ic main-vertical 2901eda6f593SDavid van Moolenbroeklayout. 2902eda6f593SDavid van Moolenbroek.Pp 2903*0a6a1f1dSLionel Sambuc.It Ic pane-base-index Ar index 2904*0a6a1f1dSLionel SambucLike 2905*0a6a1f1dSLionel Sambuc.Ic base-index , 2906*0a6a1f1dSLionel Sambucbut set the starting index for pane numbers. 2907*0a6a1f1dSLionel Sambuc.Pp 2908eda6f593SDavid van Moolenbroek.It Xo Ic remain-on-exit 2909eda6f593SDavid van Moolenbroek.Op Ic on | off 2910eda6f593SDavid van Moolenbroek.Xc 2911eda6f593SDavid van MoolenbroekA window with this flag set is not destroyed when the program running in it 2912eda6f593SDavid van Moolenbroekexits. 2913eda6f593SDavid van MoolenbroekThe window may be reactivated with the 2914eda6f593SDavid van Moolenbroek.Ic respawn-window 2915eda6f593SDavid van Moolenbroekcommand. 2916eda6f593SDavid van Moolenbroek.Pp 2917eda6f593SDavid van Moolenbroek.It Xo Ic synchronize-panes 2918eda6f593SDavid van Moolenbroek.Op Ic on | off 2919eda6f593SDavid van Moolenbroek.Xc 2920eda6f593SDavid van MoolenbroekDuplicate input to any pane to all other panes in the same window (only 2921eda6f593SDavid van Moolenbroekfor panes that are not in any special mode). 2922eda6f593SDavid van Moolenbroek.Pp 2923eda6f593SDavid van Moolenbroek.It Xo Ic utf8 2924eda6f593SDavid van Moolenbroek.Op Ic on | off 2925eda6f593SDavid van Moolenbroek.Xc 2926eda6f593SDavid van MoolenbroekInstructs 2927eda6f593SDavid van Moolenbroek.Nm 2928eda6f593SDavid van Moolenbroekto expect UTF-8 sequences to appear in this window. 2929eda6f593SDavid van Moolenbroek.Pp 2930*0a6a1f1dSLionel Sambuc.It Ic window-status-activity-style Ar style 2931*0a6a1f1dSLionel SambucSet status line style for windows with an activity alert. 2932*0a6a1f1dSLionel SambucFor how to specify 2933*0a6a1f1dSLionel Sambuc.Ar style , 2934*0a6a1f1dSLionel Sambucsee the 2935*0a6a1f1dSLionel Sambuc.Ic message-command-style 2936*0a6a1f1dSLionel Sambucoption. 2937eda6f593SDavid van Moolenbroek.Pp 2938*0a6a1f1dSLionel Sambuc.It Ic window-status-bell-style Ar style 2939*0a6a1f1dSLionel SambucSet status line style for windows with a bell alert. 2940*0a6a1f1dSLionel SambucFor how to specify 2941*0a6a1f1dSLionel Sambuc.Ar style , 2942*0a6a1f1dSLionel Sambucsee the 2943*0a6a1f1dSLionel Sambuc.Ic message-command-style 2944*0a6a1f1dSLionel Sambucoption. 2945eda6f593SDavid van Moolenbroek.Pp 2946*0a6a1f1dSLionel Sambuc.It Ic window-status-content-style Ar style 2947*0a6a1f1dSLionel SambucSet status line style for windows with a content alert. 2948*0a6a1f1dSLionel SambucFor how to specify 2949*0a6a1f1dSLionel Sambuc.Ar style , 2950*0a6a1f1dSLionel Sambucsee the 2951*0a6a1f1dSLionel Sambuc.Ic message-command-style 2952*0a6a1f1dSLionel Sambucoption. 2953*0a6a1f1dSLionel Sambuc.Pp 2954*0a6a1f1dSLionel Sambuc.It Ic window-status-current-format Ar string 2955*0a6a1f1dSLionel SambucLike 2956*0a6a1f1dSLionel Sambuc.Ar window-status-format , 2957*0a6a1f1dSLionel Sambucbut is the format used when the window is the current window. 2958*0a6a1f1dSLionel Sambuc.Pp 2959*0a6a1f1dSLionel Sambuc.It Ic window-status-current-style Ar style 2960*0a6a1f1dSLionel SambucSet status line style for the currently active window. 2961*0a6a1f1dSLionel SambucFor how to specify 2962*0a6a1f1dSLionel Sambuc.Ar style , 2963*0a6a1f1dSLionel Sambucsee the 2964*0a6a1f1dSLionel Sambuc.Ic message-command-style 2965*0a6a1f1dSLionel Sambucoption. 2966eda6f593SDavid van Moolenbroek.Pp 2967eda6f593SDavid van Moolenbroek.It Ic window-status-format Ar string 2968eda6f593SDavid van MoolenbroekSet the format in which the window is displayed in the status line window list. 2969eda6f593SDavid van MoolenbroekSee the 2970eda6f593SDavid van Moolenbroek.Ar status-left 2971eda6f593SDavid van Moolenbroekoption for details of special character sequences available. 2972eda6f593SDavid van MoolenbroekThe default is 2973eda6f593SDavid van Moolenbroek.Ql #I:#W#F . 2974eda6f593SDavid van Moolenbroek.Pp 2975*0a6a1f1dSLionel Sambuc.It Ic window-status-last-style Ar style 2976*0a6a1f1dSLionel SambucSet status line style for the last active window. 2977*0a6a1f1dSLionel SambucFor how to specify 2978*0a6a1f1dSLionel Sambuc.Ar style , 2979*0a6a1f1dSLionel Sambucsee the 2980*0a6a1f1dSLionel Sambuc.Ic message-command-style 2981*0a6a1f1dSLionel Sambucoption. 2982eda6f593SDavid van Moolenbroek.Pp 2983*0a6a1f1dSLionel Sambuc.It Ic window-status-separator Ar string 2984*0a6a1f1dSLionel SambucSets the separator drawn between windows in the status line. 2985*0a6a1f1dSLionel SambucThe default is a single space character. 2986eda6f593SDavid van Moolenbroek.Pp 2987*0a6a1f1dSLionel Sambuc.It Ic window-status-style Ar style 2988*0a6a1f1dSLionel SambucSet status line style for a single window. 2989*0a6a1f1dSLionel SambucFor how to specify 2990*0a6a1f1dSLionel Sambuc.Ar style , 2991*0a6a1f1dSLionel Sambucsee the 2992*0a6a1f1dSLionel Sambuc.Ic message-command-style 2993*0a6a1f1dSLionel Sambucoption. 2994eda6f593SDavid van Moolenbroek.Pp 2995eda6f593SDavid van Moolenbroek.It Xo Ic xterm-keys 2996eda6f593SDavid van Moolenbroek.Op Ic on | off 2997eda6f593SDavid van Moolenbroek.Xc 2998eda6f593SDavid van MoolenbroekIf this option is set, 2999eda6f593SDavid van Moolenbroek.Nm 3000eda6f593SDavid van Moolenbroekwill generate 3001eda6f593SDavid van Moolenbroek.Xr xterm 1 -style 3002eda6f593SDavid van Moolenbroekfunction key sequences; these have a number included to indicate modifiers such 3003eda6f593SDavid van Moolenbroekas Shift, Alt or Ctrl. 3004eda6f593SDavid van MoolenbroekThe default is off. 3005*0a6a1f1dSLionel Sambuc.Pp 3006*0a6a1f1dSLionel Sambuc.It Xo Ic wrap-search 3007*0a6a1f1dSLionel Sambuc.Op Ic on | off 3008*0a6a1f1dSLionel Sambuc.Xc 3009*0a6a1f1dSLionel SambucIf this option is set, searches will wrap around the end of the pane contents. 3010*0a6a1f1dSLionel SambucThe default is on. 3011eda6f593SDavid van Moolenbroek.El 3012eda6f593SDavid van Moolenbroek.It Xo Ic show-options 3013*0a6a1f1dSLionel Sambuc.Op Fl gqsvw 3014eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session | Ar target-window 3015*0a6a1f1dSLionel Sambuc.Op Ar option 3016eda6f593SDavid van Moolenbroek.Xc 3017eda6f593SDavid van Moolenbroek.D1 (alias: Ic show ) 3018*0a6a1f1dSLionel SambucShow the window options (or a single window option if given) with 3019eda6f593SDavid van Moolenbroek.Fl w 3020eda6f593SDavid van Moolenbroek(equivalent to 3021eda6f593SDavid van Moolenbroek.Ic show-window-options ) , 3022eda6f593SDavid van Moolenbroekthe server options with 3023eda6f593SDavid van Moolenbroek.Fl s , 3024eda6f593SDavid van Moolenbroekotherwise the session options for 3025eda6f593SDavid van Moolenbroek.Ar target session . 3026eda6f593SDavid van MoolenbroekGlobal session or window options are listed if 3027eda6f593SDavid van Moolenbroek.Fl g 3028eda6f593SDavid van Moolenbroekis used. 3029*0a6a1f1dSLionel Sambuc.Fl v 3030*0a6a1f1dSLionel Sambucshows only the option value, not the name. 3031*0a6a1f1dSLionel SambucIf 3032*0a6a1f1dSLionel Sambuc.Fl q 3033*0a6a1f1dSLionel Sambucis set, no error will be returned if 3034*0a6a1f1dSLionel Sambuc.Ar option 3035*0a6a1f1dSLionel Sambucis unset. 3036eda6f593SDavid van Moolenbroek.It Xo Ic show-window-options 3037*0a6a1f1dSLionel Sambuc.Op Fl gv 3038eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 3039*0a6a1f1dSLionel Sambuc.Op Ar option 3040eda6f593SDavid van Moolenbroek.Xc 3041eda6f593SDavid van Moolenbroek.D1 (alias: Ic showw ) 3042*0a6a1f1dSLionel SambucList the window options or a single option for 3043eda6f593SDavid van Moolenbroek.Ar target-window , 3044eda6f593SDavid van Moolenbroekor the global window options if 3045eda6f593SDavid van Moolenbroek.Fl g 3046eda6f593SDavid van Moolenbroekis used. 3047*0a6a1f1dSLionel Sambuc.Fl v 3048*0a6a1f1dSLionel Sambucshows only the option value, not the name. 3049eda6f593SDavid van Moolenbroek.El 3050*0a6a1f1dSLionel Sambuc.Sh FORMATS 3051*0a6a1f1dSLionel SambucCertain commands accept the 3052*0a6a1f1dSLionel Sambuc.Fl F 3053*0a6a1f1dSLionel Sambucflag with a 3054*0a6a1f1dSLionel Sambuc.Ar format 3055*0a6a1f1dSLionel Sambucargument. 3056*0a6a1f1dSLionel SambucThis is a string which controls the output format of the command. 3057*0a6a1f1dSLionel SambucReplacement variables are enclosed in 3058*0a6a1f1dSLionel Sambuc.Ql #{ 3059*0a6a1f1dSLionel Sambucand 3060*0a6a1f1dSLionel Sambuc.Ql } , 3061*0a6a1f1dSLionel Sambucfor example 3062*0a6a1f1dSLionel Sambuc.Ql #{session_name} . 3063*0a6a1f1dSLionel SambucSome variables also have an shorter alias such as 3064*0a6a1f1dSLionel Sambuc.Ql #S . 3065*0a6a1f1dSLionel Sambuc.Ql ## 3066*0a6a1f1dSLionel Sambucis replaced by a single 3067*0a6a1f1dSLionel Sambuc.Ql # . 3068*0a6a1f1dSLionel SambucConditionals are also accepted by prefixing with 3069*0a6a1f1dSLionel Sambuc.Ql \&? 3070*0a6a1f1dSLionel Sambucand separating two alternatives with a comma; 3071*0a6a1f1dSLionel Sambucif the specified variable exists and is not zero, the first alternative 3072*0a6a1f1dSLionel Sambucis chosen, otherwise the second is used. 3073*0a6a1f1dSLionel SambucFor example 3074*0a6a1f1dSLionel Sambuc.Ql #{?session_attached,attached,not attached} 3075*0a6a1f1dSLionel Sambucwill include the string 3076*0a6a1f1dSLionel Sambuc.Ql attached 3077*0a6a1f1dSLionel Sambucif the session is attached and the string 3078*0a6a1f1dSLionel Sambuc.Ql not attached 3079*0a6a1f1dSLionel Sambucif it is unattached. 3080*0a6a1f1dSLionel SambucA limit may be placed on the length of the resultant string by prefixing it 3081*0a6a1f1dSLionel Sambucby an 3082*0a6a1f1dSLionel Sambuc.Ql = , 3083*0a6a1f1dSLionel Sambuca number and a colon, so 3084*0a6a1f1dSLionel Sambuc.Ql #{=10:pane_title} 3085*0a6a1f1dSLionel Sambucwill include at most the first 10 characters of the pane title. 3086*0a6a1f1dSLionel Sambuc.Pp 3087*0a6a1f1dSLionel SambucThe following variables are available, where appropriate: 3088*0a6a1f1dSLionel Sambuc.Bl -column "XXXXXXXXXXXXXXXXXXX" "XXXXX" 3089*0a6a1f1dSLionel Sambuc.It Sy "Variable name" Ta Sy "Alias" Ta Sy "Replaced with" 3090*0a6a1f1dSLionel Sambuc.It Li "alternate_on" Ta "" Ta "If pane is in alternate screen" 3091*0a6a1f1dSLionel Sambuc.It Li "alternate_saved_x" Ta "" Ta "Saved cursor X in alternate screen" 3092*0a6a1f1dSLionel Sambuc.It Li "alternate_saved_y" Ta "" Ta "Saved cursor Y in alternate screen" 3093*0a6a1f1dSLionel Sambuc.It Li "buffer_sample" Ta "" Ta "First 50 characters from buffer" 3094*0a6a1f1dSLionel Sambuc.It Li "buffer_size" Ta "" Ta "Size of the specified buffer in bytes" 3095*0a6a1f1dSLionel Sambuc.It Li "client_activity" Ta "" Ta "Integer time client last had activity" 3096*0a6a1f1dSLionel Sambuc.It Li "client_activity_string" Ta "" Ta "String time client last had activity" 3097*0a6a1f1dSLionel Sambuc.It Li "client_created" Ta "" Ta "Integer time client created" 3098*0a6a1f1dSLionel Sambuc.It Li "client_created_string" Ta "" Ta "String time client created" 3099*0a6a1f1dSLionel Sambuc.It Li "client_height" Ta "" Ta "Height of client" 3100*0a6a1f1dSLionel Sambuc.It Li "client_last_session" Ta "" Ta "Name of the client's last session" 3101*0a6a1f1dSLionel Sambuc.It Li "client_prefix" Ta "" Ta "1 if prefix key has been pressed" 3102*0a6a1f1dSLionel Sambuc.It Li "client_readonly" Ta "" Ta "1 if client is readonly" 3103*0a6a1f1dSLionel Sambuc.It Li "client_session" Ta "" Ta "Name of the client's session" 3104*0a6a1f1dSLionel Sambuc.It Li "client_termname" Ta "" Ta "Terminal name of client" 3105*0a6a1f1dSLionel Sambuc.It Li "client_tty" Ta "" Ta "Pseudo terminal of client" 3106*0a6a1f1dSLionel Sambuc.It Li "client_utf8" Ta "" Ta "1 if client supports utf8" 3107*0a6a1f1dSLionel Sambuc.It Li "client_width" Ta "" Ta "Width of client" 3108*0a6a1f1dSLionel Sambuc.It Li "cursor_flag" Ta "" Ta "Pane cursor flag" 3109*0a6a1f1dSLionel Sambuc.It Li "cursor_x" Ta "" Ta "Cursor X position in pane" 3110*0a6a1f1dSLionel Sambuc.It Li "cursor_y" Ta "" Ta "Cursor Y position in pane" 3111*0a6a1f1dSLionel Sambuc.It Li "history_bytes" Ta "" Ta "Number of bytes in window history" 3112*0a6a1f1dSLionel Sambuc.It Li "history_limit" Ta "" Ta "Maximum window history lines" 3113*0a6a1f1dSLionel Sambuc.It Li "history_size" Ta "" Ta "Size of history in bytes" 3114*0a6a1f1dSLionel Sambuc.It Li "host" Ta "#H" Ta "Hostname of local host" 3115*0a6a1f1dSLionel Sambuc.It Li "host_short" Ta "#h" Ta "Hostname of local host (no domain name)" 3116*0a6a1f1dSLionel Sambuc.It Li "insert_flag" Ta "" Ta "Pane insert flag" 3117*0a6a1f1dSLionel Sambuc.It Li "keypad_cursor_flag" Ta "" Ta "Pane keypad cursor flag" 3118*0a6a1f1dSLionel Sambuc.It Li "keypad_flag" Ta "" Ta "Pane keypad flag" 3119*0a6a1f1dSLionel Sambuc.It Li "line" Ta "" Ta "Line number in the list" 3120*0a6a1f1dSLionel Sambuc.It Li "mouse_any_flag" Ta "" Ta "Pane mouse any flag" 3121*0a6a1f1dSLionel Sambuc.It Li "mouse_button_flag" Ta "" Ta "Pane mouse button flag" 3122*0a6a1f1dSLionel Sambuc.It Li "mouse_standard_flag" Ta "" Ta "Pane mouse standard flag" 3123*0a6a1f1dSLionel Sambuc.It Li "mouse_utf8_flag" Ta "" Ta "Pane mouse UTF-8 flag" 3124*0a6a1f1dSLionel Sambuc.It Li "pane_active" Ta "" Ta "1 if active pane" 3125*0a6a1f1dSLionel Sambuc.It Li "pane_current_command" Ta "" Ta "Current command if available" 3126*0a6a1f1dSLionel Sambuc.It Li "pane_current_path" Ta "" Ta "Current path if available" 3127*0a6a1f1dSLionel Sambuc.It Li "pane_dead" Ta "" Ta "1 if pane is dead" 3128*0a6a1f1dSLionel Sambuc.It Li "pane_height" Ta "" Ta "Height of pane" 3129*0a6a1f1dSLionel Sambuc.It Li "pane_id" Ta "#D" Ta "Unique pane ID" 3130*0a6a1f1dSLionel Sambuc.It Li "pane_in_mode" Ta "" Ta "If pane is in a mode" 3131*0a6a1f1dSLionel Sambuc.It Li "pane_synchronized" Ta "" Ta "If pane is synchronized" 3132*0a6a1f1dSLionel Sambuc.It Li "pane_index" Ta "#P" Ta "Index of pane" 3133*0a6a1f1dSLionel Sambuc.It Li "pane_pid" Ta "" Ta "PID of first process in pane" 3134*0a6a1f1dSLionel Sambuc.It Li "pane_start_command" Ta "" Ta "Command pane started with" 3135*0a6a1f1dSLionel Sambuc.It Li "pane_start_path" Ta "" Ta "Path pane started with" 3136*0a6a1f1dSLionel Sambuc.It Li "pane_tabs" Ta "" Ta "Pane tab positions" 3137*0a6a1f1dSLionel Sambuc.It Li "pane_title" Ta "#T" Ta "Title of pane" 3138*0a6a1f1dSLionel Sambuc.It Li "pane_tty" Ta "" Ta "Pseudo terminal of pane" 3139*0a6a1f1dSLionel Sambuc.It Li "pane_width" Ta "" Ta "Width of pane" 3140*0a6a1f1dSLionel Sambuc.It Li "saved_cursor_x" Ta "" Ta "Saved cursor X in pane" 3141*0a6a1f1dSLionel Sambuc.It Li "saved_cursor_y" Ta "" Ta "Saved cursor Y in pane" 3142*0a6a1f1dSLionel Sambuc.It Li "scroll_region_lower" Ta "" Ta "Bottom of scroll region in pane" 3143*0a6a1f1dSLionel Sambuc.It Li "scroll_region_upper" Ta "" Ta "Top of scroll region in pane" 3144*0a6a1f1dSLionel Sambuc.It Li "session_attached" Ta "" Ta "1 if session attached" 3145*0a6a1f1dSLionel Sambuc.It Li "session_created" Ta "" Ta "Integer time session created" 3146*0a6a1f1dSLionel Sambuc.It Li "session_created_string" Ta "" Ta "String time session created" 3147*0a6a1f1dSLionel Sambuc.It Li "session_group" Ta "" Ta "Number of session group" 3148*0a6a1f1dSLionel Sambuc.It Li "session_grouped" Ta "" Ta "1 if session in a group" 3149*0a6a1f1dSLionel Sambuc.It Li "session_height" Ta "" Ta "Height of session" 3150*0a6a1f1dSLionel Sambuc.It Li "session_id" Ta "" Ta "Unique session ID" 3151*0a6a1f1dSLionel Sambuc.It Li "session_name" Ta "#S" Ta "Name of session" 3152*0a6a1f1dSLionel Sambuc.It Li "session_width" Ta "" Ta "Width of session" 3153*0a6a1f1dSLionel Sambuc.It Li "session_windows" Ta "" Ta "Number of windows in session" 3154*0a6a1f1dSLionel Sambuc.It Li "window_active" Ta "" Ta "1 if window active" 3155*0a6a1f1dSLionel Sambuc.It Li "window_activity_flag" Ta "" Ta "1 if window has activity alert" 3156*0a6a1f1dSLionel Sambuc.It Li "window_bell_flag" Ta "" Ta "1 if window has bell" 3157*0a6a1f1dSLionel Sambuc.It Li "window_content_flag" Ta "" Ta "1 if window has content alert" 3158*0a6a1f1dSLionel Sambuc.It Li "window_find_matches" Ta "" Ta "Matched data from the find-window" 3159*0a6a1f1dSLionel Sambuc.It Li "window_flags" Ta "#F" Ta "Window flags" 3160*0a6a1f1dSLionel Sambuc.It Li "window_height" Ta "" Ta "Height of window" 3161*0a6a1f1dSLionel Sambuc.It Li "window_id" Ta "" Ta "Unique window ID" 3162*0a6a1f1dSLionel Sambuc.It Li "window_index" Ta "#I" Ta "Index of window" 3163*0a6a1f1dSLionel Sambuc.It Li "window_layout" Ta "" Ta "Window layout description" 3164*0a6a1f1dSLionel Sambuc.It Li "window_name" Ta "#W" Ta "Name of window" 3165*0a6a1f1dSLionel Sambuc.It Li "window_panes" Ta "" Ta "Number of panes in window" 3166*0a6a1f1dSLionel Sambuc.It Li "window_silence_flag" Ta "" Ta "1 if window has silence alert" 3167*0a6a1f1dSLionel Sambuc.It Li "window_width" Ta "" Ta "Width of window" 3168*0a6a1f1dSLionel Sambuc.It Li "wrap_flag" Ta "" Ta "Pane wrap flag" 3169*0a6a1f1dSLionel Sambuc.El 3170*0a6a1f1dSLionel Sambuc.Sh NAMES AND TITLES 3171*0a6a1f1dSLionel Sambuc.Nm 3172*0a6a1f1dSLionel Sambucdistinguishes between names and titles. 3173*0a6a1f1dSLionel SambucWindows and sessions have names, which may be used to specify them in targets 3174*0a6a1f1dSLionel Sambucand are displayed in the status line and various lists: the name is the 3175*0a6a1f1dSLionel Sambuc.Nm 3176*0a6a1f1dSLionel Sambucidentifier for a window or session. 3177*0a6a1f1dSLionel SambucOnly panes have titles. 3178*0a6a1f1dSLionel SambucA pane's title is typically set by the program running inside the pane and 3179*0a6a1f1dSLionel Sambucis not modified by 3180*0a6a1f1dSLionel Sambuc.Nm . 3181*0a6a1f1dSLionel SambucIt is the same mechanism used to set for example the 3182*0a6a1f1dSLionel Sambuc.Xr xterm 1 3183*0a6a1f1dSLionel Sambucwindow title in an 3184*0a6a1f1dSLionel Sambuc.Xr X 7 3185*0a6a1f1dSLionel Sambucwindow manager. 3186*0a6a1f1dSLionel SambucWindows themselves do not have titles - a window's title is the title of its 3187*0a6a1f1dSLionel Sambucactive pane. 3188*0a6a1f1dSLionel Sambuc.Nm 3189*0a6a1f1dSLionel Sambucitself may set the title of the terminal in which the client is running, see 3190*0a6a1f1dSLionel Sambucthe 3191*0a6a1f1dSLionel Sambuc.Ic set-titles 3192*0a6a1f1dSLionel Sambucoption. 3193*0a6a1f1dSLionel Sambuc.Pp 3194*0a6a1f1dSLionel SambucA session's name is set with the 3195*0a6a1f1dSLionel Sambuc.Ic new-session 3196*0a6a1f1dSLionel Sambucand 3197*0a6a1f1dSLionel Sambuc.Ic rename-session 3198*0a6a1f1dSLionel Sambuccommands. 3199*0a6a1f1dSLionel SambucA window's name is set with one of: 3200*0a6a1f1dSLionel Sambuc.Bl -enum -width Ds 3201*0a6a1f1dSLionel Sambuc.It 3202*0a6a1f1dSLionel SambucA command argument (such as 3203*0a6a1f1dSLionel Sambuc.Fl n 3204*0a6a1f1dSLionel Sambucfor 3205*0a6a1f1dSLionel Sambuc.Ic new-window 3206*0a6a1f1dSLionel Sambucor 3207*0a6a1f1dSLionel Sambuc.Ic new-session ) . 3208*0a6a1f1dSLionel Sambuc.It 3209*0a6a1f1dSLionel SambucAn escape sequence: 3210*0a6a1f1dSLionel Sambuc.Bd -literal -offset indent 3211*0a6a1f1dSLionel Sambuc$ printf '\e033kWINDOW_NAME\e033\e\e' 3212*0a6a1f1dSLionel Sambuc.Ed 3213*0a6a1f1dSLionel Sambuc.It 3214*0a6a1f1dSLionel SambucAutomatic renaming, which sets the name to the active command in the window's 3215*0a6a1f1dSLionel Sambucactive pane. 3216*0a6a1f1dSLionel SambucSee the 3217*0a6a1f1dSLionel Sambuc.Ic automatic-rename 3218*0a6a1f1dSLionel Sambucoption. 3219*0a6a1f1dSLionel Sambuc.El 3220*0a6a1f1dSLionel Sambuc.Pp 3221*0a6a1f1dSLionel SambucWhen a pane is first created, its title is the hostname. 3222*0a6a1f1dSLionel SambucA pane's title can be set via the OSC title setting sequence, for example: 3223*0a6a1f1dSLionel Sambuc.Bd -literal -offset indent 3224*0a6a1f1dSLionel Sambuc$ printf '\e033]2;My Title\e033\e\e' 3225*0a6a1f1dSLionel Sambuc.Ed 3226eda6f593SDavid van Moolenbroek.Sh ENVIRONMENT 3227eda6f593SDavid van MoolenbroekWhen the server is started, 3228eda6f593SDavid van Moolenbroek.Nm 3229eda6f593SDavid van Moolenbroekcopies the environment into the 3230eda6f593SDavid van Moolenbroek.Em global environment ; 3231eda6f593SDavid van Moolenbroekin addition, each session has a 3232eda6f593SDavid van Moolenbroek.Em session environment . 3233eda6f593SDavid van MoolenbroekWhen a window is created, the session and global environments are merged. 3234eda6f593SDavid van MoolenbroekIf a variable exists in both, the value from the session environment is used. 3235eda6f593SDavid van MoolenbroekThe result is the initial environment passed to the new process. 3236eda6f593SDavid van Moolenbroek.Pp 3237eda6f593SDavid van MoolenbroekThe 3238eda6f593SDavid van Moolenbroek.Ic update-environment 3239eda6f593SDavid van Moolenbroeksession option may be used to update the session environment from the client 3240eda6f593SDavid van Moolenbroekwhen a new session is created or an old reattached. 3241eda6f593SDavid van Moolenbroek.Nm 3242eda6f593SDavid van Moolenbroekalso initialises the 3243eda6f593SDavid van Moolenbroek.Ev TMUX 3244eda6f593SDavid van Moolenbroekvariable with some internal information to allow commands to be executed 3245eda6f593SDavid van Moolenbroekfrom inside, and the 3246eda6f593SDavid van Moolenbroek.Ev TERM 3247eda6f593SDavid van Moolenbroekvariable with the correct terminal setting of 3248eda6f593SDavid van Moolenbroek.Ql screen . 3249eda6f593SDavid van Moolenbroek.Pp 3250eda6f593SDavid van MoolenbroekCommands to alter and view the environment are: 3251eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 3252eda6f593SDavid van Moolenbroek.It Xo Ic set-environment 3253eda6f593SDavid van Moolenbroek.Op Fl gru 3254eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session 3255eda6f593SDavid van Moolenbroek.Ar name Op Ar value 3256eda6f593SDavid van Moolenbroek.Xc 3257eda6f593SDavid van Moolenbroek.D1 (alias: Ic setenv ) 3258eda6f593SDavid van MoolenbroekSet or unset an environment variable. 3259eda6f593SDavid van MoolenbroekIf 3260eda6f593SDavid van Moolenbroek.Fl g 3261eda6f593SDavid van Moolenbroekis used, the change is made in the global environment; otherwise, it is applied 3262eda6f593SDavid van Moolenbroekto the session environment for 3263eda6f593SDavid van Moolenbroek.Ar target-session . 3264eda6f593SDavid van MoolenbroekThe 3265eda6f593SDavid van Moolenbroek.Fl u 3266eda6f593SDavid van Moolenbroekflag unsets a variable. 3267eda6f593SDavid van Moolenbroek.Fl r 3268eda6f593SDavid van Moolenbroekindicates the variable is to be removed from the environment before starting a 3269eda6f593SDavid van Moolenbroeknew process. 3270eda6f593SDavid van Moolenbroek.It Xo Ic show-environment 3271eda6f593SDavid van Moolenbroek.Op Fl g 3272eda6f593SDavid van Moolenbroek.Op Fl t Ar target-session 3273*0a6a1f1dSLionel Sambuc.Op Ar variable 3274eda6f593SDavid van Moolenbroek.Xc 3275eda6f593SDavid van Moolenbroek.D1 (alias: Ic showenv ) 3276eda6f593SDavid van MoolenbroekDisplay the environment for 3277eda6f593SDavid van Moolenbroek.Ar target-session 3278eda6f593SDavid van Moolenbroekor the global environment with 3279eda6f593SDavid van Moolenbroek.Fl g . 3280*0a6a1f1dSLionel SambucIf 3281*0a6a1f1dSLionel Sambuc.Ar variable 3282*0a6a1f1dSLionel Sambucis omitted, all variables are shown. 3283eda6f593SDavid van MoolenbroekVariables removed from the environment are prefixed with 3284eda6f593SDavid van Moolenbroek.Ql - . 3285eda6f593SDavid van Moolenbroek.El 3286eda6f593SDavid van Moolenbroek.Sh STATUS LINE 3287eda6f593SDavid van Moolenbroek.Nm 3288eda6f593SDavid van Moolenbroekincludes an optional status line which is displayed in the bottom line of each 3289eda6f593SDavid van Moolenbroekterminal. 3290eda6f593SDavid van MoolenbroekBy default, the status line is enabled (it may be disabled with the 3291eda6f593SDavid van Moolenbroek.Ic status 3292eda6f593SDavid van Moolenbroeksession option) and contains, from left-to-right: the name of the current 3293*0a6a1f1dSLionel Sambucsession in square brackets; the window list; the title of the active pane 3294*0a6a1f1dSLionel Sambucin double quotes; and the time and date. 3295eda6f593SDavid van Moolenbroek.Pp 3296eda6f593SDavid van MoolenbroekThe status line is made of three parts: configurable left and right sections 3297eda6f593SDavid van Moolenbroek(which may contain dynamic content such as the time or output from a shell 3298eda6f593SDavid van Moolenbroekcommand, see the 3299eda6f593SDavid van Moolenbroek.Ic status-left , 3300eda6f593SDavid van Moolenbroek.Ic status-left-length , 3301eda6f593SDavid van Moolenbroek.Ic status-right , 3302eda6f593SDavid van Moolenbroekand 3303eda6f593SDavid van Moolenbroek.Ic status-right-length 3304eda6f593SDavid van Moolenbroekoptions below), and a central window list. 3305eda6f593SDavid van MoolenbroekBy default, the window list shows the index, name and (if any) flag of the 3306eda6f593SDavid van Moolenbroekwindows present in the current session in ascending numerical order. 3307eda6f593SDavid van MoolenbroekIt may be customised with the 3308eda6f593SDavid van Moolenbroek.Ar window-status-format 3309eda6f593SDavid van Moolenbroekand 3310eda6f593SDavid van Moolenbroek.Ar window-status-current-format 3311eda6f593SDavid van Moolenbroekoptions. 3312eda6f593SDavid van MoolenbroekThe flag is one of the following symbols appended to the window name: 3313eda6f593SDavid van Moolenbroek.Bl -column "Symbol" "Meaning" -offset indent 3314eda6f593SDavid van Moolenbroek.It Sy "Symbol" Ta Sy "Meaning" 3315eda6f593SDavid van Moolenbroek.It Li "*" Ta "Denotes the current window." 3316eda6f593SDavid van Moolenbroek.It Li "-" Ta "Marks the last window (previously selected)." 3317eda6f593SDavid van Moolenbroek.It Li "#" Ta "Window is monitored and activity has been detected." 3318eda6f593SDavid van Moolenbroek.It Li "!" Ta "A bell has occurred in the window." 3319eda6f593SDavid van Moolenbroek.It Li "+" Ta "Window is monitored for content and it has appeared." 3320eda6f593SDavid van Moolenbroek.It Li "~" Ta "The window has been silent for the monitor-silence interval." 3321*0a6a1f1dSLionel Sambuc.It Li "Z" Ta "The window's active pane is zoomed." 3322eda6f593SDavid van Moolenbroek.El 3323eda6f593SDavid van Moolenbroek.Pp 3324eda6f593SDavid van MoolenbroekThe # symbol relates to the 3325eda6f593SDavid van Moolenbroek.Ic monitor-activity 3326eda6f593SDavid van Moolenbroekand + to the 3327eda6f593SDavid van Moolenbroek.Ic monitor-content 3328eda6f593SDavid van Moolenbroekwindow options. 3329eda6f593SDavid van MoolenbroekThe window name is printed in inverted colours if an alert (bell, activity or 3330eda6f593SDavid van Moolenbroekcontent) is present. 3331eda6f593SDavid van Moolenbroek.Pp 3332eda6f593SDavid van MoolenbroekThe colour and attributes of the status line may be configured, the entire 3333eda6f593SDavid van Moolenbroekstatus line using the 3334*0a6a1f1dSLionel Sambuc.Ic status-style 3335*0a6a1f1dSLionel Sambucsession option and individual windows using the 3336*0a6a1f1dSLionel Sambuc.Ic window-status-style 3337*0a6a1f1dSLionel Sambucwindow option. 3338eda6f593SDavid van Moolenbroek.Pp 3339eda6f593SDavid van MoolenbroekThe status line is automatically refreshed at interval if it has changed, the 3340eda6f593SDavid van Moolenbroekinterval may be controlled with the 3341eda6f593SDavid van Moolenbroek.Ic status-interval 3342eda6f593SDavid van Moolenbroeksession option. 3343eda6f593SDavid van Moolenbroek.Pp 3344eda6f593SDavid van MoolenbroekCommands related to the status line are as follows: 3345eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 3346eda6f593SDavid van Moolenbroek.It Xo Ic command-prompt 3347eda6f593SDavid van Moolenbroek.Op Fl I Ar inputs 3348eda6f593SDavid van Moolenbroek.Op Fl p Ar prompts 3349eda6f593SDavid van Moolenbroek.Op Fl t Ar target-client 3350eda6f593SDavid van Moolenbroek.Op Ar template 3351eda6f593SDavid van Moolenbroek.Xc 3352eda6f593SDavid van MoolenbroekOpen the command prompt in a client. 3353eda6f593SDavid van MoolenbroekThis may be used from inside 3354eda6f593SDavid van Moolenbroek.Nm 3355eda6f593SDavid van Moolenbroekto execute commands interactively. 3356eda6f593SDavid van Moolenbroek.Pp 3357eda6f593SDavid van MoolenbroekIf 3358eda6f593SDavid van Moolenbroek.Ar template 3359eda6f593SDavid van Moolenbroekis specified, it is used as the command. 3360eda6f593SDavid van MoolenbroekIf present, 3361eda6f593SDavid van Moolenbroek.Fl I 3362eda6f593SDavid van Moolenbroekis a comma-separated list of the initial text for each prompt. 3363eda6f593SDavid van MoolenbroekIf 3364eda6f593SDavid van Moolenbroek.Fl p 3365eda6f593SDavid van Moolenbroekis given, 3366eda6f593SDavid van Moolenbroek.Ar prompts 3367eda6f593SDavid van Moolenbroekis a comma-separated list of prompts which are displayed in order; otherwise 3368eda6f593SDavid van Moolenbroeka single prompt is displayed, constructed from 3369eda6f593SDavid van Moolenbroek.Ar template 3370eda6f593SDavid van Moolenbroekif it is present, or 3371eda6f593SDavid van Moolenbroek.Ql \&: 3372eda6f593SDavid van Moolenbroekif not. 3373eda6f593SDavid van Moolenbroek.Pp 3374eda6f593SDavid van MoolenbroekBoth 3375eda6f593SDavid van Moolenbroek.Ar inputs 3376eda6f593SDavid van Moolenbroekand 3377eda6f593SDavid van Moolenbroek.Ar prompts 3378eda6f593SDavid van Moolenbroekmay contain the special character sequences supported by the 3379eda6f593SDavid van Moolenbroek.Ic status-left 3380eda6f593SDavid van Moolenbroekoption. 3381eda6f593SDavid van Moolenbroek.Pp 3382eda6f593SDavid van MoolenbroekBefore the command is executed, the first occurrence of the string 3383eda6f593SDavid van Moolenbroek.Ql %% 3384eda6f593SDavid van Moolenbroekand all occurrences of 3385eda6f593SDavid van Moolenbroek.Ql %1 3386eda6f593SDavid van Moolenbroekare replaced by the response to the first prompt, the second 3387eda6f593SDavid van Moolenbroek.Ql %% 3388eda6f593SDavid van Moolenbroekand all 3389eda6f593SDavid van Moolenbroek.Ql %2 3390eda6f593SDavid van Moolenbroekare replaced with the response to the second prompt, and so on for further 3391eda6f593SDavid van Moolenbroekprompts. 3392eda6f593SDavid van MoolenbroekUp to nine prompt responses may be replaced 3393eda6f593SDavid van Moolenbroek.Po 3394eda6f593SDavid van Moolenbroek.Ql %1 3395eda6f593SDavid van Moolenbroekto 3396eda6f593SDavid van Moolenbroek.Ql %9 3397eda6f593SDavid van Moolenbroek.Pc . 3398eda6f593SDavid van Moolenbroek.It Xo Ic confirm-before 3399eda6f593SDavid van Moolenbroek.Op Fl p Ar prompt 3400eda6f593SDavid van Moolenbroek.Op Fl t Ar target-client 3401eda6f593SDavid van Moolenbroek.Ar command 3402eda6f593SDavid van Moolenbroek.Xc 3403eda6f593SDavid van Moolenbroek.D1 (alias: Ic confirm ) 3404eda6f593SDavid van MoolenbroekAsk for confirmation before executing 3405eda6f593SDavid van Moolenbroek.Ar command . 3406eda6f593SDavid van MoolenbroekIf 3407eda6f593SDavid van Moolenbroek.Fl p 3408eda6f593SDavid van Moolenbroekis given, 3409eda6f593SDavid van Moolenbroek.Ar prompt 3410eda6f593SDavid van Moolenbroekis the prompt to display; otherwise a prompt is constructed from 3411eda6f593SDavid van Moolenbroek.Ar command . 3412eda6f593SDavid van MoolenbroekIt may contain the special character sequences supported by the 3413eda6f593SDavid van Moolenbroek.Ic status-left 3414eda6f593SDavid van Moolenbroekoption. 3415eda6f593SDavid van Moolenbroek.Pp 3416eda6f593SDavid van MoolenbroekThis command works only from inside 3417eda6f593SDavid van Moolenbroek.Nm . 3418eda6f593SDavid van Moolenbroek.It Xo Ic display-message 3419eda6f593SDavid van Moolenbroek.Op Fl p 3420eda6f593SDavid van Moolenbroek.Op Fl c Ar target-client 3421eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 3422eda6f593SDavid van Moolenbroek.Op Ar message 3423eda6f593SDavid van Moolenbroek.Xc 3424eda6f593SDavid van Moolenbroek.D1 (alias: Ic display ) 3425eda6f593SDavid van MoolenbroekDisplay a message. 3426eda6f593SDavid van MoolenbroekIf 3427eda6f593SDavid van Moolenbroek.Fl p 3428eda6f593SDavid van Moolenbroekis given, the output is printed to stdout, otherwise it is displayed in the 3429eda6f593SDavid van Moolenbroek.Ar target-client 3430eda6f593SDavid van Moolenbroekstatus line. 3431eda6f593SDavid van MoolenbroekThe format of 3432eda6f593SDavid van Moolenbroek.Ar message 3433*0a6a1f1dSLionel Sambucis described in the 3434*0a6a1f1dSLionel Sambuc.Sx FORMATS 3435*0a6a1f1dSLionel Sambucsection; information is taken from 3436eda6f593SDavid van Moolenbroek.Ar target-pane 3437eda6f593SDavid van Moolenbroekif 3438eda6f593SDavid van Moolenbroek.Fl t 3439eda6f593SDavid van Moolenbroekis given, otherwise the active pane for the session attached to 3440eda6f593SDavid van Moolenbroek.Ar target-client . 3441eda6f593SDavid van Moolenbroek.El 3442eda6f593SDavid van Moolenbroek.Sh BUFFERS 3443eda6f593SDavid van Moolenbroek.Nm 3444eda6f593SDavid van Moolenbroekmaintains a stack of 3445eda6f593SDavid van Moolenbroek.Em paste buffers . 3446eda6f593SDavid van MoolenbroekUp to the value of the 3447eda6f593SDavid van Moolenbroek.Ic buffer-limit 3448eda6f593SDavid van Moolenbroekoption are kept; when a new buffer is added, the buffer at the bottom of the 3449eda6f593SDavid van Moolenbroekstack is removed. 3450eda6f593SDavid van MoolenbroekBuffers may be added using 3451eda6f593SDavid van Moolenbroek.Ic copy-mode 3452eda6f593SDavid van Moolenbroekor the 3453eda6f593SDavid van Moolenbroek.Ic set-buffer 3454eda6f593SDavid van Moolenbroekcommand, and pasted into a window using the 3455eda6f593SDavid van Moolenbroek.Ic paste-buffer 3456eda6f593SDavid van Moolenbroekcommand. 3457eda6f593SDavid van Moolenbroek.Pp 3458eda6f593SDavid van MoolenbroekA configurable history buffer is also maintained for each window. 3459eda6f593SDavid van MoolenbroekBy default, up to 2000 lines are kept; this can be altered with the 3460eda6f593SDavid van Moolenbroek.Ic history-limit 3461eda6f593SDavid van Moolenbroekoption (see the 3462eda6f593SDavid van Moolenbroek.Ic set-option 3463eda6f593SDavid van Moolenbroekcommand above). 3464eda6f593SDavid van Moolenbroek.Pp 3465eda6f593SDavid van MoolenbroekThe buffer commands are as follows: 3466eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 3467eda6f593SDavid van Moolenbroek.It Xo 3468eda6f593SDavid van Moolenbroek.Ic choose-buffer 3469*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 3470eda6f593SDavid van Moolenbroek.Op Fl t Ar target-window 3471eda6f593SDavid van Moolenbroek.Op Ar template 3472eda6f593SDavid van Moolenbroek.Xc 3473eda6f593SDavid van MoolenbroekPut a window into buffer choice mode, where a buffer may be chosen 3474eda6f593SDavid van Moolenbroekinteractively from a list. 3475eda6f593SDavid van MoolenbroekAfter a buffer is selected, 3476eda6f593SDavid van Moolenbroek.Ql %% 3477eda6f593SDavid van Moolenbroekis replaced by the buffer index in 3478eda6f593SDavid van Moolenbroek.Ar template 3479eda6f593SDavid van Moolenbroekand the result executed as a command. 3480eda6f593SDavid van MoolenbroekIf 3481eda6f593SDavid van Moolenbroek.Ar template 3482eda6f593SDavid van Moolenbroekis not given, "paste-buffer -b '%%'" is used. 3483*0a6a1f1dSLionel SambucFor the meaning of the 3484*0a6a1f1dSLionel Sambuc.Fl F 3485*0a6a1f1dSLionel Sambucflag, see the 3486*0a6a1f1dSLionel Sambuc.Sx FORMATS 3487*0a6a1f1dSLionel Sambucsection. 3488*0a6a1f1dSLionel SambucThis command works only if at least one client is attached. 3489eda6f593SDavid van Moolenbroek.It Ic clear-history Op Fl t Ar target-pane 3490eda6f593SDavid van Moolenbroek.D1 (alias: Ic clearhist ) 3491eda6f593SDavid van MoolenbroekRemove and free the history for the specified pane. 3492eda6f593SDavid van Moolenbroek.It Ic delete-buffer Op Fl b Ar buffer-index 3493eda6f593SDavid van Moolenbroek.D1 (alias: Ic deleteb ) 3494eda6f593SDavid van MoolenbroekDelete the buffer at 3495eda6f593SDavid van Moolenbroek.Ar buffer-index , 3496eda6f593SDavid van Moolenbroekor the top buffer if not specified. 3497*0a6a1f1dSLionel Sambuc.It Xo Ic list-buffers 3498*0a6a1f1dSLionel Sambuc.Op Fl F Ar format 3499*0a6a1f1dSLionel Sambuc.Xc 3500eda6f593SDavid van Moolenbroek.D1 (alias: Ic lsb ) 3501eda6f593SDavid van MoolenbroekList the global buffers. 3502*0a6a1f1dSLionel SambucFor the meaning of the 3503*0a6a1f1dSLionel Sambuc.Fl F 3504*0a6a1f1dSLionel Sambucflag, see the 3505*0a6a1f1dSLionel Sambuc.Sx FORMATS 3506*0a6a1f1dSLionel Sambucsection. 3507eda6f593SDavid van Moolenbroek.It Xo Ic load-buffer 3508eda6f593SDavid van Moolenbroek.Op Fl b Ar buffer-index 3509eda6f593SDavid van Moolenbroek.Ar path 3510eda6f593SDavid van Moolenbroek.Xc 3511eda6f593SDavid van Moolenbroek.D1 (alias: Ic loadb ) 3512eda6f593SDavid van MoolenbroekLoad the contents of the specified paste buffer from 3513eda6f593SDavid van Moolenbroek.Ar path . 3514eda6f593SDavid van Moolenbroek.It Xo Ic paste-buffer 3515*0a6a1f1dSLionel Sambuc.Op Fl dpr 3516eda6f593SDavid van Moolenbroek.Op Fl b Ar buffer-index 3517eda6f593SDavid van Moolenbroek.Op Fl s Ar separator 3518eda6f593SDavid van Moolenbroek.Op Fl t Ar target-pane 3519eda6f593SDavid van Moolenbroek.Xc 3520eda6f593SDavid van Moolenbroek.D1 (alias: Ic pasteb ) 3521eda6f593SDavid van MoolenbroekInsert the contents of a paste buffer into the specified pane. 3522eda6f593SDavid van MoolenbroekIf not specified, paste into the current one. 3523eda6f593SDavid van MoolenbroekWith 3524eda6f593SDavid van Moolenbroek.Fl d , 3525eda6f593SDavid van Moolenbroekalso delete the paste buffer from the stack. 3526eda6f593SDavid van MoolenbroekWhen output, any linefeed (LF) characters in the paste buffer are replaced with 3527eda6f593SDavid van Moolenbroeka separator, by default carriage return (CR). 3528eda6f593SDavid van MoolenbroekA custom separator may be specified using the 3529eda6f593SDavid van Moolenbroek.Fl s 3530eda6f593SDavid van Moolenbroekflag. 3531eda6f593SDavid van MoolenbroekThe 3532eda6f593SDavid van Moolenbroek.Fl r 3533eda6f593SDavid van Moolenbroekflag means to do no replacement (equivalent to a separator of LF). 3534*0a6a1f1dSLionel SambucIf 3535*0a6a1f1dSLionel Sambuc.Fl p 3536*0a6a1f1dSLionel Sambucis specified, paste bracket control codes are inserted around the 3537*0a6a1f1dSLionel Sambucbuffer if the application has requested bracketed paste mode. 3538eda6f593SDavid van Moolenbroek.It Xo Ic save-buffer 3539eda6f593SDavid van Moolenbroek.Op Fl a 3540eda6f593SDavid van Moolenbroek.Op Fl b Ar buffer-index 3541eda6f593SDavid van Moolenbroek.Ar path 3542eda6f593SDavid van Moolenbroek.Xc 3543eda6f593SDavid van Moolenbroek.D1 (alias: Ic saveb ) 3544eda6f593SDavid van MoolenbroekSave the contents of the specified paste buffer to 3545eda6f593SDavid van Moolenbroek.Ar path . 3546eda6f593SDavid van MoolenbroekThe 3547eda6f593SDavid van Moolenbroek.Fl a 3548eda6f593SDavid van Moolenbroekoption appends to rather than overwriting the file. 3549eda6f593SDavid van Moolenbroek.It Xo Ic set-buffer 3550eda6f593SDavid van Moolenbroek.Op Fl b Ar buffer-index 3551eda6f593SDavid van Moolenbroek.Ar data 3552eda6f593SDavid van Moolenbroek.Xc 3553eda6f593SDavid van Moolenbroek.D1 (alias: Ic setb ) 3554eda6f593SDavid van MoolenbroekSet the contents of the specified buffer to 3555eda6f593SDavid van Moolenbroek.Ar data . 3556eda6f593SDavid van Moolenbroek.It Xo Ic show-buffer 3557eda6f593SDavid van Moolenbroek.Op Fl b Ar buffer-index 3558eda6f593SDavid van Moolenbroek.Xc 3559eda6f593SDavid van Moolenbroek.D1 (alias: Ic showb ) 3560eda6f593SDavid van MoolenbroekDisplay the contents of the specified buffer. 3561eda6f593SDavid van Moolenbroek.El 3562eda6f593SDavid van Moolenbroek.Sh MISCELLANEOUS 3563eda6f593SDavid van MoolenbroekMiscellaneous commands are as follows: 3564eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 3565eda6f593SDavid van Moolenbroek.It Ic clock-mode Op Fl t Ar target-pane 3566eda6f593SDavid van MoolenbroekDisplay a large clock. 3567*0a6a1f1dSLionel Sambuc.It Xo Ic if-shell 3568*0a6a1f1dSLionel Sambuc.Op Fl b 3569*0a6a1f1dSLionel Sambuc.Op Fl t Ar target-pane 3570*0a6a1f1dSLionel Sambuc.Ar shell-command command 3571*0a6a1f1dSLionel Sambuc.Op Ar command 3572*0a6a1f1dSLionel Sambuc.Xc 3573eda6f593SDavid van Moolenbroek.D1 (alias: Ic if ) 3574*0a6a1f1dSLionel SambucExecute the first 3575eda6f593SDavid van Moolenbroek.Ar command 3576eda6f593SDavid van Moolenbroekif 3577eda6f593SDavid van Moolenbroek.Ar shell-command 3578*0a6a1f1dSLionel Sambucreturns success or the second 3579*0a6a1f1dSLionel Sambuc.Ar command 3580*0a6a1f1dSLionel Sambucotherwise. 3581*0a6a1f1dSLionel SambucBefore being executed, shell-command is expanded using the rules specified in the 3582*0a6a1f1dSLionel Sambuc.Sx FORMATS 3583*0a6a1f1dSLionel Sambucsection, including those relevant to 3584*0a6a1f1dSLionel Sambuc.Ar target-pane . 3585*0a6a1f1dSLionel SambucWith 3586*0a6a1f1dSLionel Sambuc.Fl b , 3587*0a6a1f1dSLionel Sambuc.Ar shell-command 3588*0a6a1f1dSLionel Sambucis run in the background. 3589eda6f593SDavid van Moolenbroek.It Ic lock-server 3590eda6f593SDavid van Moolenbroek.D1 (alias: Ic lock ) 3591eda6f593SDavid van MoolenbroekLock each client individually by running the command specified by the 3592eda6f593SDavid van Moolenbroek.Ic lock-command 3593eda6f593SDavid van Moolenbroekoption. 3594*0a6a1f1dSLionel Sambuc.It Xo Ic run-shell 3595*0a6a1f1dSLionel Sambuc.Op Fl b 3596*0a6a1f1dSLionel Sambuc.Op Fl t Ar target-pane 3597*0a6a1f1dSLionel Sambuc.Ar shell-command 3598*0a6a1f1dSLionel Sambuc.Xc 3599eda6f593SDavid van Moolenbroek.D1 (alias: Ic run ) 3600eda6f593SDavid van MoolenbroekExecute 3601eda6f593SDavid van Moolenbroek.Ar shell-command 3602eda6f593SDavid van Moolenbroekin the background without creating a window. 3603*0a6a1f1dSLionel SambucBefore being executed, shell-command is expanded using the rules specified in 3604*0a6a1f1dSLionel Sambucthe 3605*0a6a1f1dSLionel Sambuc.Sx FORMATS 3606*0a6a1f1dSLionel Sambucsection. 3607*0a6a1f1dSLionel SambucWith 3608*0a6a1f1dSLionel Sambuc.Fl b , 3609*0a6a1f1dSLionel Sambucthe command is run in the background. 3610*0a6a1f1dSLionel SambucAfter it finishes, any output to stdout is displayed in copy mode (in the pane 3611*0a6a1f1dSLionel Sambucspecified by 3612*0a6a1f1dSLionel Sambuc.Fl t 3613*0a6a1f1dSLionel Sambucor the current pane if omitted). 3614eda6f593SDavid van MoolenbroekIf the command doesn't return success, the exit status is also displayed. 3615*0a6a1f1dSLionel Sambuc.It Xo Ic wait-for 3616*0a6a1f1dSLionel Sambuc.Op Fl L | S | U 3617*0a6a1f1dSLionel Sambuc.Ar channel 3618*0a6a1f1dSLionel Sambuc.Xc 3619*0a6a1f1dSLionel Sambuc.D1 (alias: Ic wait ) 3620*0a6a1f1dSLionel SambucWhen used without options, prevents the client from exiting until woken using 3621*0a6a1f1dSLionel Sambuc.Ic wait-for 3622*0a6a1f1dSLionel Sambuc.Fl S 3623*0a6a1f1dSLionel Sambucwith the same channel. 3624*0a6a1f1dSLionel SambucWhen 3625*0a6a1f1dSLionel Sambuc.Fl L 3626*0a6a1f1dSLionel Sambucis used, the channel is locked and any clients that try to lock the same 3627*0a6a1f1dSLionel Sambucchannel are made to wait until the channel is unlocked with 3628*0a6a1f1dSLionel Sambuc.Ic wait-for 3629*0a6a1f1dSLionel Sambuc.Fl U . 3630*0a6a1f1dSLionel SambucThis command only works from outside 3631*0a6a1f1dSLionel Sambuc.Nm . 3632eda6f593SDavid van Moolenbroek.El 3633eda6f593SDavid van Moolenbroek.Sh TERMINFO EXTENSIONS 3634eda6f593SDavid van Moolenbroek.Nm 3635eda6f593SDavid van Moolenbroekunderstands some extensions to 3636eda6f593SDavid van Moolenbroek.Xr terminfo 5 : 3637eda6f593SDavid van Moolenbroek.Bl -tag -width Ds 3638*0a6a1f1dSLionel Sambuc.It Em Cs , Cr 3639eda6f593SDavid van MoolenbroekSet the cursor colour. 3640eda6f593SDavid van MoolenbroekThe first takes a single string argument and is used to set the colour; 3641eda6f593SDavid van Moolenbroekthe second takes no arguments and restores the default cursor colour. 3642eda6f593SDavid van MoolenbroekIf set, a sequence such as this may be used 3643eda6f593SDavid van Moolenbroekto change the cursor colour from inside 3644eda6f593SDavid van Moolenbroek.Nm : 3645eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 3646eda6f593SDavid van Moolenbroek$ printf '\e033]12;red\e033\e\e' 3647eda6f593SDavid van Moolenbroek.Ed 3648*0a6a1f1dSLionel Sambuc.It Em \&Ss , Se 3649eda6f593SDavid van MoolenbroekChange the cursor style. 3650eda6f593SDavid van MoolenbroekIf set, a sequence such as this may be used 3651eda6f593SDavid van Moolenbroekto change the cursor to an underline: 3652eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 3653eda6f593SDavid van Moolenbroek$ printf '\e033[4 q' 3654eda6f593SDavid van Moolenbroek.Ed 3655eda6f593SDavid van Moolenbroek.Pp 3656eda6f593SDavid van MoolenbroekIf 3657eda6f593SDavid van Moolenbroek.Em Csr 3658eda6f593SDavid van Moolenbroekis set, it will be used to reset the cursor style instead 3659eda6f593SDavid van Moolenbroekof 3660eda6f593SDavid van Moolenbroek.Em Cs . 3661eda6f593SDavid van Moolenbroek.It Em \&Ms 3662eda6f593SDavid van MoolenbroekThis sequence can be used by 3663eda6f593SDavid van Moolenbroek.Nm 3664eda6f593SDavid van Moolenbroekto store the current buffer in the host terminal's selection (clipboard). 3665eda6f593SDavid van MoolenbroekSee the 3666eda6f593SDavid van Moolenbroek.Em set-clipboard 3667eda6f593SDavid van Moolenbroekoption above and the 3668eda6f593SDavid van Moolenbroek.Xr xterm 1 3669eda6f593SDavid van Moolenbroekman page. 3670eda6f593SDavid van Moolenbroek.El 3671*0a6a1f1dSLionel Sambuc.Sh CONTROL MODE 3672*0a6a1f1dSLionel Sambuc.Nm 3673*0a6a1f1dSLionel Sambucoffers a textual interface called 3674*0a6a1f1dSLionel Sambuc.Em control mode . 3675*0a6a1f1dSLionel SambucThis allows applications to communicate with 3676*0a6a1f1dSLionel Sambuc.Nm 3677*0a6a1f1dSLionel Sambucusing a simple text-only protocol. 3678*0a6a1f1dSLionel Sambuc.Pp 3679*0a6a1f1dSLionel SambucIn control mode, a client sends 3680*0a6a1f1dSLionel Sambuc.Nm 3681*0a6a1f1dSLionel Sambuccommands or command sequences terminated by newlines on standard input. 3682*0a6a1f1dSLionel SambucEach command will produce one block of output on standard output. 3683*0a6a1f1dSLionel SambucAn output block consists of a 3684*0a6a1f1dSLionel Sambuc.Em %begin 3685*0a6a1f1dSLionel Sambucline followed by the output (which may be empty). 3686*0a6a1f1dSLionel SambucThe output block ends with a 3687*0a6a1f1dSLionel Sambuc.Em %end 3688*0a6a1f1dSLionel Sambucor 3689*0a6a1f1dSLionel Sambuc.Em %error . 3690*0a6a1f1dSLionel Sambuc.Em %begin 3691*0a6a1f1dSLionel Sambucand matching 3692*0a6a1f1dSLionel Sambuc.Em %end 3693*0a6a1f1dSLionel Sambucor 3694*0a6a1f1dSLionel Sambuc.Em %error 3695*0a6a1f1dSLionel Sambuchave two arguments: an integer time (as seconds from epoch) and command number. 3696*0a6a1f1dSLionel SambucFor example: 3697*0a6a1f1dSLionel Sambuc.Bd -literal -offset indent 3698*0a6a1f1dSLionel Sambuc%begin 1363006971 2 3699*0a6a1f1dSLionel Sambuc0: ksh* (1 panes) [80x24] [layout b25f,80x24,0,0,2] @2 (active) 3700*0a6a1f1dSLionel Sambuc%end 1363006971 2 3701*0a6a1f1dSLionel Sambuc.Ed 3702*0a6a1f1dSLionel Sambuc.Pp 3703*0a6a1f1dSLionel SambucIn control mode, 3704*0a6a1f1dSLionel Sambuc.Nm 3705*0a6a1f1dSLionel Sambucoutputs notifications. 3706*0a6a1f1dSLionel SambucA notification will never occur inside an output block. 3707*0a6a1f1dSLionel Sambuc.Pp 3708*0a6a1f1dSLionel SambucThe following notifications are defined: 3709*0a6a1f1dSLionel Sambuc.Bl -tag -width Ds 3710*0a6a1f1dSLionel Sambuc.It Ic %exit Op Ar reason 3711*0a6a1f1dSLionel SambucThe 3712*0a6a1f1dSLionel Sambuc.Nm 3713*0a6a1f1dSLionel Sambucclient is exiting immediately, either because it is not attached to any session 3714*0a6a1f1dSLionel Sambucor an error occurred. 3715*0a6a1f1dSLionel SambucIf present, 3716*0a6a1f1dSLionel Sambuc.Ar reason 3717*0a6a1f1dSLionel Sambucdescribes why the client exited. 3718*0a6a1f1dSLionel Sambuc.It Ic %layout-change Ar window-id Ar window-layout 3719*0a6a1f1dSLionel SambucThe layout of a window with ID 3720*0a6a1f1dSLionel Sambuc.Ar window-id 3721*0a6a1f1dSLionel Sambucchanged. 3722*0a6a1f1dSLionel SambucThe new layout is 3723*0a6a1f1dSLionel Sambuc.Ar window-layout . 3724*0a6a1f1dSLionel Sambuc.It Ic %output Ar pane-id Ar value 3725*0a6a1f1dSLionel SambucA window pane produced output. 3726*0a6a1f1dSLionel Sambuc.Ar value 3727*0a6a1f1dSLionel Sambucescapes non-printable characters and backslash as octal \\xxx. 3728*0a6a1f1dSLionel Sambuc.It Ic %session-changed Ar session-id Ar name 3729*0a6a1f1dSLionel SambucThe client is now attached to the session with ID 3730*0a6a1f1dSLionel Sambuc.Ar session-id , 3731*0a6a1f1dSLionel Sambucwhich is named 3732*0a6a1f1dSLionel Sambuc.Ar name . 3733*0a6a1f1dSLionel Sambuc.It Ic %session-renamed Ar name 3734*0a6a1f1dSLionel SambucThe current session was renamed to 3735*0a6a1f1dSLionel Sambuc.Ar name . 3736*0a6a1f1dSLionel Sambuc.It Ic %sessions-changed 3737*0a6a1f1dSLionel SambucA session was created or destroyed. 3738*0a6a1f1dSLionel Sambuc.It Ic %unlinked-window-add Ar window-id 3739*0a6a1f1dSLionel SambucThe window with ID 3740*0a6a1f1dSLionel Sambuc.Ar window-id 3741*0a6a1f1dSLionel Sambucwas created but is not linked to the current session. 3742*0a6a1f1dSLionel Sambuc.It Ic %window-add Ar window-id 3743*0a6a1f1dSLionel SambucThe window with ID 3744*0a6a1f1dSLionel Sambuc.Ar window-id 3745*0a6a1f1dSLionel Sambucwas linked to the current session. 3746*0a6a1f1dSLionel Sambuc.It Ic %window-close Ar window-id 3747*0a6a1f1dSLionel SambucThe window with ID 3748*0a6a1f1dSLionel Sambuc.Ar window-id 3749*0a6a1f1dSLionel Sambucclosed. 3750*0a6a1f1dSLionel Sambuc.It Ic %window-renamed Ar window-id Ar name 3751*0a6a1f1dSLionel SambucThe window with ID 3752*0a6a1f1dSLionel Sambuc.Ar window-id 3753*0a6a1f1dSLionel Sambucwas renamed to 3754*0a6a1f1dSLionel Sambuc.Ar name . 3755*0a6a1f1dSLionel Sambuc.El 3756eda6f593SDavid van Moolenbroek.Sh FILES 3757*0a6a1f1dSLionel Sambuc.Bl -tag -width "@SYSCONFDIR@/tmux.confXXX" -compact 3758eda6f593SDavid van Moolenbroek.It Pa ~/.tmux.conf 3759eda6f593SDavid van MoolenbroekDefault 3760eda6f593SDavid van Moolenbroek.Nm 3761eda6f593SDavid van Moolenbroekconfiguration file. 3762*0a6a1f1dSLionel Sambuc.It Pa @SYSCONFDIR@/tmux.conf 3763eda6f593SDavid van MoolenbroekSystem-wide configuration file. 3764eda6f593SDavid van Moolenbroek.El 3765eda6f593SDavid van Moolenbroek.Sh EXAMPLES 3766eda6f593SDavid van MoolenbroekTo create a new 3767eda6f593SDavid van Moolenbroek.Nm 3768eda6f593SDavid van Moolenbroeksession running 3769eda6f593SDavid van Moolenbroek.Xr vi 1 : 3770eda6f593SDavid van Moolenbroek.Pp 3771eda6f593SDavid van Moolenbroek.Dl $ tmux new-session vi 3772eda6f593SDavid van Moolenbroek.Pp 3773eda6f593SDavid van MoolenbroekMost commands have a shorter form, known as an alias. 3774eda6f593SDavid van MoolenbroekFor new-session, this is 3775eda6f593SDavid van Moolenbroek.Ic new : 3776eda6f593SDavid van Moolenbroek.Pp 3777eda6f593SDavid van Moolenbroek.Dl $ tmux new vi 3778eda6f593SDavid van Moolenbroek.Pp 3779eda6f593SDavid van MoolenbroekAlternatively, the shortest unambiguous form of a command is accepted. 3780eda6f593SDavid van MoolenbroekIf there are several options, they are listed: 3781eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 3782eda6f593SDavid van Moolenbroek$ tmux n 3783eda6f593SDavid van Moolenbroekambiguous command: n, could be: new-session, new-window, next-window 3784eda6f593SDavid van Moolenbroek.Ed 3785eda6f593SDavid van Moolenbroek.Pp 3786eda6f593SDavid van MoolenbroekWithin an active session, a new window may be created by typing 3787eda6f593SDavid van Moolenbroek.Ql C-b c 3788eda6f593SDavid van Moolenbroek(Ctrl 3789eda6f593SDavid van Moolenbroekfollowed by the 3790eda6f593SDavid van Moolenbroek.Ql b 3791eda6f593SDavid van Moolenbroekkey 3792eda6f593SDavid van Moolenbroekfollowed by the 3793eda6f593SDavid van Moolenbroek.Ql c 3794eda6f593SDavid van Moolenbroekkey). 3795eda6f593SDavid van Moolenbroek.Pp 3796eda6f593SDavid van MoolenbroekWindows may be navigated with: 3797eda6f593SDavid van Moolenbroek.Ql C-b 0 3798eda6f593SDavid van Moolenbroek(to select window 0), 3799eda6f593SDavid van Moolenbroek.Ql C-b 1 3800eda6f593SDavid van Moolenbroek(to select window 1), and so on; 3801eda6f593SDavid van Moolenbroek.Ql C-b n 3802eda6f593SDavid van Moolenbroekto select the next window; and 3803eda6f593SDavid van Moolenbroek.Ql C-b p 3804eda6f593SDavid van Moolenbroekto select the previous window. 3805eda6f593SDavid van Moolenbroek.Pp 3806eda6f593SDavid van MoolenbroekA session may be detached using 3807eda6f593SDavid van Moolenbroek.Ql C-b d 3808eda6f593SDavid van Moolenbroek(or by an external event such as 3809eda6f593SDavid van Moolenbroek.Xr ssh 1 3810eda6f593SDavid van Moolenbroekdisconnection) and reattached with: 3811eda6f593SDavid van Moolenbroek.Pp 3812eda6f593SDavid van Moolenbroek.Dl $ tmux attach-session 3813eda6f593SDavid van Moolenbroek.Pp 3814eda6f593SDavid van MoolenbroekTyping 3815eda6f593SDavid van Moolenbroek.Ql C-b \&? 3816eda6f593SDavid van Moolenbroeklists the current key bindings in the current window; up and down may be used 3817eda6f593SDavid van Moolenbroekto navigate the list or 3818eda6f593SDavid van Moolenbroek.Ql q 3819eda6f593SDavid van Moolenbroekto exit from it. 3820eda6f593SDavid van Moolenbroek.Pp 3821eda6f593SDavid van MoolenbroekCommands to be run when the 3822eda6f593SDavid van Moolenbroek.Nm 3823eda6f593SDavid van Moolenbroekserver is started may be placed in the 3824eda6f593SDavid van Moolenbroek.Pa ~/.tmux.conf 3825eda6f593SDavid van Moolenbroekconfiguration file. 3826eda6f593SDavid van MoolenbroekCommon examples include: 3827eda6f593SDavid van Moolenbroek.Pp 3828eda6f593SDavid van MoolenbroekChanging the default prefix key: 3829eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 3830eda6f593SDavid van Moolenbroekset-option -g prefix C-a 3831eda6f593SDavid van Moolenbroekunbind-key C-b 3832eda6f593SDavid van Moolenbroekbind-key C-a send-prefix 3833eda6f593SDavid van Moolenbroek.Ed 3834eda6f593SDavid van Moolenbroek.Pp 3835eda6f593SDavid van MoolenbroekTurning the status line off, or changing its colour: 3836eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 3837eda6f593SDavid van Moolenbroekset-option -g status off 3838*0a6a1f1dSLionel Sambucset-option -g status-style bg=blue 3839eda6f593SDavid van Moolenbroek.Ed 3840eda6f593SDavid van Moolenbroek.Pp 3841eda6f593SDavid van MoolenbroekSetting other options, such as the default command, 3842eda6f593SDavid van Moolenbroekor locking after 30 minutes of inactivity: 3843eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 3844eda6f593SDavid van Moolenbroekset-option -g default-command "exec /bin/ksh" 3845eda6f593SDavid van Moolenbroekset-option -g lock-after-time 1800 3846eda6f593SDavid van Moolenbroek.Ed 3847eda6f593SDavid van Moolenbroek.Pp 3848eda6f593SDavid van MoolenbroekCreating new key bindings: 3849eda6f593SDavid van Moolenbroek.Bd -literal -offset indent 3850eda6f593SDavid van Moolenbroekbind-key b set-option status 3851eda6f593SDavid van Moolenbroekbind-key / command-prompt "split-window 'exec man %%'" 3852eda6f593SDavid van Moolenbroekbind-key S command-prompt "new-window -n %1 'ssh %1'" 3853eda6f593SDavid van Moolenbroek.Ed 3854eda6f593SDavid van Moolenbroek.Sh SEE ALSO 3855*0a6a1f1dSLionel Sambuc.Xr pty 7 3856eda6f593SDavid van Moolenbroek.Sh AUTHORS 3857eda6f593SDavid van Moolenbroek.An Nicholas Marriott Aq Mt nicm@users.sourceforge.net 3858