summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2009-08-04Show the bell/activity/current status and the window title in the choice list.Nicholas Marriott
2009-08-04Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may alsoNicholas Marriott
appear.
2009-08-04clean up some macro abuse in the commands section;Jason McIntyre
2009-08-03Split the comparison into a function to make this code smaller and moreNicholas Marriott
understandable.
2009-08-03Don't try to free old string values (and crash) when they are overridden unlessNicholas Marriott
they were actually found in the source terminal description. Reported by jmc.
2009-08-03tweak previous;Jason McIntyre
2009-08-03Add a terminal-overrides session option allowing individual terminfo(5) entriesNicholas Marriott
to be overridden. The 88col/256col checks are now moved into the default setting and out of the code. Also remove a couple of old workarounds for xterm and rxvt which are no longer necessary (tmux can emulate them if missing).
2009-08-02Fix checking of setupterm(3) error codes. While there include theMatthieu Herrb
name of the terminal type causing the error where relevant. ok nicm@.
2009-07-31Pass the ACS border characters through tty_get_acs so they appear correctly onNicholas Marriott
terminals which don't use the standard set.
2009-07-30Don't leak when rollling buffers off when the paste buffer limit is reached.Nicholas Marriott
2009-07-30Plug some memory leaks.Nicholas Marriott
2009-07-30Don't babysit people and let them try to load /dev/zero or (more useful)Nicholas Marriott
/dev/null if they want.
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-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-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-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-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-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-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
2009-07-24Simplify screen redrawing by drawing the border and background together ratherNicholas Marriott
than border separately, and consolidating all the drawing characters into one string.
2009-07-24Accept lowercase c- and m- prefix as well as C- and M-.Nicholas Marriott
2009-07-24Permit commands to be bound to key presses without the prefix key first. TheNicholas Marriott
new -n flag to bind-key and unbind-key sets or removes these bindings, and list-key shows them in []s.
2009-07-24up-pane and down-pane no longer auto-repeat; update the description ofStuart Henderson
repeat-time accordingly. ok nicm@ if you prefer old behaviour; bind -r Up up-pane bind -r Down down-pane
2009-07-23None of the server message functions return anything but 0, so make them allNicholas Marriott
void. Also remove a leftover variable in client.c.
2009-07-23Tidy client message return slightly: convert flags into an enum, and mergeNicholas Marriott
error string into struct client_ctx as well.
2009-07-23Redraw after starting selection to correctly remove any existing selection.Nicholas Marriott
2009-07-23Revert r1.5, I don't like it, new sessions should start off identically - withNicholas Marriott
the defaults.
2009-07-23C-d is delete as well in emacs mode.Nicholas Marriott
2009-07-23Both of cmdclient and curclient CAN be NULL - if the command is executed fromNicholas Marriott
the configuration file. In this case, attach-session can't do much, and new-session should just assume -d.