summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2009-10-01fix a castAlexander von Gernler
ok djm@ markus@
2009-09-30Use guaranteed 64-bit arithmetic for the name lookup statistics andChristian Weisgerber
zap the PCT() macro that was a holdover from before we had prototypes. ok gilles@, deraadt@
2009-09-27remove all debug tracesAlexandre Ratchov
2009-09-24New lock-client and lock-session commands to lock an individual client or allNicholas Marriott
clients attached to a session respectively.
2009-09-24Don't allow locked or suspended clients to limit the size of active clients.Nicholas Marriott
2009-09-23Remove PROMPT_HIDDEN code which is now unused.Nicholas Marriott
2009-09-23Support -c like sh(1) to execute a command, useful when tmux is a loginNicholas Marriott
shell. Suggested by halex@. This includes another protocol version increase (the last for now) so again restart the tmux server before upgrading.
2009-09-23On SIGTERM, just abandon any suspended/locked clients and leave them to it,Nicholas Marriott
otherwise the server will hang around (refusing new connections) until they exit properly.
2009-09-23Don't die if the client is detaching (the tty has been closed) after waking upNicholas Marriott
from locking.
2009-09-23Remove the internal tmux locking and instead detach each client and run theNicholas Marriott
command specified by a new option "lock-command" (by default "lock -np") in each client. This means each terminal has to be unlocked individually but simplifies the code and allows the system password to be used to unlock. Note that the set-password command is gone, so it will need to be removed from configuration files, and the -U command line flag has been removed. This is the third protocol version change so again it is best to stop the tmux server before upgrading.
2009-09-23Trim some code by moving the ioctl(TIOCGWINSZ) after SIGWINCH from the clientNicholas Marriott
into the server. This is another (the second of four) protocol version changes coming this morning, so again the server should be killed before upgrading.
2009-09-23Don't attempt to open() the tty path, rely on the client sending its stdin fdNicholas Marriott
with imsg and fatal if it doesn't, then set the FD_CLOEXEC flag in tty_init instead of tty_open to prevent them leaking into child processes if any are created between the two calls. This bumps the protocol version, so the tmux server should be killed before upgrading.
2009-09-22Be more careful about what flags are cleared when opening the terminal,Nicholas Marriott
otherwise the opened/started flags are cleared and the terminal never released.
2009-09-22Permit multiple prefix keys to be defined, separated by commas, for example:Nicholas Marriott
set -g prefix ^a,^b Any key in the list acts as the prefix. The send-prefix command always sends the first key in the list.
2009-09-21sync to 1.9.5: lookup hashes are now static tablesIngo Schwarze
shortening the code, and, according to kristaps@, speeding it up
2009-09-21sync to 1.9.5: make terminal_*, tree_* and out_* functions return void,Ingo Schwarze
making the code simpler
2009-09-21sync to 1.9.5: remove TERMP_STYLE bit field in favour of recursion-friendlyIngo Schwarze
integer flags, simplifying and shortening the code
2009-09-21Use KEYC_NONE constant instead of 0 on init.Nicholas Marriott
2009-09-21Nuke -i option which isn't used anymore.Nicholas Marriott
2009-09-21Use option print function for info messages as well.Nicholas Marriott
2009-09-21Move common code from show-options and show-window-options into a function.Nicholas Marriott
2009-09-21zap trailing whitespace;Jason McIntyre
2009-09-21Drop tiny union from option struct.Nicholas Marriott
2009-09-21Key options were implemented as a number so these struct members are unused.Nicholas Marriott
2009-09-20run-shell command to run a shell command without opening a window, sendingNicholas Marriott
stdout to output mode.
2009-09-20Nuke unused variables and fix stupid error message.Nicholas Marriott
2009-09-20Move some common and untidy code for window link/unlink into generic functionsNicholas Marriott
instead of duplicating it in move/link window..
2009-09-20Regularise some fatal messages.Nicholas Marriott
2009-09-19if pipe_read() returns 0 we are at EOF and the structure describingJacob Meuser
the pipe will be free()d, so don't try to access the structure. ok ratchov
2009-09-19if the device is dying, don't try to stop it, otherwise this wouldAlexandre Ratchov
trigger the code to free() it, which will try to stop it, and so on
2009-09-19tag the device as stopped even if sio_stop() failed (ie. deviceAlexandre Ratchov
is disconnected). This way, when it's ``file'' structure is free()'d, we don't try to stop it again.
2009-09-18now in sync with version 1.9.2Ingo Schwarze
2009-09-18sync to 1.9.2: Add .UC libman macro for compatibility, has no effect.Ingo Schwarze
Correct .UC and .DT to not print their arguments. Document that .UC and .DT should not be used.
2009-09-18fix typo (overriden -> overridden); from jmc@; included in 1.9.2Ingo Schwarze
2009-09-18sync to 1.9.2: non-printable characters in macro names are errors;Ingo Schwarze
from joerg at netbsd dot org
2009-09-18like login(1), back off password guesses after login-backoff; andMartynas Venckus
reset cnt after login-tries. tweak & ok millert@
2009-09-18New option, set-titles-string, to allow the window title to be specified (asNicholas Marriott
for status-left/right) if set-titles is on. Also only update the title when the status line is being redrawn.
2009-09-16Rather than constructing an entire termios struct from ttydefaults.h, just letNicholas Marriott
forkpty do it and then alter the bits that should be changed after fork. A little neater and more portable.
2009-09-16Allow -maxdepth 0; noticed by bluhm@Todd C. Miller
2009-09-15Enclose repeated buffer draining code in a new msgbuf_drain()Jacek Masiulaniec
function, which is additionally exported for use by others. From nicm@, who reminded me that tmux is now using buffer.c, too.
2009-09-15Stick line length to what is actually used (removing an optimization thatNicholas Marriott
allowed it to be bigger), and use clear line/EOL sequences rather than spaces in copy/scroll mode. This fixes xterm copy/paste from tmux which treats trailing spaces differently from clearing a line with the escape sequences. Reported by martynas@.
2009-09-15The default terminal size should be 80x24, not 80x25.Nicholas Marriott
2009-09-14Nuke unused server_client_index function, pointed out by martynas@.Nicholas Marriott
2009-09-12Doh, trim variables unused now.Nicholas Marriott
2009-09-12Tidy some common code for destroying sessions into a new function.Nicholas Marriott
2009-09-12tmux always outputs \177 for backspace, so explicitly set VERASE to \177 forNicholas Marriott
new windows.
2009-09-11- adjust usage() to fit in 80 columnsStuart Henderson
- re-order client options in usage() to match server options and the manual, as suggested by jmc. ok jmc@
2009-09-10Permit options such as status-bg to be configured using the entire 256 colourNicholas Marriott
palette by setting "colour0" to "colour255".
2009-09-10Correct error message when fclose() fails. From Brian Poole.Todd C. Miller
2009-09-08Move connect code out ouf clientloop into own function. This code can beClaudio Jeker
reused by the upcomming UDP mode. OK henning