aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * Tidy up and improve target (-t) argument parsing:Nicholas Marriott2009-07-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - move the code back into cmd.c and merge with the existing functions where possible; - accept "-tttyp0" as well as "-t/dev/ttyp0" for clients; - when looking up session names, try an exact match first, and if that fails look for it as an fnmatch pattern and then as the start of a name - if more that one session matches an error is given; so if there is one session called "mysession", -tmysession, -tmysess, -tmysess* are equivalent but if there is also "mysession2", the last two are errors; - similarly for windows, if the argument is not a valid index or exact window name match, try it against the window names as an fnmatch pattern and a prefix.
| * Support "alternate screen" mode (terminfo smcup/rmcup) typically used by fullNicholas Marriott2009-07-13
| | | | | | | | | | | | | | screen interactive programs to preserve the screen contents. When activated, it saves a copy of the visible grid and disables scrolling into and resizing out of the history; when deactivated the visible data is restored and the history reenabled.
| * Missed this declaration in key bindings change. Whoops.Nicholas Marriott2009-07-12
| |
| * Document the -k flag to new-window.Nicholas Marriott2009-07-12
| |
| * Creating a key binding which replaces itself (such as "bind x bind x lsw")Nicholas Marriott2009-07-12
| | | | | | | | | | | | | | | | | | | | frees the command list bound to the key while it is still being executed, leading to a use after free. To prevent this, create a dead keys list and defer freeing replaced or removed key bindings until the main loop when the key binding will have finished executing. Found by Johan Friis when creating a key binding to reload his configuration file.
| * Add a "back to indentation" key in copy mode to move the cursor to the firstNicholas Marriott2009-07-12
| | | | | | | | | | non-whitespace character. ^ with vi and M-m with emacs key bindings. Another from Kalle Olavi Niemitalo, thanks.
| * Merge three copies of identical code to move the cursor x position into aNicholas Marriott2009-07-12
| | | | | | | | single function, from Kalle Olavi Niemitalo.
| * If it exist, load a system-wide configuration file /etc/tmux.conf before anyNicholas Marriott2009-07-12
| | | | | | | | user-specified one.
| * Limit the history to hlimit not hlimit - 1. This makes a history-limit settingNicholas Marriott2009-07-11
| | | | | | | | of 0 work as expected.
| * Add -r to the synopsis of the paste-buffer command, prompted by jmc.Nicholas Marriott2009-07-11
| |
| * When pasting, translate \n into \r. This matches xterm and putty's behaviour,Nicholas Marriott2009-07-11
| | | | | | | | | | | | | | and makes emacs happy when pasting into some modes. A new -r (raw) flag to paste-buffer pastes without the translation. From Kalle Olavi Niemitalo, thanks!
| * Copy was using the real line length which after resize can be larger than theNicholas Marriott2009-07-11
| | | | | | | | | | | | | | screen width. When built with -DDEBUG, this made the grid bounds checking code kill the server. Restrict copying to the actual width. From Kalle Olavi Niemitalo, thanks.
| * paste-buffer -d was not documented. From Kalle Olavi Niemitalo.Nicholas Marriott2009-07-10
| |
| * Redraw the status line after renaming a session (it may contain the name).Nicholas Marriott2009-07-10
| |
| * Don't send initialisation strings is1/2/3 (barely anything else does) and moveNicholas Marriott2009-07-10
| | | | | | | | | | smcup to the first and rmcup to the last sequences output to the terminal. This allows tmux to use the alternate screen (smcup/rmcup) when available.
| * Add a default-terminal option to set the starting value of $TERM in newNicholas Marriott2009-07-10
| | | | | | | | | | | | | | windows. This is "screen" by default and must be either that or something closely related. This does makes it easier to customise it if necessary.
| * Document display-time option which seems to have been missed.Nicholas Marriott2009-07-10
| |
| * When the terminal size is reduced horizontally, don't truncate lines to the newNicholas Marriott2009-07-09
| | | | | | | | | | width, so that if the same lines are later increased in size the content reappears.
| * Cursor up and down should be limited by the scroll region (cuu should stop atNicholas Marriott2009-07-09
| | | | | | | | | | the scroll region top if starting from below it and cud stop at the bottom if starting from above). Fixes another vttest test.
| * New command, if-shell (alias if). Executes the tmux command in the secondNicholas Marriott2009-07-09
| | | | | | | | | | | | | | | | argument if the shell command in the first succeeds, for example: if "[ -e ~/.tmux.conf.alt ]" "source .tmux.conf.alt" Written by Tiago Cunha, many thanks.
| * Stop in the right place so all the lines selected are copied. Reported by KalleNicholas Marriott2009-07-09
| | | | | | | | Olavi Niemitalo, thanks.
| * Don't leak FILE * on malloc failure. From ivoire at users dot sourceforge ↵Nicholas Marriott2009-07-09
| | | | | | | | dot net.
| * Change inserting and deleting lines inside the scroll region to properly clearNicholas Marriott2009-07-09
| | | | | | | | | | lines that should be inserted/deleted but not moved. Fixes problems with mutt reported by Brian Lewis, thanks.
| * Tidy by removing unused argument from grid_view_{insert,delete}_line_regionNicholas Marriott2009-07-09
| | | | | | | | functions (currently don't fully work, this is to make fix easier).
| * Fix two memory leaks when assigning shell variables in configurationNicholas Marriott2009-07-08
| | | | | | | | file/command prompt. From Tiago Cunha.
| * When reinitialising the screen, do not omit to clear the last line.Nicholas Marriott2009-07-08
| |
| * Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX,Nicholas Marriott2009-07-08
| | | | | | | | | | | | | | | | | | and some people may use shells which do not support it. Instead, make an empty default-command option mean a login shell, and fork it with a - in argv[0] which is the method used by login(1). Also fix the automatic-rename code to handle this correctly and to strip a leading - if present.
| * Don't let ambiguous commands override an exact alias match: eg if commandsNicholas Marriott2009-07-07
| | | | | | | | | | | | | | "abc-1", "abc-2", "abc-3" exist and "abc-3" has the alias "abc", "tmux abc" should execute abc-3, not complain about the command being ambiguous. Not a problem at the moment but will be soon.
| * Rename the global options variables to be shorter and to make session optionsNicholas Marriott2009-07-07
| | | | | | | | | | clear. No functional change, getting this out of the way to make later options changes easier.
| * Handle empty or unset TERM correctly; also fix a fatal() message while here.Nicholas Marriott2009-07-07
| |
| * When sending a "protocol mismatch" error message, tell the client to exitNicholas Marriott2009-07-07
| | | | | | | | afterwards, otherwise it hangs.
| * The fix for default-path (use target session options instead of global options)Nicholas Marriott2009-07-07
| | | | | | | | is required here as well, doh.
| * Minor fix: look for default-path in the options for the specified session firstNicholas Marriott2009-07-07
| | | | | | | | rather than just the global options. From Brandon Mercer, thanks.
| * Add a section summarising how options work, make the distinction between windowNicholas Marriott2009-07-06
| | | | | | | | | | and session options clearer, and fix the incorrect synopses and descriptions of show-options and show-window-options.
| * Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal errorNicholas Marriott2009-07-02
| | | | | | | | | | | | | | when trying to paste them, found by me, and miscalculation of the start/end causing random fatal errors when copying in copy-mode, reported by sthen. ok sthen "put it in" deraadt
| * When unlocking the server, don't try to clear the prompt on clients without aNicholas Marriott2009-06-30
| | | | | | | | | | | | | | prompt (such as the one issuing the unlock request). This caused the server to die if the wrong password was entered when unlocking from the command line with -U (nasty).
| * Fix two errors with character/line insertion and deletion: the maximum numberNicholas Marriott2009-06-29
| | | | | | | | | | | | | | | | | | | | of characters which may be inserted or deleted is the screen width, not one less (and similarly for lines and height); and if characters or lines are deleted by moving the ones that follow, the space at the end needs to be cleared. This appears to solve long-standing redraw issues most visible when using the force-width option then scrolling in view(1) or unwrapping lines in emacs.
| * Don't try to page up with scroll-mode -u or copy-mode -u unless the mode wasNicholas Marriott2009-06-29
| | | | | | | | | | successfully changed - if already in a different mode, it would corrupt the mode data.
| * Use gmtime_r so the current time isn't overwritten, the minute comparison worksNicholas Marriott2009-06-27
| | | | | | | | | | and the clock is actually updated. It was already used for lock-server but not here.
| * Copy the 256-colour flag into the tty saved cell as well as the actual colour,Nicholas Marriott2009-06-27
| | | | | | | | otherwise colour 8 isn't reset properly.
| * Add missing spaces before some alias closing brackets, otherwise they areNicholas Marriott2009-06-26
| | | | | | | | shown in the wrong style.
| * After logging (if enabled) is switched to file, there is no reason to keepNicholas Marriott2009-06-26
| | | | | | | | stdin/stdout/stderr active, so dup them to /dev/null.
| * Remove some unused function declarations; no binary change.Nicholas Marriott2009-06-26
| |
| * Status line fixes: don't truncate status-right now the length calculation isNicholas Marriott2009-06-26
| | | | | | | | | | done for UTF-8, limit to the maximum length correctly when printing, and always print a space even if the left string is longer than the width available.
| * Also #ifndef nitems here, caught by Thomas Jeunet.Nicholas Marriott2009-06-26
| |
| * Remove some dead assignments, found by sthen with clang.Nicholas Marriott2009-06-25
| |
| * #ifndef nitems to avoid redefining it if it is already in a header.Nicholas Marriott2009-06-25
| |
| * Use the pane flags not the window flags. Doh.Nicholas Marriott2009-06-25
| |
| * diagflags for diagsMarc Espie2009-06-25
| | | | | | | | okay nicm@
| * If getcwd() fails, use the user's home directory, or /, instead of failing withNicholas Marriott2009-06-25
| | | | | | | | an error.