summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2009-10-07Support J and K for scroll up and scroll down in copy mode with vi keys,Nicholas Marriott
suggested by martynas.
2009-10-07Fix comment.Nicholas Marriott
2009-10-06prevent aproc structures to be deleted twice. Doesn't change anythingAlexandre Ratchov
for now but will be used in future code.
2009-10-06Accept ^? for backspace as well as BSpace.Nicholas Marriott
2009-10-06Remove scroll mode which is now redundant, copy mode should be used instead.Nicholas Marriott
The = key binding now does nothing.
2009-10-06Make C-Up and C-Down in copy mode scroll the screen up and down one lineNicholas Marriott
without moving the cursor, like Up and Down in scroll mode (which will shortly disappear).
2009-10-06bz#1596: fflush(NULL) before exec() to ensure that everying (motdDamien Miller
in particular) has made it out before the streams go away.
2009-10-05open the -f inputfile before letting lower-down functions call chdir()Theo de Raadt
and move us to where we cannot open it. problem spotted by austin ok millert
2009-10-05If no target client is specified to commands which accept one, try to guess theNicholas Marriott
current client, in a similar manner to how sessions already work: if the current session can be established and has only one client, use that; otherwise use the most recently created client.
2009-10-05add -d flag. When started in server mode, if the -d flag isAlexandre Ratchov
used aucat and midicat don't daemonize and log on stderr.
2009-10-05missing includesTheo de Raadt
2009-10-04Add (again) support for divert sockets. They allow you to:Michele Marchetto
- queue packets from pf(4) to a userspace application - reinject packets from the application into the kernel stack. The divert socket can be bound to a special "divert port" and will receive every packet diverted to that port by pf(4). The pf syntax is pretty simple, e.g.: pass on em0 inet proto tcp from any to any port 80 divert-packet port 1 A lot of discussion have happened since my last commit that resulted in many changes and improvements. I would *really* like to thank everyone who took part in the discussion especially canacar@ who spotted out which are the limitations of this approach. OpenBSD divert(4) is meant to be compatible with software running on top of FreeBSD's divert sockets even though they are pretty different and will become even more with time. discusses with many, but mainly reyk@ canacar@ deraadt@ dlg@ claudio@ beck@ tested by reyk@ and myself ok reyk@ claudio@ beck@ manpage help and ok by jmc@
2009-10-04tweak previous;Jason McIntyre
2009-10-04Get / and ? the right way round in vi mode, and use : for goto line rather thanNicholas Marriott
g.
2009-10-04Check for already locked/suspended clients in server_lock_client rather thanNicholas Marriott
its callers.
2009-10-04Add a key string for space ("Space") and document the names, suggested byNicholas Marriott
guenther@. Also document how to bind " and ', suggested by miod@.
2009-10-04C-v and M-v too.Nicholas Marriott
2009-10-04Support C-n/C-p with emacs keys in choice mode, also fix a comment.Nicholas Marriott
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