summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2009-07-30Remove some dead code found by clang.Nicholas Marriott
2009-07-30tweak previous;Jason McIntyre
2009-07-30Similar changes for server_msg_dispatch: use a switch instead of a lookup tableNicholas Marriott
and merge smaller functions inline.
2009-07-30There aren't many client message types or code to handle them so get rid of theNicholas Marriott
lookup table and use a switch, merge the tiny handler functions into it, and move the whole lot to client.c. Also change client_msg_dispatch to consume as many messages as possible and move the call to it to the right place so it checks for signals afterwards. Prompted by suggestions from eric@.
2009-07-30Tell the server when the client gets SIGTERM so it can clean up the terminalNicholas Marriott
properly, rather than just exiting.
2009-07-30Merge pane number into the target specification for pane commands. Instead ofNicholas Marriott
using -p index, a target pane is now addressed with the normal -t window form but suffixed with a period and a pane index, for example :0.2 or mysess:mywin.1. An unadorned number such as -t 1 is tried as a pane index in the current window, if that fails the same rules are followed as for a target window and the current pane in that window used. As a side-effect this now means that swap-pane can swap panes between different windows. Note that this changes the syntax of the break-pane, clear-history, kill-pane, resize-pane, select-pane and swap-pane commands.
2009-07-30new sentence, new line;Jason McIntyre
2009-07-30Add a mode-mouse option to prevent tmux taking over the mouse in choice or copyNicholas Marriott
modes.
2009-07-29- ~<, ~_ are undocumented aliases of ~r, ~:Martynas Venckus
- missing documentation for ~. - use compact list, and .Pp. so that aliases could be listed - reformat to fit aliases in tilde help with help & ok jmc@, sobrado@, millert@
2009-07-29Add an additional heuristic to work out the current session when run from theNicholas Marriott
command line. The name of all slave ptys in the server is known, so if the client was run on a tty, look for any sessions containing that tty and use the most recently created. This is more reliable than looking at $TMUX if windows have been moved or linked between sessions.
2009-07-29Rename struct hdrtype to msgtype which is a better name and can be used evenNicholas Marriott
when struct hdr disappears.
2009-07-29Taking account of the "s, 22 not 24 is the maximum length of #T in status-rightNicholas Marriott
to prevent the date being cut off.
2009-07-28Final pieces of mode key rebinding: bind-key and unbind-key now accept a -tNicholas Marriott
argument to modify a table.
2009-07-28remove core / tilde C. it's useless, doesn't work, never has beenMartynas Venckus
documented, ^\ should be used instead. ok millert@
2009-07-28Accept and print "Enter" and "Escape" for keys rather than C-m and C-[.Nicholas Marriott
2009-07-28Next step towards customisable mode keys: build each default table of keys intoNicholas Marriott
a named tree on start and use that for lookups. Also add command to string translation tables and modify list-keys to show the the mode key bindings (new -t argument).
2009-07-28If select-layout is not given an argument, repply the last layout used in theNicholas Marriott
window, if any.
2009-07-27- make urls such as http://foo, http://foo/, or http://foo/bar/Martynas Venckus
fetchable, if -o outfile is passed. outfile will be used as a local filename - fix a bug where 'no file after host' code path never got entered; consider no file after dir invalid; as code intended proxy help&ok halex@; testing(including proxies,pkg_add)&ok sthen@; looks good to millert@
2009-07-27Remove an unused entry in the mode keys command enum and renameNicholas Marriott
MODEKEYCOPY_QUIT to _CANCEL to match the others.
2009-07-27Change mode key bindings from big switches into a set of tables. Rather thanNicholas Marriott
lumping them all together, split editing keys from those used in choice/more mode and those for copy/scroll mode. Tidier and clearer, and the first step towards customisable mode keys.
2009-07-27Get rid of empty mode_key_free function.Nicholas Marriott
2009-07-27document how patterns are matched and that only the first 16 charsJason McIntyre
are tracked to match the command name; pointed out by fgsch diff adapted from text from gad@freebsd ok fgsch sobrado millert
2009-07-27Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in vi).Nicholas Marriott
From Kalle Olavi Niemitalo.
2009-07-27Draw UTF-8 characters under the selection correctly.Nicholas Marriott
2009-07-27Change previous-word behavior to move to the beginning of the word (matchesNicholas Marriott
emacs and vi). From Kalle Olavi Niemitalo.
2009-07-26now in sync with version 1.8.1Ingo Schwarze
2009-07-26sync to 1.8.1: explicit-close macros now only warn when encounteringIngo Schwarze
trailing terms and do not error out any more, try: .Ed foo
2009-07-26sync to 1.8.1: remove superfluous NOSPACE in bd post,Ingo Schwarze
and remove unused TERMP_LITERAL
2009-07-26sync to 1.8.1: add a comment explaining the non-trivial termpair semantics;Ingo Schwarze
a bug in this very respect was contained in the upstream equivalent of rev. 1.28, but was squashed while merging into OpenBSD
2009-07-26sync to 1.8.1: describe corrected handling of quoted literals,Ingo Schwarze
remove trailing whitespace and much minor cleanup
2009-07-26sync to 1.8.1: rewrite quoted literal handling correctly,Ingo Schwarze
rewrite TABSEP handling in a simpler way, and retire ECOLEMPTY, ARGS_QUOTED and ARGS_ARGVLIKE
2009-07-26Detect backspace by looking at termios VERASE and translate it into \177 (whichNicholas Marriott
matches screen's behaviour if not its termcap/terminfo entry). The terminfo kbs cap is often wrong or missing so it can't be used, and just assuming \177 may be wrong.
2009-07-26Calculate the space available for the prompt buffer and the cursor positionNicholas Marriott
correctly, and make it work when the screen is not wide enough. Noticed by Kalle Olavi Niemitalo.
2009-07-26Go to the next if the current best process is replaced, don't keep comparing itNicholas Marriott
with itself. Also fix process name comparison.
2009-07-26Make all messages sent between the client and server fixed size.Nicholas Marriott
This is the first of two changes to make the protocol more resilient and less sensitive to other changes in the code, particularly with commands. The client now packs argv into a buffer and sends it to the server for parsing, rather than doing it itself and sending the parsed command data. As a side-effect this also removes a lot of now-unused command marshalling code. Mixing a server without this change and a client with or vice versa will cause tmux to hang or crash, please ensure that tmux is entirely killed before upgrading.
2009-07-26sync to 1.8.1: removed excessively verbose EARGVPARM warningIngo Schwarze
2009-07-26sync to 1.8.1: support .br and .spIngo Schwarze
2009-07-26sync to 1.8.1: modify macro hash tables to deal with lowercase macro names;Ingo Schwarze
kristaps@ thinks the tables are too sparse and need more work later
2009-07-26sync to 1.8.1: small clarity updates;Ingo Schwarze
while here, strip trailing white space
2009-07-26sync to 1.8.1: .Bl -diag lacked the second blank after the tagIngo Schwarze
2009-07-26sync to 1.8.1: correct vis count for erroneously-decorated whitespace;Ingo Schwarze
while here, add a new FIXME wrt .Bl -diag
2009-07-26sync to 1.8.1: word splitting now happens in libmdoc,Ingo Schwarze
and remove costly, redundant calculations of string length
2009-07-26sync to 1.8.1: libmdoc now breaks up free-form lines into tokens;Ingo Schwarze
will simplify LITERAL mode in front-end
2009-07-25sync to 1.8.1: fix date in footer; from Ulrich SporleinIngo Schwarze
2009-07-25sio_open returns a pointer so the < 0 comparison is wrongAlexandre Ratchov
from Thomas Pfaff, thanks
2009-07-25fix comments, remove no longer needed declaration, reorder includesAlexandre Ratchov
from Thomas Pfaff
2009-07-25Currently midi capable programs can control midi hardware, butAlexandre Ratchov
cannot cooperate with other programs. The aim of this change is to allow any program to send midi data to other programs as they were midi hardware. For instance, this change should solve the longstanding problem of using a midi sequencer with software synthesizers. More precisely: - new midicat(1) utility (actually hardlink to aucat(1)). it creates software midi thru boxes, allowing programs to send midi messages to other programs as they were midi(4) hardware. - new midi api in libsndio (see mio_open(3)), to access midi(4) devices and midicat(1) sockets in a uniform way. - new device naming scheme <service>:<unit>[.<option>], common to audio and midi. - new sndio(7) manual describing concepts and naming The current audio device naming still works, but people having scripts or configuration files containing device names could read the sndio(7) man page and slowly start updating device names. discussed with jakemsr@ and deraadt@, help form jmc@
2009-07-24Set the active pane when respawning a window - fixes problems when respawning aNicholas Marriott
window with multiple panes.
2009-07-24Use the full range of ACS line drawing characters to draw pane borders,Nicholas Marriott
including intersections.
2009-07-24cmd_find_index should return -2 on error.Nicholas Marriott