summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
AgeCommit message (Collapse)Author
2011-10-23Support for \e[3J to clear the history. Also send the correspondingNicholas Marriott
terminfo code (E3) before locking.
2011-10-23Try to resolve relative paths for loadb and saveb (first using clientNicholas Marriott
working directory if any then default-path or session wd).
2011-10-23Add client formats, from Ben Boeckel.Nicholas Marriott
2011-08-26Add initial framework for more powerful formatting of command output andNicholas Marriott
use it for list-{panes,windows,sessions}. This allows more descriptive replacements (such as #{session_name}) and conditionals. Later this will be used for status_replace and list-keys and other places.
2011-08-24Add a tty_bell wrapper function, from Dylan Alex Simon.Nicholas Marriott
2011-07-02Allow the initial context on prompts to be set with the new -I option toNicholas Marriott
command-prompt. From Tiago Cunha.
2011-06-27PANE_FREEZE doesn't do anything anymore, so remove it.Nicholas Marriott
2011-06-05Add a respawn-pane command, from Marcel Partap.Nicholas Marriott
2011-06-05Get rid of the layout string code which tries to walk through the layoutNicholas Marriott
hierarchy and instead just look at what panes are actually in the window.
2011-05-20Support DECSCUSR sequence to set the cursor style with two newNicholas Marriott
terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
2011-05-20Support xterm(1) cursor colour change sequences through terminfo(5) CcNicholas Marriott
(set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked by me and Ailin Nemui.
2011-05-18Support setting the xterm clipboard when copying from copy mode usingNicholas Marriott
the xterm escape sequence for the purpose (if xterm is configured to allow it). Written by and much discussed Ailin Nemui, guidance on xterm/termcap/terminfo from Thomas Dickey.
2011-05-18Add three new copy-mode commands - select-line, copy-line,Nicholas Marriott
copy-end-of-line. From Dave Disser and Randy Stauner a while back.
2011-05-08Add a new option, mouse-resize-pane. When on, panes may be resized byNicholas Marriott
dragging their borders. From hsim at gmx.li.
2011-05-08Use the tsl and fsl terminfo(5) capabilities to update terminal titleNicholas Marriott
and automatically fill them in on terminals with the XT capability (which means their title setting is xterm-compatible). From hsim at gmx.li.
2011-04-19When mode-mouse is on (it is off by default), automatically enter copyNicholas Marriott
mode when the mouse is dragged or the mouse wheel is used. Also exit copy mode when the mouse wheel is scrolled off the bottom. Discussed with and written by hsim at gmx dot li.
2011-04-18Add an option (mouse-select-window) which allows the mouse to be used byNicholas Marriott
clicking on the status line, written by hsim at gmx dot li.
2011-04-09If the terminal supports sitm for italics, use it instead of standoutNicholas Marriott
(smso). From Tiago Resende.
2011-04-06Change so that an empty session name always means the current sessionsNicholas Marriott
even if given with, for example, -t '', and explicitly forbid empty session names and those containing a : when they are created.
2011-04-05Add a flag to cmd_find_session so that attach-session can preferNicholas Marriott
unattached sessions when choosing the most recently used (if -t is not given). Suggested by claudio@.
2011-03-29Change -t on display-message to be target-pane for the #[A-Z]Nicholas Marriott
replacements and add -c as target-client.
2011-03-28Style: uint -> u_int and a missing else.Nicholas Marriott
2011-03-27Don't include meta twice when working out the flags to output forNicholas Marriott
xterm-style keys - bit 3 is accepted on input but not on output. Also a style nit in the header.
2011-03-27Give each pane created in a tmux server a unique id (starting from 0),Nicholas Marriott
put it in the TMUX_PANE environment variable and accept it as a target. Suggested by and with testing and tweaks from Ben Boeckel.
2011-03-07Support passing through escape sequences to the underlying terminal byNicholas Marriott
using DCS with a "tmux;" prefix. Escape characters in the sequences must be doubled. For example: $ printf '\033Ptmux;\033\033]12;red\007\033\\' Will pass \033]12;red\007 to the terminal (and change the cursor colour in xterm). From Kevin Goodsell.
2011-03-03Add a -P option to detach to HUP the client's parent process (usuallyNicholas Marriott
causing it to exit as well).
2011-01-26Simplify the way jobs work and drop the persist type, so all jobs areNicholas Marriott
fire-and-forget. Status jobs now managed with two trees of output (new and old), rather than storing the output in the jobs themselves. When the status line is processed any jobs which don't appear in the new tree are started and the output from the old tree displayed. When a job finishes it updates the new tree with its output and that is used for any subsequent redraws. When the status interval expires, the new tree is moved to the old so that all jobs are run again. This fixes the "#(echo %H:%M:%S)" problem which would lead to thousands of identical persistent jobs and high memory use (this can still be achieved by adding "sleep 30" but that is much less likely to happen by accident).
2011-01-26Use LIST_* not SLIST_*.Nicholas Marriott
2011-01-25When clearing the entire screen, clear lines that are used into theNicholas Marriott
history like xterm does. Requested ages ago by someone I've forgotten.
2011-01-25Check if the index is in use and fail before creating the child process,Nicholas Marriott
rather than leaving a stray child on failure.
2011-01-23Set $TMUX without the session when background jobs are run.Nicholas Marriott
2011-01-15Mouse highlight mode (1001) requires a program to cooperate soNicholas Marriott
supporting it through tmux is not as easy as this, remove it for now.
2011-01-08Move all calls to fcntl(...O_NONBLOCK) into a function and clear theNicholas Marriott
flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").
2011-01-04Clean up and simplify tmux command argument parsing.Nicholas Marriott
Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
2011-01-03Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262Nicholas Marriott
and supports larger terminals than the older way. If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all UTF-8 terminals. The option defaults to on if LANG etc are set in the same manner as the utf8 option. With help and based on code from hsim at gmx.li.
2011-01-01Move the user-visible parts of all options (names, types, limit, defaultNicholas Marriott
values) together into one set of tables in options-table.c. Also clean up and simplify cmd-set-options.c and move a common print function into option-table.c.
2011-01-01Sprinkle a little more const.Nicholas Marriott
2011-01-01Another table that should be const.Nicholas Marriott
2011-01-01Don't reset the activity timer for unattached sessions every second,Nicholas Marriott
this screws up the choice of most-recently-used. Instead, break the time update into a little function and do it when the session is attached. Pointed out by joshe@.
2010-12-30Remove some unused defines.Nicholas Marriott
2010-12-30Change from a per-session stack of buffers to one global stack which isNicholas Marriott
much more convenient and also simplifies lot of code. This renders copy-buffer useless and makes buffer-limit now a server option. By Tiago Cunha.
2010-12-30Add a function to create window flags rather than doing the same thingNicholas Marriott
in two places. From Thomas Adam.
2010-12-29Support all four of the xterm mouse modes. Based on a diff from hsim atNicholas Marriott
gmx.li.
2010-12-21Store sessions in an RB tree by name rather than a list, this is tidierNicholas Marriott
and allows them to easily be shown sorted in various lists (list-sessions/choose-sessions). Keep a session index which is used in a couple of places internally but make it an ever-increasing number rather than filling in gaps with new sessions.
2010-12-20Dead sessions are never on the active sessions list, so the SESSION_DEADNicholas Marriott
flag is effectively unused. Remove it.
2010-12-20Use pointer rather than index for the client's last session.Nicholas Marriott
2010-12-20Unify the way sessions are used by callbacks - store the address and useNicholas Marriott
the reference count, then check it is still on the global sessions list in the callback.
2010-12-11Track the last session for a client and add a flag to switch-client andNicholas Marriott
a key binding (L) to move a client back to its last session.
2010-12-11Make the prompt history global for all clients which is much more useful ↵Nicholas Marriott
than per-client history.
2010-12-06Add an option to alert (monitor) for silence (lack of activity) in aNicholas Marriott
window. From Thomas Adam.