summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2009-10-11d_type isn't portable so use lstat to get dirent modes. Suggested by andDarren Tucker
"looks sane" deraadt@
2009-10-11Set the current window pointer to NULL when killing a winlink that is to beNicholas Marriott
replaced with link-window -k. This prevents it being pushed onto the last window stack and causing a use-after-free. Only took me an hour to find this :-/...
2009-10-11Add a pipe-pane command to allow a pane to be piped to a shell command, forNicholas Marriott
example: pipe-pane 'cat >~/out' No arguments stops outputing and closes the pipe; the -o flag toggles a pipe and on and off (useful for key bindings). Suggested by espie@.
2009-10-11Convert if-shell over to the background job framework as well.Nicholas Marriott
2009-10-11Remove a debugging leftover and add copyright.Nicholas Marriott
2009-10-11Switch run-shell over to queue the command in the background like #().Nicholas Marriott
2009-10-11There isn't much point in having a free function if it isn't used.Nicholas Marriott
Also allow a NULL tree.
2009-10-11Collect status from dead jobs and don't invoke the callback until bothNicholas Marriott
all input (the socket is closed) and status is available.
2009-10-11Clean up by introducing a wrapper struct for mouse clicks rather than passingNicholas Marriott
three u_chars around. As a side-effect this fixes incorrectly rejecting high cursor positions (because it was comparing them as signed char), reported by Tom Doherty.
2009-10-11Braek some bits out of server_fill_client() that aren't really related toNicholas Marriott
polling into their own function.
2009-10-10Put all jobs on a global all_jobs list and use that in server.c instead ofNicholas Marriott
running through all the clients.
2009-10-10-scroll mode which is dead.Nicholas Marriott
2009-10-10Split list-panes off from list-windows.Nicholas Marriott
2009-10-10Accept key and mouse input for keys in zombified windows if they are in a mode..Nicholas Marriott
2009-10-10When a window is zombified and automatic-rename is on, append [dead] to theNicholas Marriott
name.
2009-10-10Rather than running status-left, status-right and window title #() with popenNicholas Marriott
immediately every redraw, queue them up and run them in the background, starting each once every status-interval. The actual status line uses the output from the last run. This brings several advantages: - tmux itself may be called from inside #() without causing the server to hang; - likewise, sleep or similar doesn't cause the server to block; - commands aren't run excessively often when redrawing; - commands shared by status-left and status-right, or used multiple times, will only be run once. run-shell and if-shell still use system()/popen() but will be changed over to use this too later.
2009-10-10New option, mouse-select-pane. If on, the mouse may be used to select theNicholas Marriott
current pane. Suggested by sthen@ and also by someone else ages ago who I have forgotten.
2009-10-10don't use a references to the device file to check the current modeAlexandre Ratchov
2009-10-10make dev_done() common to audio and MIDI, and drop dev_thrudone()Alexandre Ratchov
2009-10-10use dev_done() for loopback devices too and remove dev_loopdone()Alexandre Ratchov
2009-10-10There is no point setting the scroll region up for line feeds unless scrollingNicholas Marriott
is actually going to happen, so don't.
2009-10-10Add "grouped sessions" which have independent name, options, current window andNicholas Marriott
so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session. Had this around for a while, tested by a couple of people.
2009-10-10We don't need independent file reader and writer anymore. So,Alexandre Ratchov
destroy reader when writer terminates and destroy writer when reader terminates. This simplifies a lot the way we drain audio devices and will help simplifying other parts.
2009-10-10Support for individual session idle time locking. May be enabled by turning offNicholas Marriott
the lock-server option (it is on by default). When this is off, each session locks when it has been idle for the lock-after-time setting. When on, the entire server locks when ALL sessions have been idle for their individual lock-after-time settings. This replaces one global-only option (lock-after-time) with another (lock-server), but the default behaviour is usually preferable so there don't seem to be many alternatives. Diff/idea largely from Thomas Adam, tweaked by me.
2009-10-10Instead of passing a struct pollfd ** around through various functions, buildNicholas Marriott
them into a tree and then convert into a flat poll array before and after poll. This adds a little code but should reduce annoying problems with ordering when adding new things that also need to be polled.
2009-10-09Make abuf structure smaller:Alexandre Ratchov
- put aproc-specific parameters into unions since they are never used together - remove constant ``data'' pointer always pointing the end of the abuf structure
2009-10-09The UTF-8 detection idea doesn't work and I am reasonably happy with theNicholas Marriott
current methods, so remove the (already #ifdef 0'd) code.
2009-10-09Add a simple synchronize-panes window option: when set, all input to any paneNicholas Marriott
that is part of the window is also sent to all other panes in the same window. Suggested by several, most recently Tomasz Pajor.
2009-10-09Be less aggressive about turning the cursor off, only explicitly turn it offNicholas Marriott
when tmux is redrawing, otherwise leave in the state set by the application.
2009-10-08some tweaks now that protocol 1 is not offered by default; ok markusJason McIntyre
2009-10-08Do not write "Connection to ... succeeded" messages to stdout.Marco Pfatschbacher
OK gilles, rainer, millert, deraadt.
2009-10-08disable protocol 1 by default (after a transition period of about 10 years)Markus Friedl
ok deraadt
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