1CHANGES FROM 3.3a to 3.4 2 3* Add options keep-last and keep-group to destroy-unattached to keep the last 4 session whether in a group. 5 6* Don't allow paste-buffer into dead panes. 7 8* Add -t to source-file. 9 10* Rewrite combined character handling to be more consistent and to support 11 newer Unicode combined characters. 12 13* Add basic support for SIXEL if built with --enable-sixel. 14 15* Add a session, pane and user mouse range types for the status line and add 16 format variables for mouse_status_line and mouse_status_range so they can be 17 associated with different commands in the key bindings. 18 19* Add flag (-o) to next-prompt/previous-prompt to go to OSC 133 command output. 20 21* Add options and flags for menu styles (menu-style, menu-border-style) similar 22 to those existing for popups. 23 24* Add support for marking lines with a shell prompt based on the OSC 133 extension. 25 26* Check for libterminfo for NetBSD. 27 28* Add "us" to styles for underscore colour. 29 30* Add flags (-c and -y) to change the confirm key and default behaviour of 31 confirm-before. 32 33* Use ncurses' new tparm_s function (added in 6.4-20230424) instead of tparm so 34 it does not object to string arguments in c apabilities it doesn't already 35 know. Also ignore errors from tparm if using previous ncurses versions. 36 37* Set default lock command to vlock on Linux if present at build time. 38 39* Discard mouse sequences that have the right form but actually are invalid. 40 41* Add support for spawning panes in separate cgroups with systemd and a 42 configure flag (--disable-cgroups) to turn off. 43 44* Add a format (pane_unseen_changes) to show if there are unseen changes while 45 in a mode. 46 47* Remove old buffer when renaming rather than complaining. 48 49* Add an L modifier like P, W, S to loop over clients. 50 51* Add -f to list-clients like the other list commands. 52 53* Extend display-message to work for control clients. 54 55* Add a flag to display-menu to select the manu item selected when the menu is 56 open. 57 58* Have tmux recognise pasted text wrapped in bracket paste sequences, rather 59 than only forwarding them to the program inside. 60 61* Have client return 1 if process is interrupted to an input pane. 62 63* Query the client terminal for foreground and background colours and if OSC 10 64 or 11 is received but no colour has been set inside tmux, return the colour 65 from the first attached client. 66 67* Add send-keys -K to handle keys directly as if typed (so look up in key 68 table). 69 70* Process escape sequences in show-buffer. 71 72* Add a -l flag to display-message to disable format expansion. 73 74* Add paste-buffer-deleted notification and fix name of paste-buffer-changed. 75 76* Do not attempt to connect to the socket as a client if systemd is active. 77 78* Add scroll-top and scroll-bottom commands to scroll so cursor is at top or 79 bottom. 80 81* Add a -T flag to capture-pane to stop at the last used cell instead of the 82 full width. Restore the previous behaviour by making it default to off unless 83 -J is used. 84 85* Add message-line option to control where message and prompt go. 86 87* Notification when a when a paste buffer is deleted. 88 89* Add a Nobr terminfo(5) capability to tell tmux the terminal does not use bright 90 colours for bold. 91 92* Change g and G to go to top and bottom in menus. 93 94* Add a third state "all" to allow-passthrough to work even in invisible panes. 95 96* Add support for OSC 8 hyperlinks. 97 98* Store the time lines are scrolled into history and display in copy mode. 99 100* Add a %config-error reply to control mode for configuration file errors since 101 reporting them in view mode is useless. 102 103* A new feature flag (ignorefkeys) to ignore terminfo(5) function key 104 definitions for rxvt. 105 106* Pass through first argument to OSC 52 (which clipboards to set) if the 107 application provides it. 108 109* Expand arguments to send-keys, capture-pane, split-window, join-pane where it 110 makes sense to do so. 111 112* Ignore named buffers when choosing a buffer if one is not specified by the user. 113 114CHANGES FROM 3.3 TO 3.3a 115 116* Do not crash when run-shell produces output from a config file. 117 118* Do not unintentionally turn off all mouse mode when button mode is also 119 present. 120 121CHANGES FROM 3.2a TO 3.3 122 123* Add an ACL list for users connecting to the tmux socket. Users may be 124 forbidden from attaching, forced to attach read-only, or allowed to attach 125 read-write. A new command, server-access, configures the list. File system 126 permissions must still be configured manually. 127 128* Emit window-layout-changed on swap-pane. 129 130* Better error reporting when applying custom layouts. 131 132* Handle ANSI escape sequences in run-shell output. 133 134* Add pane_start_path to match start_command. 135 136* Set PWD so shells have a hint about the real path. 137 138* Do not allow pipe-pane on dead panes. 139 140* Do not report mouse positions (incorrectly) above the maximum of 223 in 141 normal mouse mode. 142 143* Add an option (default off) to control the passthrough escape sequence. 144 145* Support more mouse buttons when the terminal sends them. 146 147* Add a window-resized hook which is fired when the window is actually resized 148 which may be later than the client resize. 149 150* Add next_session_id format with the next session ID. 151 152* Add formats for client and server UID and user. 153 154* Add argument to refresh-client -l to forward clipboard to a pane. 155 156* Add remain-on-exit-format to set text shown when pane is dead. 157 158* With split-window -f use percentages of window size not pane size. 159 160* Add an option (fill-character) to set the character used for unused areas of 161 a client. 162 163* Add an option (scroll-on-clear) to control if tmux scrolls into history on 164 clear. 165 166* Add a capability for OSC 7 and use it similarly to how the title is set (and 167 controlled by the same set-titles option). 168 169* Add support for systemd socket activation (where systemd creates the Unix 170 domain socket for tmux rather than tmux creating it). Build with 171 --enable-systemd. 172 173* Add an option (pane-border-indicators) to select how the active pane is shown 174 on the pane border (colour, arrows or both). 175 176* Support underscore styles with capture-pane -e. 177 178* Make pane-border-format a pane option rather than window. 179 180* Respond to OSC 4 queries 181 182* Fix g/G keys in modes to do the same thing as copy mode (and vi). 183 184* Bump the time terminals have to respond to device attributes queries to three 185 seconds. 186 187* If automatic-rename is off, allow the rename escape sequence to set an empty 188 name. 189 190* Trim menu item text more intelligently. 191 192* Add cursor-style and cursor-colour options to set the default cursor style 193 and colour. 194 195* Accept some useful and non-conflicting emacs keys in vi normal mode at the 196 command prompt. 197 198* Add a format modifier (c) to force a colour to RGB. 199 200* Add -s and -S to display-popup to set styles, -b to set lines and -T to set 201 popup title. New popup-border-lines, popup-border-style and popup-style 202 options set the defaults. 203 204* Add -e flag to set an environment variable for a popup. 205 206* Make send-keys without arguments send the key it is bound to (if bound to a 207 key). 208 209* Try to leave terminal cursor at the right position even when tmux is drawing 210 its own cursor or selection (such as at the command prompt and in choose 211 mode) for people using screen readers and similar which can make use of it. 212 213* Change so that {} is converted to tmux commands immediately when parsed. This 214 means it must contain valid tmux commands. For commands which expand %% and 215 %%%, this now only happens within string arguments. Use of nested aliases 216 inside {} is now forbidden. Processing of commands given in quotes remains 217 the same. 218 219* Disable evports on SunOS since they are broken. 220 221* Do not expand the file given with tmux -f so it can contain :s. 222 223* Bump FORMAT_LOOP_LIMIT and add a log message when hit. 224 225* Add a terminal feature for the mouse (since FreeBSD termcap does not have kmous). 226 227* Forbid empty session names. 228 229* Improve error reporting when the tmux /tmp directory cannot be created or 230 used. 231 232* Give #() commands a one second grace period where the output is empty before 233 telling the user they aren't doing anything ("not ready"). 234 235* When building, pick default-terminal from the first of tmux-256color, tmux, 236 screen-256color, screen that is available on the build system (--with-TERM 237 can override). 238 239* Do not close popups on resize, instead adjust them to fit. 240 241* Add a client-active hook. 242 243* Make window-linked and window-unlinked window options. 244 245* Do not configure on macOS without the user making a choice about utf8proc 246 (either --enable-utf8proc or --disable-utf8proc). 247 248* Do not freeze output in panes when a popup is open, let them continue to 249 redraw. 250 251* Add pipe variants of the line copy commands. 252 253* Change copy-line and copy-end-of-line not to cancel and add -and-cancel 254 variants, like the other copy commands. 255 256* Support the OSC palette-setting sequences in popups. 257 258* Add a pane-colours array option to specify the defaults palette. 259 260* Add support for Unicode zero-width joiner. 261 262* Make newline a style delimiter as well so they can cross multiple lines for 263 readability in configuration files. 264 265* Change focus to be driven by events rather than scanning panes so the 266 ordering of in and out is consistent. 267 268* Add display-popup -B to open a popup without a border. 269 270* Add a menu for popups that can be opened with button three outside the popup 271 or on the left or top border. Resizing now only works on the right and bottom 272 borders or when using Meta. The menu allows a popup to be closed, expanded to 273 the full size of the client, centered in the client or changed into a pane. 274 275* Make command-prompt and confirm-before block by default (like run-shell). A 276 new -b flags runs them in the background as before. Also set return code for 277 confirm-before. 278 279* Change cursor style handling so tmux understands which sequences contain 280 blinking and sets the flag appropriately, means that it works whether cnorm 281 disables blinking or not. This now matches xterm's behaviour. 282 283* More accurate vi(1) word navigation in copy mode and on the status line. This 284 changes the meaning of the word-separators option: setting it to the empty 285 string is equivalent to the previous behavior. 286 287* Add -F for command-prompt and use it to fix "Rename" on the window menu. 288 289* Add different command histories for different types of prompts ("command", 290 "search" etc). 291 292CHANGES FROM 3.2 TO 3.2a 293 294* Add an "always" value for the "extended-keys" option; if set then tmux will 295 forward extended keys to applications even if they do not request them. 296 297* Add a "mouse" terminal feature so tmux can enable the mouse on terminals 298 where it is known to be supported even if terminfo(5) says otherwise. 299 300* Do not expand the filename given to -f so it can contain colons. 301 302* Fixes for problems with extended keys and modifiers, scroll region, 303 source-file, crosscompiling, format modifiers and other minor issues. 304 305CHANGES FROM 3.1c TO 3.2 306 307* Add a flag to disable keys to close a message. 308 309* Permit shortcut keys in buffer, client, tree modes to be configured with a 310 format (-K flag to choose-buffer, choose-client, choose-tree). 311 312* Add a current_file format for the config file being parsed. 313 314* When display-message used in config file, show the message after the config 315 file finishes. 316 317* Add client-detached notification in control mode. 318 319* Improve performance of format evaluation. 320 321* Make jump command support UTF-8 in copy mode. 322 323* Support X11 colour names and other colour formats for OSC 10 and 11. 324 325* Add "pipe" variants of "copy-pipe" commands which do not copy. 326 327* Include "focused" in client flags. 328 329* Send Unicode directional isolate characters around horizontal pane borders if 330 the terminal supports UTF-8 and an extension terminfo(5) capability "Bidi" is 331 present. 332 333* Add a -S flag to new-window to make it select the existing window if one 334 with the given name already exists rather than failing with an error. 335 336* Add a format modifier to check if a window or session name exists (N/w or 337 N/s). 338 339* Add compat clock_gettime for older macOS. 340 341* Add a no-detached choice to detach-on-destroy which detaches only if there 342 are no other detached sessions to switch to. 343 344* Add rectangle-on and rectangle-off copy mode commands. 345 346* Change so that window_flags escapes # automatically. A new format 347 window_raw_flags contains the old unescaped version. 348 349* Add -N flag to never start server even if command would normally do so. 350 351* With incremental search, start empty and only repeat the previous search if 352 the user tries to search again with an empty prompt. 353 354* Add a value for remain-on-exit that only keeps the pane if the program 355 failed. 356 357* Add a -C flag to run-shell to use a tmux command rather than a shell command. 358 359* Do not list user options with show-hooks. 360 361* Remove current match indicator in copy mode which can't work anymore since we 362 only search the visible region. 363 364* Make synchronize-panes a pane option and add -U flag to set-option to unset 365 an option on all panes. 366 367* Make replacement of ##s consistent when drawing formats, whether followed by 368 [ or not. Add a flag (e) to the q: format modifier to double up #s. 369 370* Add -N flag to display-panes to ignore keys. 371 372* Change how escaping is processed for formats so that ## and # can be used in 373 styles. 374 375* Add a 'w' format modifier for string width. 376 377* Add support for Haiku. 378 379* Expand menu and popup -x and -y as formats. 380 381* Add numeric comparisons for formats. 382 383* Fire focus events even when the pane is in a mode. 384 385* Add -O flag to display-menu to not automatically close when all mouse buttons 386 are released. 387 388* Allow fnmatch(3) wildcards in update-environment. 389 390* Disable nested job expansion so that the result of #() is not expanded again. 391 392* Use the setal capability as well as (tmux's) Setulc. 393 394* Add -q flag to unbind-key to hide errors. 395 396* Allow -N without a command to change or add a note to an existing key. 397 398* Add a -w flag to set- and load-buffer to send to clipboard using OSC 52. 399 400* Add -F to set-environment and source-file. 401 402* Allow colour to be spelt as color in various places. 403 404* Add n: modifier to get length of a format. 405 406* Respond to OSC colour requests if a colour is available. 407 408* Add a -d option to display-message to set delay. 409 410* Add a way for control mode clients to subscribe to a format and be notified 411 of changes rather than having to poll. 412 413* Add some formats for search in copy mode (search_present, search_match). 414 415* Do not wait on shutdown for commands started with run -b. 416 417* Add -b flags to insert a window before (like the existing -a for after) to 418 break-pane, move-window, new-window. 419 420* Make paste -p the default for ]. 421 422* Add support for pausing a pane when the output buffered for a control mode 423 client gets too far behind. The pause-after flag with a time is set on the 424 pane with refresh-client -f and a paused pane may be resumed with 425 refresh-client -A. 426 427* Allow strings in configuration files to span multiple lines - newlines and 428 any leading whitespace are removed, as well as any following comments that 429 couldn't be part of a format. This allows long formats or other strings to be 430 annotated and indented. 431 432* Instead of using a custom parse function to process {} in configuration 433 files, treat as a set of statements the same as outside {} and convert back 434 to a string as the last step. This means the rules are consistent inside and 435 outside {}, %if and friends work at the right time, and the final result 436 isn't littered with unnecessary newlines. 437 438* Add support for extended keys - both xterm(1)'s CSI 27 ~ sequence and the 439 libtickit CSI u sequence are accepted; only the latter is output. tmux will 440 only attempt to use these if the extended-keys option is on and it can detect 441 that the terminal outside supports them (or is told it does with the 442 "extkeys" terminal feature). 443 444* Add an option to set the pane border lines style from a choice of single 445 lines (ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or number 446 (the pane numbers). Lines that won't work on a non-UTF-8 terminal are 447 translated back into ACS when they are output. 448 449* Make focus events update the latest client (like a key press). 450 451* Store UTF-8 characters differently to reduce memory use. 452 453* Fix break-pane -n when only one pane in the window. 454 455* Instead of sending all data to control mode clients as fast as possible, add 456 a limit of how much data will be sent to the client and try to use it for 457 panes with some degree of fairness. 458 459* Add an active-pane client flag (set with attach-session -f, new-session -f 460 or refresh-client -f). This allows a client to have an independent active 461 pane for interactive use (the window client pane is still used for many 462 things however). 463 464* Add a mark to copy mode, this is set with the set-mark command (bound to X) 465 and appears with the entire line shown using copy-mode-mark-style and the 466 marked character in reverse. The jump-to-mark command (bound to M-x) swaps 467 the mark and the cursor positions. 468 469* Add a -D flag to make the tmux server run in the foreground and not as a 470 daemon. 471 472* Do not loop forever in copy mode when search finds an empty match. 473 474* Fix the next-matching-bracket logic when using vi(1) keys. 475 476* Add a customize mode where options may be browsed and changed, includes 477 adding a brief description of each option. Bound to C-b C by default. 478 479* Change message log (C-b ~) so there is one for the server rather than one per 480 client and it remains after detach, and make it useful by logging every 481 command. 482 483* Add M-+ and M-- to tree mode to expand and collapse all. 484 485* Change the existing client flags for control mode to apply for any client, 486 use the same mechanism for the read-only flag and add an ignore-size flag. 487 488 refresh-client -F has become -f (-F stays for backwards compatibility) and 489 attach-session and switch-client now have -f flags also. A new format 490 client_flags lists the flags and is shown by list-clients by default. 491 492 This separates the read-only flag from "ignore size" behaviour (new 493 ignore-size) flag - both behaviours are useful in different circumstances. 494 495 attach -r and switchc -r remain and set or toggle both flags together. 496 497* Store and restore cursor position when copy mode is resized. 498 499* Export TERM_PROGRAM and TERM_PROGRAM_VERSION like various other terminals. 500 501* Add formats for after hook command arguments: hook_arguments with all the 502 arguments together; hook_argument_0, hook_argument_1 and so on with 503 individual arguments; hook_flag_X if flag -X is present; hook_flag_X_0, 504 hook_flag_X_1 and so on if -X appears multiple times. 505 506* Try to search the entire history first for up to 200 ms so a search count can 507 be shown. If it takes too long, search the visible text only. 508 509* Use VIS_CSTYLE for paste buffers also (show \012 as \n). 510 511* Change default formats for tree mode, client mode and buffer mode to be more 512 compact and remove some clutter. 513 514* Add a key (e) in buffer mode to open the buffer in an editor. The buffer 515 contents is updated when the editor exits. 516 517* Add -e flag for new-session to set environment variables, like the same flag 518 for new-window. 519 520* Improve search match marking in copy mode. Two new options 521 copy-mode-match-style and copy-mode-current-match-style to set the style for 522 matches and for the current match respectively. Also a change so that if a 523 copy key is pressed with no selection, the current match (if any) is copied. 524 525* Sanitize session names like window names instead of forbidding invalid ones. 526 527* Check if the clear terminfo(5) capability starts with CSI and if so then 528 assume the terminal is VT100-like, rather than relying on the XT capability. 529 530* Improve command prompt tab completion and add menus both for strings and -t 531 and -s (when used without a trailing space). command-prompt has additional 532 flags for only completing a window (-W) and a target (-T), allowing C-b ' to 533 only show windows and C-b . only targets. 534 535* Change all the style options to string options so they can support formats. 536 Change pane-active-border-style to use this to change the border colour when 537 in a mode or with synchronize-panes on. This also implies a few minor changes 538 to existing behaviour: 539 540 - set-option -a with a style option automatically inserts a comma between the 541 old value and appended text. 542 543 - OSC 10 and 11 no longer set the window-style option, instead they store the 544 colour internally in the pane data and it is used as the default when the 545 option is evaluated. 546 547 - status-fg and -bg now override status-style instead of the option values 548 being changed. 549 550* Add extension terminfo(5) capabilities for margins and focus reporting. 551 552* Try $XDG_CONFIG_HOME/tmux/tmux.conf as well as ~/.config/tmux/tmux.conf for 553 configuration file (the search paths are in TMUX_CONF in Makefile.am). 554 555* Remove the DSR 1337 iTerm2 extension and replace by the extended device 556 attributes sequence (CSI > q) supported by more terminals. 557 558* Add a -s flag to copy-mode to specify a different pane for the source 559 content. This means it is possible to view two places in a pane's history at 560 the same time in different panes, or view the history while still using the 561 pane. Pressing r refreshes the content from the source pane. 562 563* Add an argument to list-commands to show only a single command. 564 565* Change copy mode to make copy of the pane history so it does not need to 566 freeze the pane. 567 568* Restore pane_current_path format from portable tmux on OpenBSD. 569 570* Wait until the initial command sequence is done before sending a device 571 attributes request and other bits that prompt a reply from the terminal. This 572 means that stray replies are not left on the terminal if the command has 573 attached and then immediately detached and tmux will not be around to receive 574 them. 575 576* Add a -f filter argument to the list commands like choose-tree. 577 578* Move specific hooks for panes to pane options and windows for window options 579 rather than all hooks being session options. These hooks are now window options: 580 581 window-layout-changed 582 window-linked 583 window-pane-changed 584 window-renamed 585 window-unlinked 586 587 And these are now pane options: 588 589 pane-died 590 pane-exited 591 pane-focus-in 592 pane-focus-out 593 pane-mode-changed 594 pane-set-clipboard 595 596 Any existing configurations using these hooks on a session rather than 597 globally (that is, set-hook or set-option without -g) may need to be changed. 598 599* Show signal names when a process exits with remain-on-exit on platforms which 600 have a way to get them. 601 602* Start menu with top item selected if no mouse and use mode-style for the 603 selected item. 604 605* Add a copy-command option and change copy-pipe and friends to pipe to it if 606 used without arguments, allows all the default copy key bindings to be 607 changed to pipe with one option rather than needing to change each key 608 binding individually. 609 610* Tidy up the terminal detection and feature code and add named sets of 611 terminal features, each of which are defined in one place and map to a 612 builtin set of terminfo(5) capabilities. Features can be specified based on 613 TERM with a new terminal-features option or with the -T flag when running 614 tmux. tmux will also detect a few common terminals from the DA and DSR 615 responses. 616 617 This is intended to make it easier to configure tmux's use of terminfo(5) 618 even in the presence of outdated ncurses(3) or terminfo(5) databases or for 619 features which do not yet have a terminfo(5) entry. Instead of having to grok 620 terminfo(5) capability names and what they should be set to in the 621 terminal-overrides option, the user can hopefully just give tmux a feature 622 name and let it do the right thing. 623 624 The terminal-overrides option remains both for backwards compatibility and to 625 allow tweaks of individual capabilities. 626 627* Support mintty's application escape sequence (means tmux doesn't have to 628 delay to wait for Escape, so no need to reduce escape-time when using 629 mintty). 630 631* Change so main-pane-width and height can be given as a percentage. 632 633* Support for the iTerm2 synchronized updates feature (allows the terminal to 634 avoid unnecessary drawing while output is still in progress). 635 636* Make the mouse_word and mouse_line formats work in copy mode and enable the 637 default pane menu in copy mode. 638 639* Add a -T flag to resize-pane to trim lines below the cursor, moving lines out 640 of the history. 641 642* Add a way to mark environment variables as "hidden" so they can be used by 643 tmux (for example in formats) but are not set in the environment for new 644 panes. set-environment and show-environment have a new -h flag and there is a 645 new %hidden statement for the configuration file. 646 647* Change default position for display-menu -x and -y to centre rather than top 648 left. 649 650* Add support for per-client transient popups, similar to menus but which are 651 connected to an external command (like a pane). These are created with new 652 command display-popup. 653 654* Change double and triple click bindings so that only one is fired (previously 655 double click was fired on the way to triple click). Also add default double 656 and triple click bindings to copy the word or line under the cursor and 657 change the existing bindings in copy mode to do the same. 658 659* Add a default binding for button 2 to paste. 660 661* Add -d flag to run-shell to delay before running the command and allow it to 662 be used without a command so it just delays. 663 664* Add C-g to cancel command prompt with vi keys as well as emacs, and q in 665 command mode. 666 667* When the server socket is given with -S, create it with umask 177 instead of 668 117 (because it may not be in a safe directory like the default directory in 669 /tmp). 670 671* Add a copy-mode -H flag to hide the position marker in the top right. 672 673* Add number operators for formats (+, -, *, / and m), 674 675CHANGED FROM 3.1b TO 3.1c 676 677* Do not write after the end of the array and overwrite the stack when 678 colon-separated SGR sequences contain empty arguments. 679 680CHANGES FROM 3.1a TO 3.1b 681 682* Fix build on systems without sys/queue.h. 683 684* Fix crash when allow-rename is on and an empty name is set. 685 686CHANGES FROM 3.1 TO 3.1a 687 688* Do not close stdout prematurely in control mode since it is needed to print 689 exit messages. Prevents hanging when detaching with iTerm2. 690 691CHANGES FROM 3.0a TO 3.1 692 693* Only search the visible part of the history when marking (highlighting) 694 search terms. This is much faster than searching the whole history and solves 695 problems with large histories. The count of matches shown is now the visible 696 matches rather than all matches. 697 698* Search using regular expressions in copy mode. search-forward and 699 search-backward use regular expressions by default; the incremental versions 700 do not. 701 702* Turn off mouse mode 1003 as well as the rest when exiting. 703 704* Add selection_active format for when the selection is present but not moving 705 with the cursor. 706 707* Fix dragging with modifier keys, so binding keys such as C-MouseDrag1Pane and 708 C-MouseDragEnd1Pane now work. 709 710* Add -a to list-keys to also list keys without notes with -N. 711 712* Do not jump to next word end if already on a word end when selecting a word; 713 fixes select-word with single character words and vi(1) keys. 714 715* Fix top and bottom pane calculation with pane border status enabled. 716 717* Add support for adding a note to a key binding (with bind-key -N) and use 718 this to add descriptions to the default key bindings. A new -N flag to 719 list-keys shows key bindings with notes. Change the default ? binding to use 720 this to show a readable summary of keys. Also extend command-prompt to return 721 the name of the key pressed and add a default binding (/) to show the note 722 for the next key pressed. 723 724* Add support for the iTerm2 DSR 1337 sequence to get the terminal version. 725 726* Treat plausible but invalid keys (like C-BSpace) as literal like any other 727 unrecognised string passed to send-keys. 728 729* Detect iTerm2 and enable use of DECSLRM (much faster with horizontally split 730 windows). 731 732* Add -Z to default switch-client command in tree mode. 733 734* Add ~ to quoted characters for %%%. 735 736* Document client exit messages in the manual page. 737 738* Do not let read-only clients limit the size, unless all clients are 739 read-only. 740 741* Add a number of new formats to inspect what sessions and clients a window is 742 present or active in. 743 744* Change file reading and writing to go through the client if necessary. This 745 fixes commands like "tmux loadb /dev/fd/X". Also modify source-file to 746 support "-" for standard input, like load-buffer and save-buffer. 747 748* Add ~/.config/tmux/tmux.conf to the default search path for configuration 749 files. 750 751* Bump the escape sequence timeout to five seconds to allow for longer 752 legitimate sequences. 753 754* Make a best effort to set xpixel and ypixel for each pane and add formats for 755 them. 756 757* Add push-default to status-left and status-right in status-format[0]. 758 759* Do not clear search marks on cursor movement with vi(1) keys. 760 761* Add p format modifier for padding to width and allow multiple substitutions 762 in a single format. 763 764* Add -f for full size to join-pane (like split-window). 765 766* Do not use bright when emulating 256 colours on an 8 colour terminal because 767 it is also bold on some terminals. 768 769* Make select-pane -P set window-active-style also to match previous behaviour. 770 771* Do not truncate list-keys output. 772 773* Turn automatic-rename back on if the \033k rename escape sequence is used 774 with an empty name. 775 776* Add support for percentage sizes for resize-pane ("-x 10%"). Also change 777 split-window and join-pane -l to accept similar percentages and deprecate the 778 -p flag. 779 780* Add -F flag to send-keys to expand formats in search-backward and forward 781 copy mode commands and copy_cursor_word and copy_cursor_line formats for word 782 and line at cursor in copy mode. Use for default # and * binding with vi(1) 783 keys. 784 785* Add formats for word and line at cursor position in copy mode. 786 787* Add formats for cursor and selection position in copy mode. 788 789* Support all the forms of RGB colour strings in OSC sequences rather than 790 requiring two digits. 791 792* Limit lazy resize to panes in attached sessions only. 793 794* Add an option to set the key sent by backspace for those whose system uses ^H 795 rather than ^?. 796 797* Change new-session -A without a session name (that is, no -s option also) to 798 attach to the best existing session like attach-session rather than a new 799 one. 800 801* Add a "latest" window-size option which tries to size windows based on the 802 most recently used client. This is now the default. 803 804* Add simple support for OSC 7 (result is available in the pane_path format). 805 806* Add push-default and pop-default for styles which change the colours and 807 attributes used for #[default]. These are used in status-format to restore 808 the behaviour of window-status-style being the default for 809 window-status-format. 810 811* Add window_marked_flag. 812 813* Add cursor-down-and-cancel in copy mode. 814 815* Default to previous search string for search-forward and search-backward. 816 817* Add -Z flag to rotate-window, select-pane, swap-pane, switch-client to 818 preserve zoomed state. 819 820* Add -N to capture-pane to preserve trailing spaces. 821 822* Add reverse sorting in tree, client and buffer modes. 823 824CHANGES FROM 3.0 TO 3.0a 825 826* Do not require REG_STARTEND. 827 828* Respawn panes or windows correctly if default-command is set. 829 830* Add missing option for after-kill-pane hook. 831 832* Fix for crash with a format variable that doesn't exist. 833 834* Do not truncate list-keys output on some platforms. 835 836* Do not crash when restoring a layout with only one pane. 837 838CHANGES FROM 2.9 TO 3.0 839 840* Workaround invalid layout strings generated by older tmux versions and add 841 some additional sanity checks 842 843* xterm 348 now disables margins when resized, so send DECLRMM again after 844 resize. 845 846* Add support for the SD (scroll down) escape sequence. 847 848* Expand arguments to C and s format modifiers to match the m modifier. 849 850* Add support for underscore colours (Setulc capability must be added with 851 terminal-overrides as described in tmux(1)). 852 853* Add a "fill" style attribute for the fill colour of the drawing area (where 854 appropriate). 855 856* New -H flag to send-keys to send literal keys. 857 858* Format variables for pane mouse modes (mouse_utf8_flag and mouse_sgr_flag) 859 and for origin mode (origin_flag). 860 861* Add -F to refresh-client for flags for control mode clients, only one flag 862 (no-output) supported at the moment. 863 864* Add a few vi(1) keys for menus. 865 866* Add pane options, set with set-option -p and displayed with show-options -p. 867 Pane options inherit from window options (so every pane option is also 868 a window option). The pane style is now configured by setting window-style 869 and window-active-style in the pane options; select-pane -P and -g now change 870 the option but are no longer documented. 871 872* Do not document set-window-option and show-window-options. set-option -w and 873 show-options -w should be used instead. 874 875* Add a -A flag to show-options to show parent options as well (they are marked 876 with a *). 877 878* Resize panes lazily - do not resize unless they are in an attached, active 879 window. 880 881* Add regular expression support for the format search, match and substitute 882 modifiers and make them able to ignore case. find-window now accepts -r to 883 use regular expressions. 884 885* Do not use $TMUX to find the session because for windows in multiple sessions 886 it is wrong as often as it is right, and for windows in one session it is 887 pointless. Instead use TMUX_PANE if it is present. 888 889* Do not always resize the window back to its original size after applying a 890 layout, keep it at the layout size until it must be resized (for example when 891 attached and window-size is not manual). 892 893* Add new-session -X and attach-session -x to send SIGHUP to parent when 894 detaching (like detach-client -P). 895 896* Support for octal escapes in strings (such as \007) and improve list-keys 897 output so it parses correctly if copied into a configuration file. 898 899* INCOMPATIBLE: Add a new {} syntax to the configuration file. This is a string 900 similar to single quotes but also includes newlines and allows commands that 901 take other commands as string arguments to be expressed more clearly and 902 without additional escaping. 903 904 A literal { and } or a string containing { or } must now be escaped or 905 quoted, for example '{' and '}' instead of { or }, or 'X#{foo}' instead of 906 X#{foo}. 907 908* New <, >, <= and >= comparison operators for formats. 909 910* Improve escaping of special characters in list-keys output. 911 912* INCOMPATIBLE: tmux's configuration parsing has changed to use yacc(1). There 913 is one incompatible change: a \ on its own must be escaped or quoted as 914 either \\ or '\' (the latter works on older tmux versions). 915 916 Entirely the same parser is now used for parsing the configuration file 917 and for string commands. This means that constructs previously only 918 available in .tmux.conf, such as %if, can now be used in string commands 919 (for example, those given to if-shell - not commands invoked from the 920 shell, they are still parsed by the shell itself). 921 922* Add support for the overline attribute (SGR 53). The Smol capability is 923 needed in terminal-overrides. 924 925* Add the ability to create simple menus. Introduces new command 926 display-menu. Default menus are bound to MouseDown3 on the status line; 927 MouseDown3 or M-MouseDown3 on panes; MouseDown3 in tree, client and 928 buffer modes; and C-b < and >. 929 930* Allow panes to be empty (no command). They can be created either by piping to 931 split-window -I, or by passing an empty command ('') to split-window. Output 932 can be sent to an existing empty window with display-message -I. 933 934* Add keys to jump between matching brackets (emacs C-M-f and C-M-b, vi %). 935 936* Add a -e flag to new-window, split-window, respawn-window, respawn-pane to 937 pass environment variables into the newly created process. 938 939* Hooks are now stored in the options tree as array options, allowing them to 940 have multiple separate commands. set-hook and show-hooks remain but 941 set-option and show-options can now also be used (show-options will only show 942 hooks if given the -H flag). Hooks with multiple commands are run in index 943 order. 944 945* Automatically scroll if dragging to create a selection with the mouse and the 946 cursor reaches the top or bottom line. 947 948* Add -no-clear variants of copy-selection and copy-pipe which do not clear the 949 selection after copying. Make copy-pipe clear the selection by default to be 950 consistent with copy-selection. 951 952* Add an argument to copy commands to set the prefix for the buffer name, this 953 (for example) allows buffers for different sessions to be named separately. 954 955* Update session activity on focus event. 956 957* Pass target from source-file into the config file parser so formats in %if 958 and %endif have access to more useful variables. 959 960* Add the ability to infer an option type (server, session, window) from its 961 name to show-options (it was already present in set-option). 962 963CHANGES FROM 2.9 TO 2.9a 964 965* Fix bugs in select-pane and the main-horizontal and main-vertical layouts. 966 967CHANGES FROM 2.8 TO 2.9 968 969* Attempt to preserve horizontal cursor position as well as vertical with 970 reflow. 971 972* Rewrite main-vertical and horizontal and change layouts to better handle the 973 case where all panes won't fit into the window size, reduce problems with 974 pane border status lines and fix other bugs mostly found by Thomas Sattler. 975 976* Add format variables for the default formats in the various modes 977 (tree_mode_format and so on) and add a -a flag to display-message to list 978 variables with values. 979 980* Add a -v flag to display-message to show verbose messages as the format is 981 parsed, this allows formats to be debugged 982 983* Add support for HPA (\033[`). 984 985* Add support for origin mode (\033[?6h). 986 987* No longer clear history on RIS. 988 989* Extend the #[] style syntax and use that together with previous format 990 changes to allow the status line to be entirely configured with a single 991 option. 992 993 Now that it is possible to configure their content, enable the existing code 994 that lets the status line be multiple lines in height. The status option can 995 now take a value of 2, 3, 4 or 5 (as well as the previous on or off) to 996 configure more than one line. The new status-format array option configures 997 the format of each line, the default just references the existing status-* 998 options, although some of the more obscure status options may be eliminated 999 in time. 1000 1001 Additions to the #[] syntax are: "align" to specify alignment (left, centre, 1002 right), "list" for the window list and "range" to configure ranges of text 1003 for the mouse bindings. 1004 1005 The "align" keyword can also be used to specify alignment of entries in tree 1006 mode and the pane status lines. 1007 1008* Add E: and T: format modifiers to expand a format twice (useful to expand the 1009 value of an option). 1010 1011* The individual -fg, -bg and -attr options have been removed; they 1012 were superseded by -style options in tmux 1.9. 1013 1014* Allow more than one mode to be opened in a pane. Modes are kept on a stack 1015 and retrieved if the same mode is entered again. Exiting the active mode goes 1016 back to the previous one. 1017 1018* When showing command output in copy mode, call it view mode instead (affects 1019 pane_mode format). 1020 1021* Add -b to display-panes like run-shell. 1022 1023* Handle UTF-8 in word-separators option. 1024 1025* New "terminal" colour allowing options to use the terminal default colour 1026 rather than inheriting the default from a parent option. 1027 1028* Do not move the cursor in copy mode when the mouse wheel is used. 1029 1030* Use the same working directory rules for jobs as new windows rather than 1031 always starting in the user's home. 1032 1033* Allow panes to be one line or column in size. 1034 1035* Go to last line when goto-line number is out of range in copy mode. 1036 1037* Yank previously cut text if any with C-y in the command prompt, only use the 1038 buffer if no text has been cut. 1039 1040* Add q: format modifier to quote shell special characters. 1041 1042* Add StatusLeft and StatusRight mouse locations (keys such as 1043 MouseDown1StatusLeft) for the status-left and status-right areas of the 1044 status line. 1045 1046* Add -Z to find-window. 1047 1048* Support for windows larger than the client. This adds two new options, 1049 window-size and default-size, and a new command, resize-window. The 1050 force-width and force-height options and the session_width and session_height 1051 formats have been removed. 1052 1053 The new window-size option tells tmux how to work out the size of windows: 1054 largest means it picks the size of the largest session, smallest the smallest 1055 session (similar to the old behaviour) and manual means that it does not 1056 automatically resize windows. aggressive-resize modifies the choice of 1057 session for largest and smallest as it did before. 1058 1059 If a window is in a session attached to a client that is too small, only part 1060 of the window is shown. tmux attempts to keep the cursor visible, so the part 1061 of the window displayed is changed as the cursor moves (with a small delay, 1062 to try and avoid excess redrawing when applications redraw status lines or 1063 similar that are not currently visible). 1064 1065 Drawing windows which are larger than the client is not as efficient as those 1066 which fit, particularly when the cursor moves, so it is recommended to avoid 1067 using this on slow machines or networks (set window-size to smallest or 1068 manual). 1069 1070 The resize-window command can be used to resize a window manually. If it is 1071 used, the window-size option is automatically set to manual for the window 1072 (undo this with "setw -u window-size"). resize-window works in a similar way 1073 to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a 1074 sets the window to the size of the smallest client (what it would be if 1075 window-size was smallest) and -A the largest. 1076 1077 For the same behaviour as force-width or force-height, use resize-window -x 1078 or -y. 1079 1080 If the global window-size option is set to manual, the default-size option is 1081 used for new windows. If -x or -y is used with new-session, that sets the 1082 default-size option for the new session. 1083 1084 The maximum size of a window is 10000x10000. But expect applications to 1085 complain and higher memory use if making a window that big. The minimum size 1086 is the size required for the current layout including borders. 1087 1088 The refresh-client command can be used to pan around a window, -U -D -L -R 1089 moves up, down, left or right and -c returns to automatic cursor 1090 tracking. The position is reset when the current window is changed. 1091 1092CHANGES FROM 2.7 TO 2.8 1093 1094* Make display-panes block the client until a pane is chosen or it 1095 times out. 1096 1097* Clear history on RIS like most other terminals do. 1098 1099* Add an "Any" key to run a command if a key is pressed that is not 1100 bound in the current key table. 1101 1102* Expand formats in load-buffer and save-buffer. 1103 1104* Add a rectangle_toggle format. 1105 1106* Add set-hook -R to run a hook immediately. 1107 1108* Add README.ja. 1109 1110* Add pane focus hooks. 1111 1112* Allow any punctuation as separator for s/x/y not only /. 1113 1114* Improve resizing with the mouse (fix resizing the wrong pane in some 1115 layouts, and allow resizing multiple panes at the same time). 1116 1117* Allow , and } to be escaped in formats as #, and #}. 1118 1119* Add KRB5CCNAME to update-environment. 1120 1121* Change meaning of -c to display-message so the client is used if it 1122 matches the session given to -t. 1123 1124* Fixes to : form of SGR. 1125 1126* Add x and X to choose-tree to kill sessions, windows or panes. 1127 1128CHANGES FROM 2.6 TO 2.7 1129 1130* Remove EVENT_* variables from environment on platforms where tmux uses them 1131 so they do not pass on to panes. 1132 1133* Fixes for hooks at server exit. 1134 1135* Remove SGR 10 (was equivalent to SGR 0 but no other terminal seems to do 1136 this). 1137 1138* Expand formats in window and session names. 1139 1140* Add -Z flag to choose-tree, choose-client, choose-buffer to automatically 1141 zoom the pane when the mode is entered and unzoom when it exits, assuming the 1142 pane is not already zoomed. This is now part of the default key bindings. 1143 1144* Add C-g to exit modes with emacs keys. 1145 1146* Add exit-empty option to exit server if no sessions (defaults to on). 1147 1148* Show if a filter is present in choose modes. 1149 1150* Add pipe-pane -I to to connect stdin of the child process. 1151 1152* Performance improvements for reflow. 1153 1154* Use RGB terminfo(5) capability to detect RGB colour terminals (the existing 1155 Tc extension remains unchanged). 1156 1157* Support for ISO colon-separated SGR sequences. 1158 1159* Add select-layout -E to spread panes out evenly (bound to E key). 1160 1161* Support wide characters properly when reflowing. 1162 1163* Pass PWD to new panes as a hint to shells, as well as calling chdir(). 1164 1165* Performance improvements for the various choose modes. 1166 1167* Only show first member of session groups in tree mode (-G flag to choose-tree 1168 to show all). 1169 1170* Support %else in config files to match %if; from Brad Town in GitHub issue 1171 1071. 1172 1173* Fix "kind" terminfo(5) capability to be S-Down not S-Up. 1174 1175* Add a box around the preview label in tree mode. 1176 1177* Show exit status and time in the remain-on-exit pane text; from Timo 1178 Boettcher in GitHub issue 1103. 1179 1180* Correctly use pane-base-index in tree mode. 1181 1182* Change the allow-rename option default to off. 1183 1184* Support for xterm(1) title stack escape sequences (GitHub issue 1075 from 1185 Brad Town). 1186 1187* Correctly remove padding cells to fix a UTF-8 display problem (GitHub issue 1188 1090). 1189 1190CHANGES FROM 2.5 TO 2.6, 05 October 2017 1191 1192* Add select-pane -T to set pane title. 1193 1194* Fix memory leak when lines with BCE are removed from history. 1195 1196* Fix (again) the "prefer unattached" behaviour of attach-session. 1197 1198* Reorder how keys are checked to allow keys to be specified that have a 1199 leading escape. GitHub issue 1048. 1200 1201* Support REP escape sequence (\033[b). 1202 1203* Run alert hooks based on options rather than always, and allow further bells 1204 even if there is an existing bell. 1205 1206* Add -d flag to display-panes to override display-panes-time. 1207 1208* Add selection_present format when in copy mode (allows key bindings that do 1209 something different if there is a selection). 1210 1211* Add pane_at_left, pane_at_right, pane_at_top and pane_at_bottom formats. 1212 1213* Make bell, activity and silence alerting more consistent by: removing the 1214 bell-on-alert option; adding activity-action and silence-action options with 1215 the same possible values as the existing bell-action; adding a "both" value 1216 for the visual-bell, visual-activity and visual-silence options to trigger 1217 both a bell and a message. 1218 1219* Add a pane_pipe format to show if pipe-pane is active. 1220 1221* Block signals between forking and resetting signal handlers so that the 1222 libevent signal handler doesn't get called in the child and incorrectly write 1223 into the signal pipe that it still shares with the parent. GitHub issue 1001. 1224 1225* Allow punctuation in pane_current_command. 1226 1227* Add -c for respawn-pane and respawn-window. 1228 1229* Wait for any remaining data to flush when a pane is closed while pipe-pane is 1230 in use. 1231 1232* Fix working out current client with no target. GitHub issue 995. 1233 1234* Try to fallback to C.UTF-8 as well as en_US.UTF-8 when looking for a UTF-8 1235 locale. 1236 1237* Add user-keys option for user-defined key escape sequences (mapped to User0 1238 to User999 keys). 1239 1240* Add pane-set-clipboard hook. 1241 1242* FAQ file has moved out of repository to online. 1243 1244* Fix problem with high CPU usage when a client dies unexpectedly. GitHub issue 1245 941. 1246 1247* Do a dance on OS X 10.10 and above to return tmux to the user namespace, 1248 allowing access to the clipboard. 1249 1250* Do not allow escape sequences which expect a specific terminator (APC, DSC, 1251 OSC) to wait for forever - use a small timeout. This reduces the chance of 1252 the pane locking up completely when sent garbage (cat /dev/random or 1253 similar). 1254 1255* Support SIGUSR2 to toggle logging on a running server, also generate the 1256 "out" log file with -vv not -vvvv. 1257 1258* Make set-clipboard a three state option: on (tmux both sends to outside 1259 terminal and accepts from applications inside); external (tmux sends outside 1260 but does not accept inside); and off. 1261 1262* Fix OSC 4 palette setting for bright foreground colours. GitHub issue 954. 1263 1264* Use setrgbf and setrgbb terminfo(5) capabilities to set RGB colours, if they 1265 are available. (Tc is still supported as well.) 1266 1267* Fix redrawing panes when they are resized several times but end up with the 1268 size unchanged (for example, splitw/resizep -Z/breakp). 1269 1270* Major rewrite of choose mode. Now includes preview, sorting, searching and 1271 tagging; commands that can be executed directly from the mode (for example, 1272 to delete one or more buffers); and filtering in tree mode. 1273 1274* choose-window and choose-session are now aliases of choose-tree (in the 1275 command-alias option). 1276 1277* Support OSC 10 and OSC 11 to set foreground and background colours. 1278 1279* Check the U8 capability to determine whether to use UTF-8 line drawing 1280 characters for ACS. 1281 1282* Some missing notifications for layout changes. 1283 1284* Control mode clients now do not affect session sizes until they issue 1285 refresh-client -C. new-session -x and -y works with control clients even if 1286 the session is not detached. 1287 1288* All new sessions that are unattached (whether with -d or started with no 1289 terminal) are now created with size 80 x 24. Whether the status line is on or 1290 off does not affect the size of new sessions until they are attached. 1291 1292* Expand formats in option names and add -F flag to expand them in option values. 1293 1294* Remember the search string for a pane even if copy mode is exited and entered 1295 again. 1296 1297* Some further BCE fixes (scroll up, reverse index). 1298 1299* Improvements to how terminals are cleared (entirely or partially). 1300 1301CHANGES FROM 2.4 TO 2.5, 09 May 2017 1302 1303* Reset updated flag when restarting #() command so that new output is properly 1304 recognised. GitHub issue 922. 1305 1306* Fix ECH with a background colour. 1307 1308* Do not rely on the terminal not moving the cursor after DL or EL. 1309 1310* Fix send-keys and send-prefix in copy-mode (so C-b C-b works). GitHub issue 1311 905. 1312 1313* Set the current pane for rotate-window so it works in command sequences. 1314 1315* Add pane_mode format. 1316 1317* Differentiate M-Up from Escape+Up when possible (that is, in terminals with 1318 xterm(1) style function keys). GitHub issue 907. 1319 1320* Add session_stack and window_stack_index formats. 1321 1322* Some new control mode notifications and corresponding hooks: 1323 pane-mode-changed, window-pane-changed, client-session-changed, 1324 session-window-changed. 1325 1326* Format pane_search_string for last search term while in copy mode (useful 1327 with command-prompt -I). 1328 1329* Fix a problem with high CPU usage and multiple clients with #(). GitHub issue 1330 889. 1331 1332* Fix UTF-8 combining characters in column 0. 1333 1334* Fix reference counting so that panes are properly destroyed and their 1335 processes killed. 1336 1337* Clamp SU (CSI S) parameter to work around a bug in Konsole. 1338 1339* Tweak line wrapping in full width panes to play more nicely with terminal 1340 copy and paste. 1341 1342* Fix when we emit SGR 0 in capture-pane -e. 1343 1344* Do not change TERM until after config file parsing has finished, so that 1345 commands run inside the config file can use it to make decisions (typically 1346 about default-terminal). 1347 1348* Make the initial client wait until config file parsing has finished to avoid 1349 racing with commands. 1350 1351* Fix core when if-shell fails. 1352 1353* Only use ED to clear screen if the pane is at the bottom. 1354 1355* Fix multibyte UTF-8 output. 1356 1357* Code improvements around target (-t) resolution. 1358 1359* Change how the default target (for commands without -t) is managed across 1360 command sequences: now it is set up at the start and commands are required 1361 to update it if needed. Fixes binding command sequences to mouse keys. 1362 1363* Make if-shell from the config file work correctly. 1364 1365* Change to always check the root key table if no binding is found in the 1366 current table (prefix table or copy-mode table or whatever). This means that 1367 root key bindings will take effect even in copy mode, if not overridden by a 1368 copy mode key binding. 1369 1370* Fix so that the history file works again. 1371 1372* Run config file without a client rather than using the first client, restores 1373 previous behaviour. 1374 1375* If a #() command doesn't exit, continue to read from it and use its last full 1376 line of output. 1377 1378* Handle slow terminals and fast output better: when the amount of data 1379 outstanding gets too large, discard output until it is drained and we are 1380 able to do a full redraw. Prevents tmux sitting on a huge buffer that the 1381 terminal will take forever to consume. 1382 1383* Do not redraw a client unless we realistically think it can accept the data - 1384 defer redraws until the client has nothing else waiting to write. 1385 1386CHANGES FROM 2.3 TO 2.4, 20 April 2017 1387 1388Incompatible Changes 1389==================== 1390 1391* Key tables have undergone major changes. Mode key tables are no longer 1392 separate from the main key tables. All mode key tables have been removed, 1393 together with the -t flag to bind-key and unbind-key. 1394 1395 The emacs-edit, vi-edit, emacs-choose and vi-choose tables have been replaced 1396 by fixed key bindings in the command prompt and choose modes. The mode-keys 1397 and status-keys options remain. 1398 1399 The emacs-copy and vi-copy tables have been replaced by the copy-mode and 1400 copy-mode-vi tables. Commands are sent using the -X and -N flags to 1401 send-keys. So the following: 1402 1403 bind -temacs-copy C-Up scroll-up 1404 bind -temacs-copy -R5 WheelUpPane scroll-up 1405 1406 Becomes: 1407 1408 bind -Tcopy-mode C-Up send -X scroll-up 1409 bind -Tcopy-mode WheelUpPane send -N5 -X scroll-up 1410 1411 These changes allows the full command parser (including command sequences) and 1412 command set to be used - for example, the normal command prompt with editing 1413 and history is now used for searching, jumping, and so on instead of a custom 1414 one. The default C-r binding is now: 1415 1416 bind -Tcopy-mode C-r command-prompt -i -p'search up' "send -X search-backward-incremental '%%'" 1417 1418 There are also some new commands available with send -X, such as 1419 copy-pipe-and-cancel. 1420* set-remain-on-exit has gone -- can be achieved with hooks instead. 1421* Hooks: before hooks have been removed and only a selection of commands now 1422 have after hooks (they are no longer automatic). Additional hooks have been 1423 added. 1424* The xterm-keys option now defaults to on. 1425 1426Normal Changes 1427============== 1428 1429* Support for mouse double and triple clicks. 1430* BCE (Background Colour Erase) is now supported. 1431* All occurrences of a search string in copy mode are now highlighted; 1432 additionally, the number of search results is displayed. The highlighting 1433 updates interactively with the default emacs key bindings (incremental 1434 search). 1435* source-file now understands glob patterns. 1436* Formats now have simple comparisons: 1437 1438 #{==:a,b} 1439 #{!=:a,b} 1440 1441* There are the following new formats: 1442 1443 - #{version} -- the tmux server version; 1444 - #{client_termtype} -- the terminal type of the client; 1445 - #{client_name} -- the name of a client; 1446 - #{client_written} -- the number of bytes written to the client. 1447 1448* The configuration file now accepts %if/%endif conditional blocks which are 1449 processed when it is parsed; the argument is a format string (useful with the 1450 new format comparison options). 1451* detach-client now has -E to execute a command replacing the client instead of 1452 exiting. 1453* Add support for custom command aliases, this is an array option which 1454 contains items of the form "alias=command". This is consulted when an 1455 unknown command is parsed. 1456* break-pane now has -n to specify the new window name. 1457* OSC 52 support has been added for programs inside tmux to set a tmux buffer. 1458* The mouse "all event" mode (1003) is now supported. 1459* Palette setting is now possible (OSC 4 and 104). 1460* Strikethrough support (a recent terminfo is required). 1461* Grouped sessions can now be named (new -t). 1462* terminal-overrides and update-environment are now array options (the previous 1463 set -ag syntax should work without change). 1464* There have been substantial performance improvements. 1465 1466CHANGES FROM 2.2 TO 2.3, 29 September 2016 1467 1468Incompatible Changes 1469==================== 1470 1471None. 1472 1473Normal Changes 1474============== 1475 1476* New option 'pane-border-status' to add text in the pane borders. 1477* Support for hooks on commands: 'after' and 'before' hooks. 1478* 'source-file' understands '-q' to suppress errors for nonexistent files. 1479* Lots of UTF8 improvements, especially on MacOS. 1480* 'window-status-separator' understands #[] expansions. 1481* 'split-window' understands '-f' for performing a full-width split. 1482* Allow report count to be specified when using 'bind-key -R'. 1483* 'set -a' for appending to user options (@foo) is now supported. 1484* 'display-panes' can now accept a command to run, rather than always 1485 selecting the pane. 1486 1487CHANGES FROM 2.1 TO 2.2, 10 April 2016 1488 1489Incompatible Changes 1490==================== 1491 1492* The format strings which referenced time have been removed. Instead: 1493 1494 #{t:window_activity} 1495 1496can be used. 1497 1498* Support for TMPDIR has been removed. Use TMUX_TMPDIR instead. 1499* UTF8 detection now happens automatically if the client supports it, hence 1500 the: 1501 1502 mouse-utf8 1503 utf8 1504 1505 options has been removed. 1506* The: 1507 1508 mouse_utf8_flag 1509 1510 format string has been removed. 1511* The -I option to show-messages has been removed. See: 1512 1513 #{t:start_time} 1514 1515 format option instead. 1516 1517Normal Changes 1518============== 1519 1520* Panes are unzoomed with selectp -LRUD 1521* New formats added: 1522 1523 #{scroll_position} 1524 #{socket_path} 1525 #{=10:...} -- limit to N characters (from the start) 1526 #{=-10:...} -- limit to N characters (from the end) 1527 #{t:...} -- used to format time-based formats 1528 #{b:...} -- used to ascertain basename from string 1529 #{d:...} -- used to ascertain dirname from string 1530 #{s:...} -- used to perform substitutions on a string 1531 1532* Job output is run via the format system, so formats work again 1533* If display-time is set to 0, then the indicators wait for a key to be 1534 pressed. 1535* list-keys and list-commands can be run without starting the tmux server. 1536* kill-session learns -C to clear all alerts in all windows of the session. 1537* Support for hooks (internal for now), but hooks for the following have been 1538 implemented: 1539 1540 alert-bell 1541 alert-silence 1542 alert-activity 1543 client-attached 1544 client-detached 1545 client-resized 1546 pane-died 1547 pane-exited 1548 1549* RGB (24bit) colour support. The 'Tc' flag must be set in the external TERM 1550 entry (using terminal-overrides or a custom terminfo entry). 1551 1552CHANGES FROM 2.0 TO 2.1, 18 October 2015 1553 1554Incompatible Changes 1555==================== 1556 1557* Mouse-mode has been rewritten. There's now no longer options for: 1558 - mouse-resize-pane 1559 - mouse-select-pane 1560 - mouse-select-window 1561 - mode-mouse 1562 1563 Instead there is just one option: 'mouse' which turns on mouse support 1564 entirely. 1565* 'default-terminal' is now a session option. Furthermore, if this is set 1566 to 'screen-*' then emulate what screen does. If italics are wanted, this 1567 can be set to 'tmux' but this is still new and not necessarily supported 1568 on all platforms with older ncurses installs. 1569* The c0-* options for rate-limiting have been removed. Instead, a backoff 1570 approach is used. 1571 1572Normal Changes 1573============== 1574 1575* New formats: 1576 - session_activity 1577 - window_linked 1578 - window_activity_format 1579 - session_alerts 1580 - session_last_attached 1581 - client_pid 1582 - pid 1583* 'copy-selection', 'append-selection', 'start-named-buffer' now understand 1584 an '-x' flag to prevent it exiting copying mode. 1585* 'select-pane' now understands '-P' to set window/pane background colours. 1586* 'renumber-windows' now understands windows which are unlinked. 1587* 'bind' now understands multiple key tables. Allows for key-chaining. 1588* 'select-layout' understands '-o' to undo the last layout change. 1589* The environment is updated when switching sessions as well as attaching. 1590* 'select-pane' now understands '-M' for marking a pane. This marked pane 1591 can then be used with commands which understand src-pane specifiers 1592 automatically. 1593* If a session/window target is prefixed with '=' then only an exact match 1594 is considered. 1595* 'move-window' understands '-a'. 1596* 'update-environment' understands '-E' when attach-session is used on an 1597 already attached client. 1598* 'show-environment' understands '-s' to output Bourne-compatible commands. 1599* New option: 'history-file' to save/restore command prompt history. 1600* Copy mode is exited if the history is cleared whilst in copy-mode. 1601* 'copy-mode' learned '-e' to exit copy-mode when scrolling to end. 1602 1603CHANGES FROM 1.9a TO 2.0, 06 March 2015 1604 1605Incompatible Changes 1606==================== 1607 1608* The choose-list command has been removed. 1609* 'terminal-overrides' is now a server option, not a session option. 1610* 'message-limit' is now a server option, not a session option. 1611* 'monitor-content' option has been removed. 1612* 'pane_start_path' option has been removed. 1613* The "info" mechanism which used to (for some commands) provide feedback 1614 has been removed, and like other commands, they now produce nothing on 1615 success. 1616 1617Normal Changes 1618============== 1619 1620* tmux can now write an entry to utmp if the library 'utempter' is present 1621 at compile time. 1622* set-buffer learned append mode (-a), and a corresponding 1623 'append-selection' command has been added to copy-mode. 1624* choose-mode now has the following commands which can be bound: 1625 - start-of-list 1626 - end-of-list 1627 - top-line 1628 - bottom-line 1629 1630* choose-buffer now understands UTF-8. 1631* Pane navigation has changed: 1632 - The old way of always using the top or left if the choice is ambiguous. 1633 - The new way of remembering the last used pane is annoying if the 1634 layout is balanced and the leftmost is obvious to the user (because 1635 clearly if we go right from the top-left in a tiled set of four we want 1636 to end up in top-right, even if we were last using the bottom-right). 1637 1638 So instead, use a combination of both: if there is only one possible 1639 pane alongside the current pane, move to it, otherwise choose the most 1640 recently used of the choice. 1641* 'set-buffer' can now be told to give names to buffers. 1642* The 'new-session', 'new-window', 'split-window', and 'respawn-pane' commands 1643 now understand multiple arguments and handle quoting problems correctly. 1644* 'capture-pane' understands '-S-' to mean the start of the pane, and '-E-' to 1645 mean the end of the pane. 1646* Support for function keys beyond F12 has changed. The following explains: 1647 - F13-F24 are S-F1 to S-F12 1648 - F25-F36 are C-F1 to C-F12 1649 - F37-F48 are C-S-F1 to C-S-F12 1650 - F49-F60 are M-F1 to M-F12 1651 - F61-F63 are M-S-F1 to M-S-F3 1652 1653 Therefore, F13 becomes a binding of S-F1, etc. 1654* Support using pane id as part of session or window specifier (so % means 1655 session-of-%1 or window-of-%1) and window id as part of session 1656 (so @1 means session-of-@1). 1657* 'copy-pipe' command now understands formats via -F 1658* 'if-shell' command now understands formats via -F 1659* 'split-window' and 'join-window' understand -b to create the pane to the left 1660 or above the target pane. 1661 1662CHANGES FROM 1.9 TO 1.9a, 22 February 2014 1663 1664NOTE: This is a bug-fix release to address some important bugs which just 1665missed the 1.9 deadline, but were found afterwards. 1666 1667Normal Changes 1668============== 1669 1670* Fix crash due to uninitialized lastwp member of layout_cell 1671* Fix -fg/-bg/-style with 256 colour terminals. 1672 1673CHANGES FROM 1.8 TO 1.9, 20 February 2014 1674 1675NOTE: This release has bumped the tmux protocol version. It is therefore 1676advised that the prior tmux server is restarted when this version of tmux is 1677installed, to avoid protocol mismatch errors for newer clients trying to 1678talk to an older running tmux server. 1679 1680Incompatible Changes 1681==================== 1682 1683* 88 colour support has been removed. 1684* 'default-path' has been removed. The new-window command accepts '-c' to 1685 cater for this. The previous value of "." can be replaced with: 'neww -c 1686 $PWD', the previous value of '' which meant current path of the pane can 1687 be specified as: 'neww -c "#{pane_current_path}"' 1688 1689Deprecated Changes 1690================== 1691 1692* The single format specifiers: #A -> #Z (where defined) have been 1693 deprecated and replaced with longer-named equivalents, as listed in the 1694 FORMATS section of the tmux manpage. 1695* The various foo-{fg,bg,attr} commands have been deprecated and replaced 1696 with equivalent foo-style option instead. Currently this is still 1697 backwards-compatible, but will be removed over time. 1698 1699Normal Changes 1700============== 1701 1702* A new environment variable TMUX_TMPDIR is now honoured, allowing the 1703 socket directory to be set outside of TMPDIR (/tmp/ if not set). 1704* If -s not given to swap-pane the current pane is assumed. 1705* A #{pane_synchronized} format specifier has been added to be a conditional 1706 format if a pane is in a synchronised mode (c.f. synchronize-panes) 1707* Tmux now runs under Cygwin natively. 1708* Formats can now be nested within each other and expanded accordingly. 1709* Added 'automatic-rename-format' option to allow the automatic rename 1710 mechanism to use something other than the default of 1711 #{pane_current_command}. 1712* new-session learnt '-c' to specify the starting directory for that session 1713 and all subsequent windows therein. 1714* The session name is now shown in the message printed to the terminal when 1715 a session is detached. 1716* Lots more format specifiers have been added. 1717* Server race conditions have been fixed; in particular commands are not run 1718 until after the configuration file is read completely. 1719* Case insensitive searching in tmux's copy-mode is now possible. 1720* attach-session and switch-client learnt the '-t' option to accept a window 1721 and/or a pane to use. 1722* Copy-mode is only exited if no selection is in progress. 1723* Paste key in copy-mode is now possible to enter text from the clipboard. 1724* status-interval set to '0' now works as intended. 1725* tmux now supports 256 colours running under fbterm. 1726* Many bug fixes! 1727 1728CHANGES FROM 1.7 TO 1.8, 26 March 2013 1729 1730Incompatible Changes 1731==================== 1732 1733* layout redo/undo has been removed. 1734 1735Normal Changes 1736============== 1737 1738* Add halfpage up/down bindings to copy mode. 1739* Session choosing fixed to work with unattached sessions. 1740* New window options window-status-last-{attr,bg,fg} to denote the last 1741 window which was active. 1742* Scrolling in copy-mode now scrolls the region without moving the mouse 1743 cursor. 1744* run-shell learnt '-t' to specify the pane to use when displaying output. 1745* Support for middle-click pasting. 1746* choose-tree learns '-u' to start uncollapsed. 1747* select-window learnt '-T' to toggle to the last window if it's already 1748 current. 1749* New session option 'assume-paste-time' for pasting text versus key-binding 1750 actions. 1751* choose-* commands now work outside of an attached client. 1752* Aliases are now shown for list-commands command. 1753* Status learns about formats. 1754* Free-form options can be set with set-option if prepended with an '@' 1755 sign. 1756* capture-pane learnt '-p' to send to stdout, and '-e' for capturing escape 1757 sequences, and '-a' to capture the alternate screen, and '-P' to dump 1758 pending output. 1759* Many new formats added (client_session, client_last_session, etc.) 1760* Control mode, which is a way for a client to send tmux commands. 1761 Currently more useful to users of iterm2. 1762* resize-pane learnt '-x' and '-y' for absolute pane sizing. 1763* Config file loading now reports errors from all files which are loaded via 1764 the 'source-file' command. 1765* 'copy-pipe' mode command to copy selection and pipe the selection to a 1766 command. 1767* Panes can now emit focus notifications for certain applications 1768 which use those. 1769* run-shell and if-shell now accept formats. 1770* resize-pane learnt '-Z' for zooming a pane temporarily. 1771* new-session learnt '-A' to make it behave like attach-session. 1772* set-option learnt '-o' to prevent setting an option which is already set. 1773* capture-pane and show-options learns '-q' to silence errors. 1774* New command 'wait-for' which blocks a client until woken up again. 1775* Resizing panes will now reflow the text inside them. 1776* Lots and lots of bug fixes, fixing memory-leaks, etc. 1777* Various manpage improvements. 1778 1779CHANGES FROM 1.6 TO 1.7, 13 October 2012 1780 1781* tmux configuration files now support line-continuation with a "\" at the 1782 end of a line. 1783* New option status-position to move the status line to the top or bottom of 1784 the screen. 1785* Enforce history-limit option when clearing the screen. 1786* Give each window a unique id, like panes but prefixed with @. 1787* Add pane id to each pane in layout description (while still accepting 1788 the old form). 1789* Provide defined ways to set the various default-path possibilities: ~ 1790 for home directory, . for server start directory, - for session start 1791 directory and empty for the pane's working directory (the default). All 1792 can also be used as part of a relative path (eg -/foo). Also provide -c 1793 flags to neww and splitw to override default-path setting. 1794* Add -l flag to send-keys to send input literally (without translating 1795 key names). 1796* Allow a single option to be specified to show-options to show just that 1797 option. 1798* New command "move-pane" (like join-pane but allows the same window). 1799* join-pane and move-pane commands learn "-b" option to place the pane to 1800 the left or above. 1801* Support for bracketed-paste mode. 1802* Allow send-keys command to accept hex values. 1803* Add locking around "start-server" to avoid race-conditions. 1804* break-pane learns -P/-F arguments for display formatting. 1805* set-option learns "-q" to make it quiet, and not print out anything. 1806* copy mode learns "wrap-search" option. 1807* Add a simple form of output rate limiting by counting the number of 1808 certain C0 sequences (linefeeds, backspaces, carriage returns) and if it 1809 exceeds a threshold (current default 250/millisecond), start to redraw 1810 the pane every 100 milliseconds instead of making each change as it 1811 comes. Two configuration options - c0-change-trigger and 1812 c0-change-interval. 1813* find-window learns new flags: "-C", "-N", "-T" to match against either or 1814 all of a window's content, name, or title. Defaults to all three options 1815 if none specified. 1816* find-window automatically selects the appropriate pane for the found 1817 matches. 1818* show-environment can now accept one option to show that environment value. 1819* Exit mouse mode when end-of-screen reached when scrolling with the mouse 1820 wheel. 1821* select-layout learns -u and -U for layout history stacks. 1822* kill-window, detach-client, kill-session all learn "-a" option for 1823 killing all but the current thing specified. 1824* move-window learns "-r" option to renumber window sequentially in a 1825 session. 1826* New session option "renumber-windows" to automatically renumber windows in 1827 a session when a window is closed. (see "move-window -r"). 1828* Only enter copy-mode on scroll up. 1829* choose-* and list-* commands all use "-F" for format specifiers. 1830* When spawning external commands, the value from the "default-shell" option 1831 is now used, rather than assuming /bin/sh. 1832* New choose-tree command to render window/sessions as a tree for selection. 1833* display-message learns new format options. 1834* For linked-windows across sessions, all flags for that window are now 1835 cleared across sessions. 1836* Lots and lots of bug fixes, fixing memory-leaks, etc. 1837* Various manpage improvements. 1838 1839CHANGES FROM 1.5 TO 1.6, 23 January 2012 1840 1841* Extend the mode-mouse option to add a third choice which means the mouse 1842 does not enter copy mode. 1843* Add a -r flag to switch-client to toggle the client read-only flag. 1844* Add pane-base-index option. 1845* Support \ for line continuation in the configuration file. 1846* Framework for more powerful formatting of command output and use it for 1847 list-{panes,windows,sessions}. This allows more descriptive replacements 1848 (such as #{session_name}) and conditionals. 1849* Mark dead panes with some text saying they are dead. 1850* Reject $SHELL if it is not a full path. 1851* Add -S option to refresh-client to redraw status line. 1852* Add an else clause for if-shell. 1853* Try to resolve relative paths for loadb and saveb (first, using client 1854 working directory, if any, then default-path or session working directory). 1855* Support for \e[3J to clear the history and send the corresponding 1856 terminfo code (E3) before locking. 1857* When in copy mode, make repeat count indicate buffer to replace, if used. 1858* Add screen*:XT to terminal-overrides for tmux-in-tmux. 1859* Status-line message attributes added. 1860* Move word-separators to be a session rather than window option. 1861* Change the way the working directory for new processes is discovered. If 1862 default-path isn't empty, it is used. Otherwise, if a new window is created 1863 from the command-line, the working directory of the client is used. If not, 1864 platform specific code is used to retrieve the current working directory 1865 of the process in the active pane. If that fails, the directory where the 1866 session was created is used, instead. 1867* Do not change the current pane if both mouse-select-{pane,window} are 1868 enabled. 1869* Add \033[s and \033[u to save and restore cursor position. 1870* Allow $HOME to be used as default-path. 1871* Add CNL and CPL escape sequences. 1872* Calculate last position correctly for UTF-8 wide characters. 1873* Add an option allow-rename to disable the window rename escape sequence. 1874* Attributes for each type of status-line alert (ie bell, content and 1875 activity) added. Therefore, remove the superfluous options 1876 window-status-alert-{attr,bg,fg}. 1877* Add a -R flag to send-keys to reset the terminal. 1878* Add strings to allow the aixterm bright colours to be used when 1879 configuring colours. 1880* Drop the ability to have a list of keys in the prefix in favour of two 1881 separate options, prefix and prefix2. 1882* Flag -2 added to send-prefix to send the secondary prefix key. 1883* Show pane size in top right of display panes mode. 1884* Some memory leaks plugged. 1885* More command-prompt editing improvements. 1886* Various manpage improvements. 1887* More Vi mode improvements. 1888 1889CHANGES FROM 1.4 TO 1.5, 09 July 2011 1890 1891* Support xterm mouse modes 1002 and 1003. 1892* Change from a per-session stack of buffers to one global stack. This renders 1893 copy-buffer useless and makes buffer-limit now a server option. 1894* Fix most-recently-used choice by avoiding reset the activity timer for 1895 unattached sessions every second. 1896* Add a -P option to new-window and split-window to print the new window or 1897 pane index in target form (useful to pass it into other commands). 1898* Handle a # at the end of a replacement string (such as status-left) 1899 correctly. 1900* Support for UTF-8 mouse input (\033[1005h) which was added in xterm 262. 1901 If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all 1902 UTF-8 terminals. The option defaults to on if LANG etc are set in the same 1903 manner as the utf8 option. 1904* Support for HP-UX. 1905* Accept colours of the hex form #ffffff and translate to the nearest from the 1906 xterm(1) 256-colour set. 1907* Clear the non-blocking IO flag (O_NONBLOCK) on the stdio file descriptors 1908 before closing them (fixes things like "tmux ls && cat"). 1909* Use TMPDIR if set. 1910* Fix next and previous session functions to actually work. 1911* Support -x and -y for new-session to specify the initial size of the window 1912 if created detached with -d. 1913* Make bind-key accept characters with the top-bit-set and print them as octal. 1914* Set $TMUX without the session when background jobs are run. 1915* Simplify the way jobs work and drop the persist type, so all jobs are 1916 fire-and-forget. 1917* Accept tcgetattr/tcsetattr(3) failure, fixes problems with fatal() if the 1918 terminal disappears while locked. 1919* Add a -P option to detach to HUP the client's parent process (usually causing 1920 it to exit as well). 1921* Support passing through escape sequences to the underlying terminal by using 1922 DCS with a "tmux;" prefix. 1923* Prevent tiled producing a corrupt layout when only one column is needed. 1924* Give each pane created in a tmux server a unique id (starting from 0), put it 1925 in the TMUX_PANE environment variable and accept it as a target. 1926* Allow a start and end line to be specified for capture-pane which may be 1927 negative to capture part of the history. 1928* Add -a and -s options to lsp to list all panes in the server or session 1929 respectively. Likewise add -s to lsw. 1930* Change -t on display-message to be target-pane for the #[A-Z] replacements 1931 and add -c as target-client. 1932* The attach-session command now prefers the most recently used unattached 1933 session. 1934* Add -s option to detach-client to detach all clients attached to a session. 1935* Add -t to list-clients. 1936* Change window with mouse wheel over status line if mouse-select-window is on. 1937* When mode-mouse is on, automatically enter copy mode when the mouse is 1938 dragged or the mouse wheel is used. Also exit copy mode when the mouse wheel 1939 is scrolled off the bottom. 1940* Provide #h character pair for short hostname (no domain). 1941* Don't use strnvis(3) for the title as it breaks UTF-8. 1942* Use the tsl and fsl terminfo(5) capabilities to update terminal title and 1943 automatically fill them in on terminals with the XT capability (which means 1944 their title setting is xterm-compatible). 1945* Add a new option, mouse-resize-pane. When on, panes may be resized by 1946 dragging their borders. 1947* Fix crash by resetting last pane on {break,swap}-pane across windows. 1948* Add three new copy-mode commands - select-line, copy-line, copy-end-of-line. 1949* Support setting the xterm clipboard when copying from copy mode using the 1950 xterm escape sequence for the purpose (if xterm is configured to allow it). 1951* Support xterm(1) cursor colour change sequences through terminfo(5) Cc 1952 (set) and Cr (reset) extensions. 1953* Support DECSCUSR sequence to set the cursor style with two new terminfo(5) 1954 extensions, Cs and Csr. 1955* Make the command-prompt custom prompts recognize the status-left option 1956 character pairs. 1957* Add a respawn-pane command. 1958* Add a couple of extra xterm-style keys that gnome terminal provides. 1959* Allow the initial context on prompts to be set with the new -I option to 1960 command-prompt. Include the current window and session name in the prompt 1961 when renaming and add a new key binding ($) for rename session. 1962* Option bell-on-alert added to trigger the terminal bell when there is an 1963 alert. 1964* Change the list-keys format so that it shows the keys using actual tmux 1965 commands which should be able to be directly copied into the config file. 1966* Show full targets for lsp/lsw -a. 1967* Make confirm-before prompt customizable with -p option like command-prompt 1968 and add the character pairs #W and #P to the default kill-{pane,window} 1969 prompts. 1970* Avoid sending data to suspended/locked clients. 1971* Small memory leaks in error paths plugged. 1972* Vi mode improvements. 1973 1974CHANGES FROM 1.3 TO 1.4, 27 December 2010 1975 1976* Window bell reporting fixed. 1977* Show which pane is active in the list-panes output. 1978* Backoff reworked. 1979* Prevent the server from dying when switching into copy mode when already 1980 in a different mode. 1981* Reset running jobs when the status line is enabled or disabled. 1982* Simplify xterm modifier detection. 1983* Avoid crashing in copy mode if the screen size is too small for the 1984 indicator. 1985* Flags -n and -p added to switch-client. 1986* Use UTF-8 line drawing characters on UTF-8 terminals, thus fixing some 1987 terminals (eg putty) which disable the vt100 ACS mode switching sequences 1988 in UTF-8 mode. On terminals without ACS, use ASCII equivalents. 1989* New server option exit-unattached added. 1990* New session option destroy-unattached added. 1991* Fall back on normal session choice method if $TMUX exists but is invalid 1992 rather than rejecting. 1993* Mark repeating keys with "(repeat)" in the key list. 1994* When removing a pane, don't change the active pane unless the active pane 1995 is actually the one being removed. 1996* New command last-pane added. 1997* AIX fixes. 1998* Flag -a added to unbind-key. 1999* Add XAUTHORITY to update-environment. 2000* More info regarding window and pane flags is now shown in list-*. 2001* If VISUAL or EDITOR contains "vi" configure mode-keys and status-key to vi. 2002* New window option monitor-silence and session option visual-silence added. 2003* In the built-in layouts distribute the panes more evenly. 2004* Set the default value of main-pane-width to 80 instead of 81. 2005* Command-line flag -V added. 2006* Instead of keeping a per-client prompt history make it global. 2007* Fix rectangle copy to behave like emacs (the cursor is not part of the 2008 selection on the right edge but on the left it is). 2009* Flag -l added to switch-client. 2010* Retrieve environment variables from the global environment rather than 2011 getenv(3), thus allowing them to be updated during the configuration file. 2012* New window options other-pane-{height,width} added. 2013* More minor bugs fixed and manpage improvements. 2014 2015CHANGES FROM 1.2 TO 1.3, 18 July 2010 2016 2017* New input parser. 2018* Flags to move through panes -UDLR added to select-pane. 2019* Commands up-pane, and down-pane removed, since equivalent behaviour is now 2020 available through the target flag (-t:+ and -t:-). 2021* Jump-forward/backward in copy move (based on vi's F, and f commands). 2022* Make paste-buffer accept a pane as a target. 2023* Flag -a added to new-window to insert a window after an existing one, moving 2024 windows up if necessary. 2025* Merge more mode into copy mode. 2026* Run job commands explicitly in the global environment (which can be modified 2027 with setenv -g), rather than with the environment tmux started with. 2028* Use the machine's hostname as the default title, instead of an empty string. 2029* Prevent double free if the window option remain-on-exit is set. 2030* Key string conversions rewritten. 2031* Mark zombie windows as dead in the choose-window list. 2032* Tiled layout added. 2033* Signal handling reworked. 2034* Reset SIGCHLD after fork to fix problems with some shells. 2035* Select-prompt command removed. Therefore, bound ' to command-prompt -p index 2036 "select-window -t:%%" by default. 2037* Catch SIGHUP and terminate if running as a client, thus avoiding clients from 2038 being left hanging around when, for instance, a SSH session is disconnected. 2039* Solaris 9 fixes (such as adding compat {get,set}env(3) code). 2040* Accept none instead of default for attributes. 2041* Window options window-status-alert-{alert,bg,fg} added. 2042* Flag -s added to the paste-buffer command to specify a custom separator. 2043* Allow dragging to make a selection in copy mode if the mode-mouse option is 2044 set. 2045* Support the mouse scroll wheel. 2046* Make pipe-pane accept special character sequences (eg #I). 2047* Fix problems with window sizing when starting tmux from .xinitrc. 2048* Give tmux sockets (but not the containing folder) group permissions. 2049* Extend the target flags (ie -t) to accept an offset (for example -t:+2), and 2050 make it wrap windows, and panes. 2051* New command choose-buffer added. 2052* New server option detach-on-destroy to set what happens to a client when the 2053 session it is attached to is destroyed. If on (default), the client is 2054 detached. Otherwise, the client is switched to the most recently active of 2055 the remaining sessions. 2056* The commands load-buffer, and save-buffer now accept a dash (-) as the file 2057 to read from stdin, or write to stdout. 2058* Custom layouts added. 2059* Additional code reduction, bug fixes, and manpage enhancements. 2060 2061CHANGES FROM 1.1 TO 1.2, 10 March 2010 2062 2063* Switch to libevent. 2064* Emulate the ri (reverse index) capability, ergo allowing tmux to at least 2065 start on Sun consoles (TERM=sun, or sun-color). 2066* Assign each entry a number, or lowercase letter in choose mode, and accept 2067 that as a shortcut key. 2068* Permit top-bit-set characters to be entered in the status line. 2069* Mark no-prefix keys with (no prefix), rather than [] in list-keys. 2070* New command show-messages (alias showmsgs), and new session option 2071 message-limit, to show a per-client log of status lines messages up to the 2072 number defined by message-limit. 2073* Do not interpret #() for display-message to avoid leaking commands. 2074* New window options window-status-format, and window-status-current-format to 2075 control the format of each window in the status line. 2076* Add a -p flag to display-message to print the output, instead of displaying 2077 it in the status line. 2078* Emulate il1, dl1, ich1 to run with vt100 feature set. 2079* New command capture-pane (alias capturep) to copy the entire pane contents 2080 to a paste buffer. 2081* Avoid duplicating code by adding a -w flag to set-option, and show-options to 2082 set, and show window options. The commands set-window-option, and 2083 show-window-options are now aliases. 2084* Panes can now be referred to as top, bottom, top-left, etc. 2085* Add server-wide options, which can be set with set-option -s, and shown with 2086 show-options -s. 2087* New server option quiet (like -q from the command line). 2088* New server option escape-time to set the timeout used to detect if escapes 2089 are alone, part of a function key, or meta sequence. 2090* New session options pane-active-border-bg, pane-active-border-fg, 2091 pane-border-bg, and pane-border-fg to set pane colours. 2092* Make split-window accept a pane target, instead of a window. 2093* New command join-pane (alias joinp) to split, and move an existing pane into 2094 the space (the opposite of break-pane), thus simplifying calls to 2095 split-window, followed by move-window. 2096* Permit S- prefix on keys for shift when the terminal/terminfo supports them. 2097* Window targets (-t flag) can now refer to the last window (!), next (+), and 2098 previous (-) window by number. 2099* Mode keys to jump to the bottom/top of history, end of the next word, scroll 2100 up/down, and reverse search in copy mode. 2101* New session option display-panes-active-colour to display the active pane in 2102 a different colour with the display-panes command. 2103* Read the socket path from $TMUX if it's present, and -L, and -S are not 2104 given. 2105* Vi-style mode keys B, W, and E to navigate between words in copy mode. 2106* Start in more mode when configuration file errors are detected. 2107* Rectangle copy support added. 2108* If attach-session was specified with the -r flag, make the client read-only. 2109* Per-window alternate-screen option. 2110* Make load-buffer work with FIFOs. 2111* New window option word-separators to set the characters considered as word 2112 separators in copy mode. 2113* Permit keys in copy mode to be prefixed by a repeat count, entered with [1-9] 2114 in vi mode, or M-[1-9] in emacs mode. 2115* utf8 improvements. 2116* As usual, additional code reduction, bug fixes, and manpage enhancements. 2117 2118CHANGES FROM 1.0 TO 1.1, 05 November 2009 2119 2120* New run-shell (alias run) command to run an external command without a 2121 window, capture it's stdout, and send it to output mode. 2122* Ability to define multiple prefix keys. 2123* Internal locking mechanism removed. Instead, detach each client and run the 2124 external command specified in the new session option lock-command (by default 2125 lock -np), thus allowing the system password to be used. 2126* set-password command, and -U command line flag removed per the above change. 2127* Add support for -c command line flag to execute a shell command. 2128* New lock-client (alias lockc), and lock-session (alias locks) commands to 2129 lock a particular client, or all clients attached to a session. 2130* Support C-n/C-p/C-v/M-v with emacs keys in choice mode. 2131* Use : for goto line rather than g in vi mode. 2132* Try to guess which client to use when no target client was specified. Finds 2133 the current session, and if only one client is present, use it. Otherwise, 2134 return the most recently used client. 2135* Make C-Down/C-Up in copy mode scroll the screen down/up one line without 2136 moving the cursor. 2137* Scroll mode superseded by copy mode. 2138* New synchronize-panes window option to send all input to all other panes in 2139 the same window. 2140* New lock-server session option to lock, when off (on by default), each 2141 session when it has been idle for the lock-after-time setting. When on, the 2142 entire server locks when all sessions have been idle for their individual 2143 lock-after-time setting. 2144* Add support for grouped sessions which have independent name, options, 2145 current window, but where the linked windows are synchronized (ie creating, 2146 killing windows are mirrored between the sessions). A grouped session may be 2147 created by passing -t to new-session. 2148* New mouse-select-pane session option to select the current pane with the 2149 mouse. 2150* Queue, and run commands in the background for if-shell, status-left, 2151 status-right, and #() by starting each once every status-interval. Adds the 2152 capability to call some programs which would previously cause the server to 2153 hang (eg sleep/tmux). It also avoids running commands excessively (ie if used 2154 multiple times, it will be run only once). 2155* When a window is zombified and automatic-rename is on, append [dead] to the 2156 name. 2157* Split list-panes (alias lsp) off from list-windows. 2158* New pipe-pane (alias pipep) to redirect a pane output to an external command. 2159* Support for automatic-renames for Solaris. 2160* Permit attributes to be turned off in #[] by prefixing with no (eg nobright). 2161* Add H/M/L in vi mode, and M-R/M-r in emacs to move the cursor to the top, 2162 middle, and bottom of the screen. 2163* -a option added to kill-pane to kill all except current pane. 2164* The -d command line flag is now gone (can be replaced by terminal-overrides). 2165 Just use op/AX to detect default colours. 2166* input/tty/utf8 improvements. 2167* xterm-keys rewrite. 2168* Additional code reduction, and bug fixes. 2169 2170CHANGES FROM 0.9 TO 1.0, 20 September 2009 2171 2172* Option to alter the format of the window title set by tmux. 2173* Backoff for a while after multiple incorrect password attempts. 2174* Quick display of pane numbers (C-b q). 2175* Better choose-window, choose-session commands and a new choose-client command. 2176* Option to request multiple responses when using command-prompt. 2177* Improved environment handling. 2178* Combine wrapped lines when pasting. 2179* Option to override terminal settings (terminal-overrides). 2180* Use the full range of ACS characters for drawing pane separator lines. 2181* Customisable mode keys. 2182* Status line colour options, with embedded colours in status-left/right, and 2183 an option to centre the window list. 2184* Much improved layouts, including both horizontal and vertical splitting. 2185* Optional visual bell, activity and content indications. 2186* Set the utf8 and status-utf8 options when the server is started with -u. 2187* display-message command to show a message in the status line, by default some 2188 information about the current window. 2189* Improved current process detection on NetBSD. 2190* unlink-window -k is now the same as kill-window. 2191* attach-session now works from inside tmux. 2192* A system-wide configuration file, /etc/tmux.conf. 2193* A number of new commands in copy mode, including searching. 2194* Panes are now specified using the target (-t) notation. 2195* -t now accepts fnmatch(3) patterns and looks for prefixes. 2196* Translate \r into \n when pasting. 2197* Support for binding commands to keys without the prefix key 2198* Support for alternate screen (terminfo smcup/rmcup). 2199* Maintain data that goes off screen after reducing the window size, so it can 2200 be restored when the size is increased again. 2201* New if-shell command to test a shell command before running a tmux command. 2202* tmux now works as the shell. 2203* Man page reorganisation. 2204* Many minor additions, much code tidying and several bug fixes. 2205 2206CHANGES FROM 0.8 TO 0.9, 01 July 2009 2207 2208* Major changes to build infrastructure: cleanup of makefiles and addition 2209 of a configure script. 2210* monitor-content window option to monitor a window for a specific fnmatch(3) 2211 pattern. The find-window command also now accepts fnmatch(3) patterns. 2212* previous-layout and select-layout commands, and a main-horizontal layout. 2213* Recreate the server socket on SIGUSR1. 2214* clear-history command. 2215* Use ACS line drawing characters for pane separator lines. 2216* UTF-8 improvements, and code to detect UTF-8 support by looking at 2217 environment variables. 2218* The resize-pane-up and resize-pane-down commands are now merged together 2219 into a new resize-pane command with -U and -D flags. 2220* confirm-before command to request a yes/no answer before executing dangerous 2221 commands. 2222* Status line bug fixes, support for UTF-8 (status-utf8 option), and a key to 2223 paste from the paste buffer. 2224* Support for some additional escape sequences and terminal features, including 2225 better support for insert mode and tab stops. 2226* Improved window resizing behaviour, modelled after xterm. 2227* Some code reduction and a number of miscellaneous bug fixes. 2228 2229================================================================================ 2230 2231On 01 June 2009, tmux was imported into the OpenBSD base system. From this date 2232onward changes are logged as part of the normal CVS commit message to either 2233OpenBSD or SourceForge CVS. This file will be updated to contain a summary of 2234major changes with each release, and to mention important configuration or 2235command syntax changes during development. 2236 2237The list of older changes is below. 2238 2239================================================================================ 2240 224121 May 2009 2242 2243* stat(2) files before trying to load them to avoid problems, for example 2244 with "source-file /dev/zero". 2245 224619 May 2009 2247 2248* Try to guess if the window is UTF-8 by outputting a three-byte UTF-8 wide 2249 character and seeing how much the cursor moves. Currently tries to figure out 2250 if this works by some stupid checks on the terminal, these need to be 2251 rethought. Also might be better using a width 1 character rather than width 2. 2252* If LANG contains "UTF-8", assume the terminal supports UTF-8, on the grounds 2253 that anyone who configures it probably wants UTF-8. Not certain if this is 2254 a perfect idea but let's see if it causes any problems. 2255* New window option: monitor-content. Searches for a string in a window and if 2256 it matches, highlight the status line. 2257 225818 May 2009 2259 2260* main-horizontal layout and main-pane-height option to match vertical. 2261* New window option main-pane-width to set the width of the large left pane with 2262 main-vertical (was left-vertical) layout. 2263* Lots of layout cleanup. manual layout is now manual-vertical. 2264 226516 May 2009 2266 2267* select-layout command and a few default key bindings (M-0, M-1, M-2, M-9) to 2268 select layouts. 2269* Recreate server socket on SIGUSR1, per SF feature request 2792533. 2270 227114 May 2009 2272 2273* Keys in status line (p in vi mode, M-y in emacs) to paste the first line 2274 of the upper paste buffer. Suggested by Dan Colish. 2275* clear-history command to clear a pane's history. 2276* Don't force wrapping with \n when asked, let the cursor code figure it out. 2277 Should fix terminals which use this to detect line breaks. 2278* Major cleanup and restructuring of build infrastructure. Still separate files 2279 for GNU and BSD make, but they are now hugely simplified at the expense of 2280 adding a configure script which must be run before make. Now build and 2281 install with: 2282 2283 $ ./configure && make && sudo make install 2284 228504 May 2009 2286 2287* Use ACS line drawing characters for pane separator lines. 2288 228930 April 2009 2290 2291* Support command sequences without a space before the semicolon, for example 2292 "neww; neww" now works as well as "neww ; neww". "neww;neww" is still an 2293 error. 2294* previous-layout command. 2295* Display the layout name in window lists. 2296* Merge resize-pane-up and resize-pane-down into resize-pane with -U and -D 2297 flags. 2298 229929 April 2009 2300 2301* Get rid of compat/vis.* - only one function was used which is easily 2302 replaced,and less compat code == good. 2303 230427 April 2009 2305 2306* Avoid using the prompt history when the server is locked, and prevent any 2307 input entered from being added to the client's prompt history. 2308* New command, confirm-before (alias confirm), which asks for confirmation 2309 before executing a command. Bound "&" and "x" by default to confirm-before 2310 "kill-window" and confirm-before "kill-pane", respectively. 2311 231223 April 2009 2313 2314* Support NEL, yet another way of making newline. Fixes the output from some 2315 Gentoo packaging thing. Reported by someone on SF then logs that allowed a 2316 fix sent by tcunha. 2317* Use the xenl terminfo flag to detect early-wrap terminals like the FreeBSD 2318 console. Many thanks for a very informative email from Christian Weisgerber. 2319 232021 April 2009 2321 2322* tmux 0.8 released. 2323 232417 April 2009 2325 2326* Remove the right number of characters from the buffer when escape then 2327 a cursor key (or other key prefixed by \033) is pressed. Reported by 2328 Stuart Henderson. 2329 233003 April 2009 2331 2332* rotate-window command. -U flag (default) for up, -D flag for down. 2333 233402 April 2009 2335 2336* Change scroll/pane redraws to only redraw the single pane affected rather 2337 than the entire window. 2338* If redrawing the region would mean redrawing > half the pane, just schedule 2339 to redraw the entire window. Also add a flag to skip updating the window any 2340 further if it is scheduled to be redrawn. This has the effect of batching 2341 multiple redraws together. 2342 234301 April 2009 2344 2345* Basic horizontal splitting and layout management. Still some redraw and other 2346 issues - particularly, don't mix with manual pane resizing, be careful when 2347 viewing from multiple clients and don't expect shell windows to redraw very 2348 well after the layout is changed; generally cycling the layout a few times 2349 will fix most problems. Getting this in for testing while I think about how 2350 to deal with manual mode. 2351 2352 Split window as normal and cycle the layouts with C-b space. Some of the 2353 layouts will work better when swap-pane comes along. 2354 235531 March 2009 2356 2357* AIX port, thanks to cmihai for access to a box. Only tested on 6.1 with xlc 2358 10.1 (make sure CC is set). Needs GNU make and probably ncurses (didn't try 2359 plain curses). Also won't build with DEBUG, so comment the FDEBUG=1 line in 2360 GNUmakefile. 2361* Draw a vertical line on the right when the window size is less than the 2362 terminal size. This is partly to shake out any horizontal limit bugs on the 2363 way to horizontal splitting/pane tiling. Currently a bit slow since it has to 2364 do a lot of redrawing but hopefully that will improve as I get some better 2365 ideas for how to do it. 2366* Fix remaining problems with copy and paste and UTF-8. 2367 236828 March 2009 2369 2370* Better UTF-8 support, including combined characters. Unicode data is now 2371 stored as UTF-8 in a separate array, the code does a lookup into this every 2372 time it gets to a UTF-8 cell. Zero width characters are just appended onto 2373 the UTF-8 data for the previous cell. This also means that almost no bytes 2374 extra are wasted non-Unicode data (yay). 2375 2376 Still some oddities, such as copy mode skips over wide characters in a 2377 strange way, and the code could do with some tidying. 2378* Key repeating is now a property of the key binding not of the command. 2379 Repeat is turned on when the key is bound with the -r flag to bind-key. 2380 next/previous-window no longer repeat by default as it turned out to annoy 2381 me. 2382 238327 March 2009 2384 2385* Clear using ED when redrawing the screen. I foolishly assumed using spaces 2386 would be equivalent and terminals would pick up on this, but apparently not. 2387 This fixes copy and paste in xterm/rxvt. 2388* Sockets in /tmp are now created in a subdirectory named, tmux-UID, eg 2389 tmux-1000. The default socket is thus /tmp/tmux-UID/default. To start a 2390 separate server, the new -L command line option should be used: this creates 2391 a socket in the same directory with a different name ("-L main" will create 2392 socket called "main"). -S should only be used to place the socket outside 2393 /tmp. This makes sockets a little more secure and a bit more convenient to 2394 use multiple servers. 2395 239621 March 2009 2397 2398* New session flag "set-remain-on-exit" to set remain-on-exit flag for new 2399 windows created in that session (like "remain-by-default" used to do). Not 2400 perfectly happy about this, but until I can think of a good way to introduce 2401 it generically (maybe a set of options in the session) this will do. Fixes 2402 SF request 2527847. 2403 240407 March 2009 2405 2406* Support for 88 colour terminals. 2407* break-pane command to create a new window using an existing pane. 2408 240902 March 2009 2410 2411* Make escape key timer work properly so escape+key can be used without 2412 lightning fast key presses. 2413 241413 February 2009 2415 2416* Redo mode keys slightly more cleanly and apply them to command prompt 2417 editing. vi or emacs mode is controlled by the session option status-keys. 2418 241912 February 2009 2420 2421* Looking up argv[0] is expensive, so just use p_comm for the window name which 2422 is good enough. Also increase name update time to 500 ms. 2423 242411 February 2009 2425 2426* Only use ri when actually at the top of the screen; just move the cursor up 2427 otherwise. 2428* FreeBSD's console wraps lines at $COLUMNS - 1 rather than $COLUMNS (the 2429 cursor can never be beyond $COLUMNS - 1) and does not appear to support 2430 changing this behaviour, or any of the obvious possibilities (turning off 2431 right margin wrapping, insert mode). This is irritating, most notably because 2432 it impossible to write to the very bottom-right of the screen without 2433 scrolling. To work around this, if built on FreeBSD and run with a "cons" 2434 $TERM, the bottom-right cell on the screen is omitted. 2435* Emulate scroll regions (slowly) to support the few terminals which don't have 2436 it (some of which don't really have any excuse). 2437 243810 February 2009 2439 2440* No longer redraw the status line every status-interval unless it has actually 2441 changed. 2442 244308 February 2009 2444 2445* Don't treat empty arguments ("") differently when parsing configuration 2446 file/command prompt rather than command line. 2447* tmux 0.7 released. 2448 244903 February 2009 2450 2451* New command, copy-buffer (alias copyb), to copy a session paste buffer to 2452 another session. 2453 245401 February 2009 2455 2456* The character pair #(command) may now contain (escaped) right parenthesis. 2457 245830 January 2009 2459 2460* . now bound to "command-prompt 'move-window %%'" by default, from joshe. 2461 246229 January 2009 2463 2464* Window options to set status line fg, bg and attributes for a single 2465 window. Options are: window-status-fg, window-status-bg, 2466 window-status-attr. Set to "default" to use the session status colours. 2467 2468 This allows quite neat things like: 2469 2470 $ cat ~/bin/xssh 2471 #!/bin/sh 2472 2473 if [ ! -z "$TMUX" ]; then 2474 case "$1" in 2475 natalya) 2476 tmux setw window-status-fg red >/dev/null 2477 ;; 2478 natasha) 2479 tmux setw window-status-fg yellow >/dev/null 2480 ;; 2481 esac 2482 fi 2483 ssh "$@" 2484 [ ! -z "$TMUX" ] && tmux setw -u window-status-fg >/dev/null 2485 $ alias ssh="~/bin/xssh" 2486 2487* Support #(command) in status-left, and status-right, which is displayed as 2488 the first line of command's output (e.g. set -g status-right 2489 "#(whoami)@#(hostname -s)"). Commands with )s aren't supported. 2490 249128 January 2009 2492 2493* Support mouse in copy mode to move cursor. Can't do anything else at the 2494 moment until other mouse modes are handled. 2495* Better support for at least the most common variant of mouse input: parse it 2496 and adjust for different panes. Also support mouse in window/session choice 2497 mode. 2498 249927 January 2009 2500 2501* Bring back the fancy window titles with session/window names: it is easy to 2502 work around problems with elinks (see FAQ). 2503* -u flag to scroll-mode and copy-mode to start scrolled one page 2504 up. scroll-mode -u is bound to prefix,page-up (ppage) by default. 2505* Allow status, mode and message attributes to be changed by three new options: 2506 status-attr, mode-attr, message-attr. A comma-separated list is accepted 2507 containing: bright, dim, underscore, blink, reverse, hidden, italics, for 2508 example: 2509 2510 set -g status-attr bright,blink 2511 2512 From Josh Elsasser, thanks! 2513 251426 January 2009 2515 2516* Be more clever about picking the right process to create the window name. 2517* Don't balls up the terminal on UTF-8 combined characters. Don't support them 2518 properly either - they are just discarded for the moment. 2519 252025 January 2009 2521 2522* load-buffer command 2523 252423 January 2009 2525 2526* Use reverse colours rather than swapping fg and bg for message, mode and 2527 status line. This makes these usable on black and white terminals. 2528* Better error messages when creating a session or window fails. 2529* Oops. Return non-zero on error. Reported by Will Maier. 2530 253121 January 2009 2532 2533* Handle SIGTERM (and kill-server which uses it), a bit more neatly - tidy 2534 up properly and print a nicer message. Same effect though :-). 2535* new-window now supports -k to kill target window if it exists. 2536* Bring back split-window -p and -l options to specify the height a percentage 2537 or as a number of lines. 2538* Make window and session choice modes allow you to choose items in vi keys 2539 mode (doh!). As a side-effect, this makes enter copy selection (as well 2540 as C-w/M-w) when using emacs keys in copy mode. Reported by merdely. 2541 254220 January 2009 2543 2544* Darwin support for automatic-rename from joshe; Darwin doesn't seem to have 2545 a sane method of getting argv[0] and searching for the precise insane way 2546 is too frustrating, so this just uses the executable name. 2547* Try to change the window title to match the command running it in. This is 2548 done by reading argv[0] from the process group leader of the group that owns 2549 the tty (tcgetpgrp()). This can't be done portably so some OS-dependent code 2550 is introduced (ugh); OpenBSD, FreeBSD and Linux are supported at the moment. 2551 2552 A new window flag, automatic-rename, is available: if this is set to off, the 2553 window name is not changed. Specifying a name with the new-window, 2554 new-session or rename-window commands will automatically set this flag to off 2555 for the window in question. To disable it entirely set the option to off 2556 globally (setw -g automatic-rename off). 2557 255819 January 2009 2559 2560* Fix various stupid issues when the status line is turned off. Grr. 2561* Use reverse attributes for clock and cursor, otherwise they do not 2562 appear on black and white terminals. 2563* An error in a command sequence now stops execution of that sequence. 2564 Internally, each command code now passes a return code back rather than 2565 talking to the calling client (if any) directly. 2566* attach-session now tries to start the server if it isn't already started - if 2567 no sessions are created in .tmux.conf this will cause an error. 2568* Clean up starting server by making initial client get a special socketpair. 2569 257018 January 2009 2571 2572* Unbreak UTF-8. 2573* -a flag to next-window and previous-window to select the next or previous 2574 window with activity or bell. Bound to M-n and M-p. 2575* find-window command to search window names, titles and visible content (but 2576 not history) for a string. If only one is found, the window is selected 2577 otherwise a choice list is shown. This (as with the other choice commands) 2578 only works from a key. Bound to "f" by default. 2579* Cleaned up command printing code, also enclose arguments with spaces in "s. 2580* Added command sequences. These are entered by separating each argument by a ; 2581 argument (spaces on both sides), for example: 2582 2583 lsk ; lsc 2584 2585 To use a literal ; as the argument prefix it with \, for example: 2586 2587 bind x lsk \; lsc 2588 2589 Commands are executed from left to right. Also note that command sequences do 2590 not support repeat-time repetition unless all commands making up the sequence 2591 support it. 2592* suspend-client command to suspend a client. Don't try to background it 2593 though... 2594* Mark attached sessions in sessions lists. Suggested by Simon Kuhnle. 2595 259617 January 2009 2597 2598* tmux 0.6 released. 2599 260015 January 2009 2601 2602* Support #H for hostname and #S for session name in status-left/right. 2603* Two new commands, choose-window and choose-session which work only when bound 2604 to a key and allow the window or session to be selected from a list. These 2605 are now bound to "w" and "s" instead of the list commands. 2606 260714 January 2009 2608 2609* Rework the prefix-time stuff. The option is now called repeat-time and 2610 defaults to 500 ms. It only applies to a small subset of commands, currently: 2611 up-pane, down-pane, next-window, previous-window, resize-pane-up, 2612 resize-pane-down. These are the commands for which it is obviously useful, 2613 having it for everything else was just bloody annoying. 2614* The alt-up and alt-down keys now resize a pane by five lines at a time. 2615* switch-pane is now select-pane and requires -p to select a pane. The 2616 "o" key binding is changed to down-pane. 2617* up-pane and down-pane commands, bound to arrow up and down by default. 2618* Multiple vertical window splitting. Minimum pane size is four lines, an 2619 (unhelpful) error will be shown if attempting to split a window with less 2620 that eight lines. If the window is resized, as many panes are shown as can 2621 fit without reducing them below four lines. There is (currently!) not a way 2622 to show a hidden pane without making the window larger. 2623 2624 Note the -p and -l options to split-window are now gone, these may reappear 2625 once I think them through again. 2626* Server locking on inactivity (lock-after-time) is now disabled by default. 2627 262813 January 2009 2629 2630* kill-pane command. 2631 263212 January 2009 2633 2634* command-prompt now accepts a single argument, a template string. Any 2635 occurrences of %% in this string are replaced by whatever is entered at the 2636 prompt and the result is executed as a command. This allows things like (now 2637 bound by default): 2638 2639 bind , command-prompt "rename-window %%" 2640 2641 Or my favourite: 2642 2643 bind x command-prompt "split-window 'man %%'" 2644 2645* Option to set prefix time, allowing multiple commands to be entered without 2646 pressing the prefix key again, so long as they each typed within this time of 2647 each other. 2648* Yet more hacks for key handling. Think it is just about working now. 2649* Two commands, resize-pane-up and resize-pane-down to resize a pane. 2650* Make the window pane code handle panes of different sizes, and add a -l 2651 and -p arguments to split-window to specify the new window size in lines 2652 or as a percentage. 2653 265411 January 2009 2655 2656* Vertical window splitting. Currently can only split a window into two panes. 2657 New split-window command splits (bound to ") and switch-pane command (bound to 2658 o) switches between panes. 2659 2660 close-pane, swap-pane commands are to follow. Also to come are pane resizing, 2661 >2 panes, the ability to break a pane out to a full window and vice versa and 2662 possibly horizontal splitting. 2663 2664 Panes are subelements of windows rather than being windows in their own 2665 right. I tried to make them windows (so the splitting was at the session or 2666 client level) but this rapidly became very complex and invasive. So in the 2667 interests of having something working, I just made it so each window can have 2668 two child processes instead of one (and it still took me 12 hours straight 2669 coding). Now the concept is proven and much of the support code is there, 2670 this may change in future if more flexibility is needed. 2671* save-buffer command, from Tiago Cunha. 2672 267310 January 2009 2674 2675* New option, lock-after-time. If there is no activity in the period specified 2676 by this option (in seconds), tmux will lock the server. Default is 1800 (30 2677 minutes), set to 0 to disable. 2678* Server locking. Two new commands: set-password to set a password (a 2679 preencrypted password may be specified with -c); and lock-server to lock the 2680 server until the password is entered. Also an additional command line flag, 2681 -U, to unlock from the shell. The default password is blank (any password 2682 accepted). If specifying an encrypted password from encrypt(1) in .tmux.conf 2683 with -c, don't forget to enclose it in single-quotes (') to prevent shell 2684 variable expansion. 2685* If a window is created from the command line, tmux will now use the same 2686 current working directory for the new process. A new default-path option to 2687 sets the working directory for processes created from keys or interactively 2688 from the prompt. 2689* New mode to display a large clock. Entered with clock-mode command (bound to 2690 C-b t by default); two window options: clock-mode-colour and clock-mode-style 2691 (12 or 24). This will probably be used as the basis for window locking. 2692* New command, server-info, to show some server information and terminal 2693 details. 2694 269509 January 2009 2696 2697* Stop using ncurses variables and instead build a table of the codes we want 2698 into an array for each terminal type. This makes the code a little more 2699 untidy in places but gets rid of the awful global variables and calling 2700 setterm all the time, and shoves all the ncurses-dependent mess into a single 2701 file, tty-term.c. It also allows overriding single terminal codes, this is 2702 used to fix rxvt on some platforms (where it is missing dch) and in future 2703 may allow user customisation a la vim. 2704* Update key handling code. Simplify, support ctrl properly and add a new 2705 window option (xterm-keys) to output xterm key codes including ctrl and, 2706 if available, alt and shift. 2707 270808 January 2009 2709 2710* If built without DEBUG (the release versions), don't cause a fatal error if 2711 the grid functions notice an input error, just log and ignore the 2712 request. This might mean me getting shouted at less often when bugs kill 2713 long-running sessions, at least in release versions. 2714* Hopefully fix cursor out-of-bounds checking when writing to grid. When I 2715 wrote the code I must have forgotten that the cursor can be one cell off the 2716 right of the screen (yes, I know), so there were number of out-of-bounds/ 2717 overflow problems. 2718 271907 January 2009 2720 2721* New flag to set and setw, -u, to unset an option (allowing it to inherit from) 2722 the global options again. 2723* Added more info messages for options changes. 2724* A bit of tidying and reorganisation of options code. 2725 272606 January 2009 2727 2728* Don't crash when backspacing if cursor is off the right of the screen, 2729 reported by David Chisnall. 2730* Complete words at any point inside command in prompt, also use option name 2731 as well as command names. 2732* Per-client prompt history of up to 100 items. 2733* Use a splay tree for key bindings instead of an array. As a side-effect this 2734 sorts them when listed. 2735 273622 December 2008 2737 2738* Use the right keys for home and end. 2739 274020 December 2008 2741 2742* Add vim mode for tmux configuration file to examples/, from Tiago Cunha. 2743 274415 December 2008 2745 2746* New command, source-file (alias source), to load a configuration 2747 file. Written by Tiago Cunha, many thanks. 2748 274913 December 2008 2750 2751* Work around lack of dch. On Linux, the rxvt termcap doesn't have it (it is 2752 lying, but we can't really start disbelieving termcaps...). This is a bit 2753 horrible - I can see no way to do it without pretty much redrawing the whole 2754 line, but it works... 2755 275610 December 2008 2757 2758* glibc's getopt(3) is useless: it is not POSIX compliant without jumping 2759 through non-portable hoops, and the method of resetting it is unclear (the 2760 man page on my system says set optind to 1, but other sources say 0). So, 2761 import OpenBSD's getopt_long.c into compat/ for use on Linux and use the 2762 clearly documented optreset = optind = 1 method. This fixes some strange 2763 issues with command parsing (getting the syntax wrong would prevent any 2764 further commands being parsed). 2765 276606 December 2008 2767 2768* Bring set/setw/show/showw into line with other commands. This means that by 2769 default they now affect the current window (if any); the new -g flag must be 2770 passed to set the global options. This changes the behaviour of set/show and 2771 WILL BREAK CURRENT CONFIGURATIONS. 2772 2773 In summary, whether in the configuration file, the command prompt, or a key 2774 binding, use -g to set a global option, use -t to specify a particular window 2775 or session, or omit both to try and use the current window or session. 2776 2777 This makes set/show a bit of a pain but is the correct behaviour for 2778 setw/showw and is the same as every other command, so we can put up with a 2779 bit of pain for consistency. 2780* Redo window options. They now work in the same way to session options with a 2781 global options set. showw/setw commands now have similar syntax to show/set 2782 (including the ability to use abbreviations). 2783 2784 PLEASE NOTE this includes the following configuration-breaking changes: 2785 2786 - remain-by-default is now GONE, use "setw -g remain-on-exit" to apply the 2787 global window option instead; 2788 - mode-keys is now a window option rather than session - use "setw [-g] 2789 mode-keys" instead of set. 2790 2791 There are also some additions: 2792 2793 - message-fg and message-bg session options to control status line message 2794 colours; 2795 - mode-fg and mode-bg window options to set colours in window modes such as 2796 copy mode. 2797 2798 The options code still a mess and now there is twice as much of it :-(. 2799 280002 December 2008 2801 2802* Add support for including the window title in status-left or status-right 2803 strings by including the character pair "#T". This may be prefixed with 2804 a number to specify a maximum length, for example "#24T" to use at most 2805 24 characters of the title. 2806* Introduce two new options, status-left-length and status-right-length, 2807 control the maximum length of left and right components of the status bar. 2808* elinks (and possibly others) bypass the terminal and talk directly to X to 2809 restore the window title when exiting. tmux can't know about this particular 2810 bit of stupidity so the title ends up strange - the prefix isn't terribly 2811 important and elinks is quite useful so just get rid of it. 2812 281327 November 2008 2814 2815* Tweaks to support Dragonfly. 2816 281717 November 2008 2818 2819* tmux 0.5 released. 2820 282116 November 2008 2822 2823* New window option: "utf8"; this must be on (it is off by default) for UTF-8 2824 to be parsed. The global/session option "utf8-default" controls the setting 2825 for new windows. 2826 2827 This means that by default tmux does not handle UTF-8. To use UTF-8 by 2828 default it is necessary to a) "set utf8-default on" in .tmux.conf b) start 2829 tmux with -u on any terminal which support UTF-8. 2830 2831 It seems a bit unnecessary for this to be a per-window option but that is 2832 the easiest way to do it, and it can't do any harm... 2833* Enable default colours if op contains \033[39;49m, based on a report from 2834 fulvio ciriaco. 2835 283612 November 2008 2837 2838* Keep stack of last windows rather than just most recent; based on a diff from 2839 joshe. 2840 284104 November 2008 2842 2843* Don't try to redraw status line when showing a prompt or message; if it does, 2844 the status timer is never reset so it redraws on every loop. Spotted by 2845 joshe. 2846 284709 October 2008 2848 2849* Translate 256 colours into 16 if 256 is not available, same as screen does. 2850* Better support for OSC command (only to set window title now), and also 2851 support using APC for the same purpose (some Linux default shell profiles do 2852 this). 2853 285425 September 2008 2855 2856* Large internal rewrite to better support 256 colours and UTF-8. Screen data 2857 is now stored as single two-way array of structures rather than as multiple 2858 separate arrays. Also simplified a lot of code. 2859 2860 Only external changes are three new flags, -2, -d and -u, which force tmux to 2861 assume the terminal supports 256 colours, default colours (useful for 2862 xterm-256color which lacks the AX flag), or UTF-8 respectively. 2863 286410 September 2008 2865 2866* Split off colour conversion code from screen code. 2867 286809 September 2008 2869 2870* Initial UTF-8 support. A bit ugly and with a limit of 4096 UTF-8 2871 characters per window. 2872 287308 September 2008 2874 2875* 256 colour support. tmux attempts to autodetect the terminal by looking 2876 both at what ncurses reports (usually wrong for xterm) and checking if 2877 the TERM contains "256col". For xterm TERM=xterm-256color is needed (as 2878 well as a build that support 256 colours); this seems to work for rxvt 2879 as well. On non-256 colour terminals, high colours are translated to white 2880 foreground and black background. 2881 288228 August 2008 2883 2884* Support OS X/Darwin thanks to bsd-poll.c from OpenSSH. Also convert 2885 from clock_gettime(2) to gettimeofday(2) as OS X doesn't support the 2886 former; microsecond accuracy will have to be sufficient ;-). 2887 288807 August 2008 2889 2890* Lose some unused/useless wrapper functions. 2891 289225 July 2008 2893 2894* Shell variables may now be defined and used in configuration file. Define 2895 variables with: 2896 2897 VAR=1 2898 2899 And use with: 2900 2901 renamew ${VAR} 2902 renamew "x${VAR}x" 2903 2904 Also some other fixes to make, for example, "abc""abc" work similarly to 2905 the shell. 2906 290724 July 2008 2908 2909* Finally lose inconsistently-used SCREEN_DEF* defines. 2910* If cursor mode is on, switch the arrow keys from \033[A to \033OA. 2911* Support the numeric keypad in both application and numbers mode. This is 2912 different from screen which always keeps it in application mode. 2913 291419 July 2008 2915 2916* Unbreak "set status" - tmux thought it was ambiguous, reported by rivo nurges. 2917 291802 July 2008 2919 2920* Split vi and emacs mode keys into two tables and add an option (mode-keys) 2921 to select between them. Default is emacs, use, 2922 2923 tmux set mode-keys vi 2924 2925 to change to vi. 2926 2927 vi mode uses space to start selection, enter to copy selection and escape 2928 to clear selection. 2929 293001 July 2008 2931 2932* Protocol versioning. Clients which identify as a different version from the 2933 server will be rejected. 2934* tmux 0.4 released. 2935 293629 June 2008 2937 2938* Zombie windows. These are not closed when the child process dies. May be 2939 set for a window with the new "remain-on-exit" option; the default setting 2940 of this flag for new windows may be set with the "remain-by-default" session 2941 option. 2942 2943 A window may be restarted with the respawn-window command: 2944 2945 respawn-window [-k] [command] 2946 2947 If -k is given, any existing process running in the window is killed; 2948 if command is omitted, the same command as when the window was first 2949 created is used. 2950 295127 June 2008 2952 2953* Handle nonexistent session or client to -t properly. 2954 295525 June 2008 2956 2957* select-prompt command to allow a window to be selected at a prompt. Only 2958 windows in the current session may be selected. Bound to ' by default. 2959 Suggested by merdely. 2960* move-window command. Requested by merdely. 2961* Support binding alt keys (prefixed with M-). Change default to use 2962 C- for ctrl keys (^ is still accepted as an alternative). 2963* Slim down default key bindings: support lowercase only. 2964* Handle escaped keys properly (parse eg \033b into a single key code) and 2965 use this to change copy mode next/previous work to M-f and M-b to match 2966 emacs. 2967 296824 June 2008 2969 2970* Next word (C-n/w) and previous word (C-b/b) in copy mode. 2971 297223 June 2008 2973 2974* list-commands command (alias lscm). 2975* Split information about options into a table and use it to parse options 2976 on input (allowing abbreviations) and to print them with show-options 2977 (meaning that bell-action gets a proper string). This turned out a bit ugly 2978 though :-/. 2979 298022 June 2008 2981 2982* Do not translate black and white into default if the terminal supports 2983 default colours. This was nice to force programs which didn't use default 2984 colours to be properly transparent in rxvt/aterm windows with a background 2985 image, but it causes trouble if someone redefines the default foreground and 2986 background (to have black on white or something). 2987 298821 June 2008 2989 2990* Naive tab completion in the command prompt. This only completes command 2991 names if a) they are at the start of the text b) the cursor is at 2992 the end of the text c) the text contains no spaces. 2993* Only attempt to set the title where TERM looks like an xterm (contains 2994 "xterm", "rxvt" or is "screen"). I hate this but I don't see a better way: 2995 setting the title actually kills some other terminals pretty much dead. 2996* Strip padding out of terminfo(5) strings. Currently the padding is just 2997 ignored, this may need to be altered if there are any software terminals 2998 out there that actually need it. 2999 300020 June 2008 3001 3002* buffer-limit option to set maximum size of buffer stack. Default is 9. 3003* Initial buffer improvements. Each session has a stack of buffers and each 3004 buffer command takes a -b option to manipulate items on the stack. If -b 3005 is omitted, the top entry is used. The following commands are currently 3006 available: 3007 3008 set-buffer [-b index] [-t target-session] string 3009 paste-buffer [-d] [-b index] [-t target-window] 3010 delete-buffer [-b index] [-t target-session] 3011 show-buffers [-t target-session] 3012 show-buffer [-b index] [-t target-session] 3013 3014 -d to paste-buffer deletes the buffer after pasting it. 3015* New option, display-time, sets the time status line messages stay on screen 3016 (unless a key is pressed). Set in milliseconds, default is 750 (0.75 seconds). 3017 The timer is only checked every 100 ms or so. 3018 301919 June 2008 3020 3021* Use "status" consistently for status line option, and prefix for "prefix" key 3022 option. 3023* Allow commands to be entered at a prompt. This is triggered with the 3024 command-prompt command, bound to : by default. 3025* Show status messages properly, without blocking the server. 3026 302718 June 2008 3028 3029* New option, set-titles. On by default, this attempts to set the window title 3030 using the \e]2;...\007 xterm code. 3031 3032 Note that elinks requires the STY environment variable (used by screen) to be 3033 set before it will set the window title. So, if you want window titles set by 3034 elinks, set STY before running it (any value will do). I can't do this for all 3035 windows since setting it to an invalid value breaks screen. 3036* Show arrows at either end of status line when scrolled if more windows 3037 exist. Highlight the arrow if a hidden window has activity or bell. 3038* Scroll the status line to show the current window if necessary. Also handle 3039 windows smaller than needed better (show a blank status line instead of 3040 hanging or crashing). 3041 304217 June 2008 3043 3044* tmux 0.3 released. 3045 304616 June 2008 3047 3048* Add some information messages when window options are changed, suggested by 3049 Mike Erdely. Also add a -q command-line option to suppress them. 3050* show-window-options (showw) command. 3051 305215 June 2008 3053 3054* show-options (show) command to show one or all options. 3055 305614 June 2008 3057 3058* New window options: force-width and force-height. This will force a window 3059 to an arbitrary width and height (0 for the default unlimited). This is 3060 neat for emacs which doesn't have a sensible way to force hard wrapping at 80 3061 columns. Also, don't try to be clever and use clr_eol when redrawing the 3062 whole screen, it causes trouble since the redraw functions are used to draw 3063 the blank areas too. 3064* Clear the blank area below windows properly when they are smaller than client, 3065 also add an indicator line to show the vertical limit. 3066* Don't die on empty strings in config file, reported by Will Maier. 3067 306808 June 2008 3069 3070* Set socket mode +x if any sessions are attached and -x if not. 3071 307207 June 2008 3073 3074* Make status-interval actually changeable. 3075 307606 June 2008 3077 3078* New window option: aggressive-resize. Normally, windows are resized to the 3079 size of the smallest attached session to which they are linked. This means a 3080 window only changes size when sessions are detached or attached, or they are 3081 linked or unlinked from a session. This flag changes a window to be the size 3082 of the smallest attached session for which it is the current window - it is 3083 resized every time a session changes to it or away from it. This is nice for 3084 things that handle SIGWINCH well (like irssi) and bad for things like shells. 3085* The server now exits when no sessions remain. 3086* Fix bug with inserting characters with TERM=xterm-color. 3087 308805 June 2008 3089 3090* Completely reorganise command parsing. Much more common code in cmd-generic.c 3091 and a new way of specifying windows, clients or sessions. Now, most commands 3092 take a -t argument, which specifies a client, a session, or a window target. 3093 Clients and sessions are given alone (sessions are fnmatch(3)d and 3094 clients currently not), windows are give by (client|session):index. For 3095 example, if a user is in session "1" window 0 on /dev/ttypi, these should all 3096 be equivalent: 3097 3098 tmux renamew newname (current session and window) 3099 tmux renamew -t: newname (current session and window) 3100 tmux renamew -t:0 newname (current session, window 0) 3101 tmux renamew -t0 newname (current session, window 0) 3102 tmux renamew -t1:0 newname (session 1, window 0) 3103 tmux renamew -t1: newname (session 1's current window) 3104 tmux renamew -t/dev/ttypi newname (client /dev/ttypi's current 3105 session and window) 3106 tmux renamew -t/dev/ttypi: newname (client /dev/ttypi's current 3107 session and window) 3108 tmux renamew -t/dev/ttypi:0 newname (client /dev/ttypi's current 3109 session, window 0) 3110 3111 This does have some downsides, for example, having to use -t on selectw, 3112 3113 tmux selectw -t7 3114 3115 is annoying. But then using non-flagged arguments would mean renaming the 3116 current window would need to be something like: 3117 3118 tmux renamew : newname 3119 3120 It might be better not to try and be so consistent; comments to the usual 3121 address ;-). 3122* Infrastructure for printing arguments in list-keys output. Easy ones only for 3123 now. 3124 312504 June 2008 3126 3127* Add some vi(1) key bindings in copy mode, and support binding ^[, ^\, ^] 3128 ^^ and ^_. Both from/prompted by Will Maier. 3129* setw monitor-activity and set status without arguments now toggle the current 3130 value; suggested by merdely. 3131* New command set-window-option (alias setw) to set the single current window 3132 option: monitor-activity to determine whether window activity is shown in 3133 the status bar for that window (default off). 3134* Change so active/bell windows are inverted in status line. 3135* Activity monitoring - window with activity are marked in status line. No 3136 way to disable this/filter windows yet. 3137* Brought select-window command into line with everything else; it now uses 3138 -i for the window index. 3139* Strings to display on the left and right of the status bar may now be set 3140 with the status-left and status-right options. These are passed through 3141 strftime(3) before being displayed. The status bar is automatically updated 3142 at an interval set by the status-interval option. The default is to display 3143 nothing on the left and the date and time on the left; the default update 3144 interval is 15 seconds. 3145 314603 June 2008 3147 3148* Per session options. Setting options without specifying a session sets the 3149 global options as normal (global options are inherited by all sessions); 3150 passing -c or -s will set the option only for that session. 3151* Because a client has a session attached, any command needing a session can 3152 take a client and use its session. So, anything that used to accept -s now 3153 accepts -c as well. 3154* -s to specify session name now supports fnmatch(3) wildcards; if multiple 3155 sessions are found, or if no -s is specified, the most newly created is used. 3156* If no command is specified, assume new-session. As a byproduct, clean up 3157 command default values into separate init functions. 3158* kill-server command. 3159 316002 June 2008 3161 3162* New command, start-server (alias "start"), to start the tmux server and do 3163 nothing else. This is good if you have a configuration file which creates 3164 windows or sessions (like me): in that case, starting the server the first 3165 time tmux new is run is bad since it creates a new session and window (as 3166 it is supposed to - starting the server is a side-effect). 3167 3168 Instead, I have a little script which does the equivalent of: 3169 3170 tmux has -s0 2>/dev/null || tmux start 3171 tmux attach -d -s0 3172 3173 And I use it to start the server if necessary and attach to my primary 3174 session. 3175* Basic configuration file in ~/.tmux.conf or specified with -f. This is file 3176 contains a set of tmux commands that are run the first time the server is 3177 started. The configuration commands are executed before any others, so 3178 if you have a configuration file that contains: 3179 3180 new -d 3181 neww -s0 3182 3183 And you do the following without an existing server running: 3184 3185 tmux new 3186 3187 You will end up with two sessions, session 0 with two windows (created by 3188 the configuration file) and your client attached to session 1 with one 3189 window (created by the command-line command). I'm not completely happy with 3190 this, it seems a little non-obvious, but I haven't yet decided what to do 3191 about it. 3192 3193 There is no environment variable handling or other special stuff yet. 3194 3195 In the future, it might be nice to be able to have per-session configuration 3196 settings, probably by having conditionals in the file (so you could, for 3197 example, have commands to define a particular window layout that would only 3198 be invoked if you called tmux new -smysession and mysession did not already 3199 exist). 3200* BIG CHANGE: -s and -c to specify session name and client name are now passed 3201 after the command rather than before it. So, for example: 3202 3203 tmux -s0 neww 3204 3205 Becomes: 3206 3207 tmux neww -s0 3208 3209 This is to allow them to be used in the (forthcoming) configuration file 3210 THIS WILL BREAK ANY CURRENT SCRIPTS OR ALIASES USING -s OR -c. 3211 321201 June 2008 3213 3214* Bug fix: don't die if -k passed to link-window and the destination doesn't 3215 exist. 3216* New command, send-keys, will send a set of keys to a window. 3217 321831 May 2008 3219 3220* Fix so tmux doesn't hang if the initial window fails for some reason. This 3221 was highlighted by problems on Darwin, thanks to Elias Pipping for the report 3222 and access to a test account. (tmux still won't work on Darwin since its 3223 poll(2) is broken.) 3224 322502 January 2008 3226 3227* Don't attempt to reset the tty on exit if it has been closed externally. 3228 322906 December 2007 3230 3231* Restore checks for required termcap entries and add a few more obvious 3232 emulations. 3233* Another major reorganisation, this time of screen handling. A new set of 3234 functions, screen_write_*, are now used to write to a screen and a tty 3235 simultaneously. These are used by the input parser to update the base 3236 window screen and also by the different modes which now interpose their own 3237 screen. 3238 323930 November 2007 3240 3241* Support \ek...\e\ to set window name. 3242 324327 November 2007 3244 3245* Enable/disable mouse when asked, if terminal claims to support it. Mouse 3246 sequences are just passed through unaltered for the moment. 3247* Big internal reorganisation. Rather than leaving control of the tty solely in 3248 the client and piping all data through a socket to it, change so that the 3249 server opens the tty again and reads and writes to it directly. This avoids 3250 a lot of buffering and copying. Also reorganise the redrawing stuff so that 3251 everything goes through screen_draw_* - this makes the code simpler, but 3252 still needs broken up more, and all the ways of writing to screens should be 3253 more consistent. 3254 325526 November 2007 3256 3257* Rather than shifting up one line at a time once the history is full, 3258 shift by 10% of the history each time. This is faster. 3259* Add ^A and ^E to copy mode to move to start-of-line/end-of-line. 3260 326124 November 2007 3262 3263* Support for alt charset mode (VT100 graphics characters). 3264 326523 November 2007 3266 3267* Mostly complete copy & paste. Copy mode entered with C-b [ (copy-mode 3268 command). In copy mode, arrow keys/page up/page down/hjkl/C-u/C-f navigate, 3269 space or C-space starts selection, and enter or C-w copies and (important!) 3270 exits copy mode. C-b ] (paste-buffer) pastes into current window. No 3271 extra utility keys (bol/eol/clear selection/etc), only one single buffer, 3272 and no buffer manipulation commands (clear/view/etc) yet. The code is also 3273 fugly :-(. 3274* history-limit option to set maximum history. Does not apply retroactively to 3275 existing windows! Lines take up a variable amount of space, but a reasonable 3276 guess for an 80-column terminal is 250 KB per 1000 lines (of history used, 3277 an empty history takes no space). 3278 327921 November 2007 3280 3281* Create every line as zero length and only expand it as data is written, 3282 rather than creating at full size immediately. 3283* Make command output (eg list-keys) go to a scrollable window similar to 3284 scroll mode. 3285* Redo screen redrawing so it is a) readable b) split into utility functions 3286 that can be used outside screen.c. Use these to make scroll mode only 3287 redraw what it has to which gets rid of irritating flickering status box and 3288 makes it much faster. 3289* Full line width memory and horizontal scrolling in history. 3290* Initial support for scroll history. = to enter scrolling mode, and then 3291 vi keys or up/down/pgup/pgdown to navigate. Q to exit. No horizontal history 3292 yet (need per-line sizes) and a few kinks to be worked out (resizing while in 3293 history mode will probably cause trouble). 3294 329520 November 2007 3296 3297* Fix format string error with "must specify a client" message. Also 3298 sprinkle some printflike tags. 3299* tmux 0.1 released. 3300 330117 November 2007 3302 3303* (nicm) Add -k option to link-window to kill target window if it exists. 3304 330516 November 2007 3306 3307* (nicm) Split in-client display into two columns. This is a hack but not a lot 3308 more so than that bit is already and it helps with lots of keys. 3309* (nicm) switch-client command to switch client between different sessions. This 3310 is pretty cool: 3311 3312 $ tmux bind q switch 0 3313 $ tmux bind w switch 1 3314 3315 Then you can switch between sessions 0 and 1 with a key :-). 3316* (nicm) Accept "-c client-tty" on command line to allow client manipulation 3317 commands, and change detach-/refresh-session to detach-/refresh-client (this 3318 loses the -a behaviour, but at some point -session versions may return, and 3319 -c will allow fnmatch(3)). 3320* (nicm) List available commands on ambiguous command. 3321 332212 November 2007 3323 3324* (nicm) If the terminal supports default colours (AX present), force black 3325 background and white foreground to default. This is useful on transparent 3326 *terms for programs which don't do it themselves (like most(1)). 3327* (nicm) Fill in the rest of the man page. 3328* (nicm) kill-session command. 3329 333009 November 2007 3331 3332* (nicm) C-space is now "^ " not "^@". 3333* (nicm) Support tab (\011). 3334* (nicm) Initial man page outline. 3335* (nicm) -V to show version. 3336* (nicm) rename-session command. 3337 333808 November 2007 3339 3340* (nicm) Check for required terminal capabilities on start. 3341 334231 October 2007 3343 3344* (nicm) Linux port. 3345 334630 October 2007 3347 3348* (nicm) swap-window command. Same as link-window but swaps windows. 3349 335026 October 2007 3351 3352* (nicm) Saving scroll region on \e7 causes problems with ncmpc so I guess 3353 it is not required. 3354* (nicm) unlink-window command. 3355* (nicm) link-window command to link an existing window into another session 3356 (or another index in the same session). Syntax: 3357 3358 tmux -s dstname link-window [-i dstidx] srcname srcidx 3359 3360* (nicm) Redo window data structures. The global array remains, but each per- 3361 session list is now a RB tree of winlink structures. This disassociates the 3362 window index from the array size (allowing arbitrary indexes) which still 3363 allowing windows to have multiple indexes. 3364 336525 October 2007 3366 3367* (nicm) has-session command: checks if session exists. 3368 336924 October 2007 3370 3371* (nicm) Support for \e6n to request cursor position. resize(1) now works. 3372* (nicm) Support for \e7, \e8 save/restore cursor and attribute sequences. 3373 Currently don't save mode (probably should). Also change some cases where 3374 out-of-bound values are ignored to limit them to within range (there are 3375 others than need to be checked too). 3376 337723 October 2007 3378 3379* (nicm) Lift limit on session name passed with -s. 3380* (nicm) Show size in session/window lists. 3381* (nicm) Pass tty up to server when client identifies and add a list-clients 3382 command to list connected clients. 3383 338420 October 2007 3385 3386* (nicm) Add default-command option and change default to be $SHELL rather than 3387 $SHELL -l. Also try to read shell from passwd db if $SHELL isn't present. 3388 338919 October 2007 3390 3391* (nicm) -n on new-session is now -s, and -n is now the initial window name. 3392 This was documented but not implemented :-/. 3393* (nicm) kill-window command, bound to & by default (because it should be hard 3394 to hit accidentally). 3395* (nicm) bell-style option with three choices: "none" completely ignore bell; 3396 "any" pass through a bell in any window to current; "current" ignore bells 3397 except in current window. This applies only to the bell terminal signal, 3398 the status bar always reflects any bells. 3399* (nicm) Refresh session command. 3400 340112 October 2007 3402 3403* (nicm) Add a warning if $TMUX exists on new/attach. 3404* (nicm) send-prefix command. Bound to C-b by default. 3405* (nicm) set status, status-fg, status-bg commands. fg and bg are as a number 3406 from 0 to 8 or a string ("red", "blue", etc). status may be 1/0, on/off, 3407 yes/no. 3408* (nicm) Make status line mark window in yellow on bell. 3409 341004 October 2007 3411 3412* (nicm) -d option to attach to detach all other clients on the same session. 3413* (nicm) Partial resizing support. Still buggy. A C-b S and back sometimes fixes 3414 it when it goes wonky. 3415* (mxey) Added my tmux start script as an example (examples/start-tmux.sh). 3416* (mxey) New sessions can now be given a command for their first window. 3417* (mxey) Fixed usage statement for new-window. 3418* (nicm) attach-session (can't believe I forgot it until now!) and list-windows 3419 commands. 3420* (nicm) rename-window and select-window commands. 3421* (nicm) set-option command (alias set): "tmux set-option prefix ^A". 3422* (nicm) Key binding and unbinding is back. 3423 342403 October 2007 3425 3426* (nicm) {new,next,last,previous}-window. 3427* (nicm) Rewrite command handling so commands are much more generic and the 3428 same commands are used for command line and keys (although most will probably 3429 need to check how they are called). Currently incomplete (only new/detach/ls 3430 implemented). Change: -s is now passed before command again! 3431* (nicm) String number arguments. So you can do: tmux bind ^Q create "blah". 3432* (nicm) Key binding. tmux bind key command [argument] and tmux unbind key. 3433 Key names are in a table in key-string.c, plus A is A, ^A is ctrl-A. 3434 Possible commands are in cmd.c (look at cmd_bind_table). 3435* (nicm) Move command parsing into the client. Also rename some messages and 3436 tidy up a few bits. Lots more tidying up needed :-/. 3437 343802 October 2007 3439 3440* (nicm) Redraw client status lines on rename. 3441* (nicm) Error on ambiguous command. 3442 344301 October 2007 3444 3445* (nicm) Restore window title handling. 3446* (nicm) Simple uncustomisable status line with window list. 3447 344830 September 2007 3449 3450* (nicm) Window info command for debugging, C-b I. 3451 345229 September 2007 3453 3454* (nicm) Deleting/inserting lines should follow scrolling region. Fix. 3455* (nicm) Allow creation of detached sessions: "tmux new-session -d". 3456* (nicm) Permit error messages to be passed back for transient clients like 3457 rename. Also make rename -i work. 3458* (nicm) Pass through bell in any window to current. 3459 346028 September 2007 3461 3462* (nicm) Major rewrite of input parser: 3463 - Lose the old weirdness in favour of a state machine. 3464 - Merge in parsing from screen.c. 3465 - Split key parsing off into a separate file. 3466 This is step one towards hopefully allowing a status line. It requires 3467 that we output data as if the terminal had one line less than it really does - 3468 a serious problem when it comes to things like scrolling. This change 3469 consolidates all the range checking and limiting together which should make 3470 it easier. 3471* (mxey) Added window renaming, like "tmux rename [-s session] [-i index] name" 3472 347327 September 2007 3474 3475* Split "tmux list" into "tmux list-sessions" (ls) and "list-windows" (lsw). 3476* New command session selection: 3477 - if name is specified, look for it and use it if it exists, otherwise 3478 error 3479 - if no name specified, try the current session from $TMUX 3480 - if $TMUX doesn't exist, and there is only one session, use it, 3481 otherwise error 3482 348326 September 2007 3484 3485* Add command aliases, so "ls" is an alias for "list". 3486* Rename some commands and alter syntax to take options after a la CVS. Also 3487 change some flags. So: 3488 3489 tmux -s/socket -nabc new 3490 3491 Becomes: 3492 3493 tmux -S/socket new -sabc 3494 3495* Major tidy and split of client/server code. 3496 349722 September 2007 3498 3499* Window list command (C-b W). Started by Maximilian Gass, finished by me. 3500 350120 September 2007 3502 3503* Specify meta via environment variable (META). 3504* Record last window and ^L key to switch to it. Largely from Maximilian Gass. 3505* Reset ignored signals in child after forkpty, makes ^C work. 3506* Wrap on next/previous. From Maximilian Gass. 3507 350819 September 2007 3509 3510* Don't renumber windows on close. 3511 351228 August 2007 3513 3514* Scrolling region (\e[r) support. 3515 351627 August 2007 3517 3518* Change screen.c to work more logically and hopefully fix heap corruption. 3519 352009 July 2007 3521 3522* Initial import to CVS. Basic functions are working, albeit with a couple of 3523 showstopper memory bugs and many missing features. Detaching, reattaching, 3524 creating new sessions, listing sessions work acceptably for using with shells. 3525 Simple curses programs (top, systat, tetris) and more complicated ones (mutt, 3526 emacs) that don't require scrolling regions (ESC[r) mostly work fine 3527 (including mutt, emacs). No status bar yet and no key remapping or other 3528 customisation. 3529