aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* 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.
* lines variable can be -1 (to be ignored), so should be signed. Found by lint.Nicholas Marriott2009-06-25
|
* Remove error about using -L and -S together which was never displayed asNicholas Marriott2009-06-25
| | | | | logging wasn't yet enabled, was unnecessary, and contradicted the man page which says using -S will cause -L to be ignored.
* tmux doesn't and won't need syslog logging, so remove it and some other unusedNicholas Marriott2009-06-25
| | | | | | functions found by lint. Also move a couple of internal function declarations into file scope.
* Miscellaneous unused functions, including one which was basically aNicholas Marriott2009-06-25
| | | | duplicate. Found by lint.
* Nuke unused buffer functions. Found by lint.Nicholas Marriott2009-06-25
| | | | Also remove some old debug output which was #if 0.
* Unused prototypes. Found by lint, no binary change.Nicholas Marriott2009-06-25
|
* Unused variables. Found by lint, no binary change.Nicholas Marriott2009-06-25
|
* Remove some cruft from the Makefile.Nicholas Marriott2009-06-24
|
* Now that a UTF-8-capable puts function exists, use it for printing strings inNicholas Marriott2009-06-24
| | | | | choice/more modes - lines with UTF-8 now display properly in find-window results.
* Fix a type mismatch warning in assignment.Nicholas Marriott2009-06-24
|
* Change find-window and monitor-content to use fnmatch(3). For convenience andNicholas Marriott2009-06-24
| | | | | | | | | compatibility, *s are implicitly added at the start and end of the pattern. Also display the line number and the entire line in the results, and lose the nasty section_string function and the now empty util.c file. Initially from Tiago Cunha.
* Add a dedicated function to convert a line into a string and use it to ↵Nicholas Marriott2009-06-24
| | | | simplify the search window function.
* Change to match xterm's resizing behaviour, including pushing lines into theNicholas Marriott2009-06-24
| | | | | | | history from the top when reducing vertical size and pulling them again when increasing size. ok todd sthen
* Make remain-on-exit work again when there is only one pane left, which wasNicholas Marriott2009-06-24
| | | | | broken sometime during the pane/layout changes. Reported/tested by Iain Morgan, thanks.
* Trying to predict the cursor position for UTF-8 output in the same way as forNicholas Marriott2009-06-24
| | | | | | normal eight-bit output is wrong, separate it into a different function. Fixes spacing when mixing UTF-8 with some escape sequences, notably the way w3m does it.
* tweak previous;Jason McIntyre2009-06-24
|
* Constify utf8_width() function argument.Nicholas Marriott2009-06-24
|
* Mention LC_ALL, LC_CTYPE.Nicholas Marriott2009-06-23
|
* Add some common config file examples to the quick start section.Nicholas Marriott2009-06-23
|
* If a pane is "zombified" (remain-on-exit flag), don't continue to queue key andNicholas Marriott2009-06-23
| | | | mouse input for it (otherwise they are processed after respawn).
* LC_ALL overrides LC_CTYPE and LANG. Comment was correct but the codeNicholas Marriott2009-06-23
| | | | wrong. Pointed out by Hannah Schroeter, thanks.
* Terminate cwd buffer before running xstrdup on it.Nicholas Marriott2009-06-05
|
* Check the first of LC_CTYPE, LC_ALL and LANG, rather than just the last, whenNicholas Marriott2009-06-05
| | | | trying to decide about UTF-8, and use strcasestr. Reported by Geert Hendrickx.
* strdup the input to putenv to avoid in one case passing a string that is laterNicholas Marriott2009-06-05
| | | | | | freed and in the other const strings. looks sane to millert, ok ray
* Call setproctitle earlier in the client, and include the socket name. Makes itNicholas Marriott2009-06-05
| | | | easier to match client to server in ps/pgrep when using several servers.
* Remove trailing newlines, spaces, and tabs.Ray Lai2009-06-05
| | | | No binary change.
* Print a better message than '(null)' if no command is specified ("tmux \;").Nicholas Marriott2009-06-04
|
* Zero the password given to -U in the client as well.Nicholas Marriott2009-06-04
|
* If the prompt is hidden or a password is sent with -U, zero it before freeingNicholas Marriott2009-06-04
| | | | it.
* Implement the CBT (backward tab) sequence (\033[Z).Nicholas Marriott2009-06-04
|
* Proper support for tab stops (\033H etc), using a bitstring(3). Makes anotherNicholas Marriott2009-06-04
| | | | vttest test happy.
* Okay, so I screwed up when testing this, doh. Unbreak so that CAN/SUB actuallyNicholas Marriott2009-06-04
| | | | do cancel the sequence, and tweak to make the code more clear.
* Oops, CAN and SUB should abort the sequence (return to first state), not remainNicholas Marriott2009-06-04
| | | | in the same state.
* More input compatibility love. Support C0 within escape sequences, and the C0Nicholas Marriott2009-06-04
| | | | | control character VT (vertical tab, \013), which is treated as LF like VT102. Makes another vttest happy.
* zap trailing whitespace;Jason McIntyre2009-06-04
|