Commit Graph

  • a182502af0 Don't let ambiguous commands override an exact alias match: eg if commands "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. Nicholas Marriott 2009-07-08 18:01:55 +00:00
  • 86504af149 Rename the global options variables to be shorter and to make session options clear. No functional change, getting this out of the way to make later options changes easier. Nicholas Marriott 2009-07-08 18:01:31 +00:00
  • 1825609d8d Handle empty or unset TERM correctly; also fix a fatal() message while here. Nicholas Marriott 2009-07-08 17:58:32 +00:00
  • 43ff216fa6 When sending a "protocol mismatch" error message, tell the client to exit afterwards, otherwise it hangs. Nicholas Marriott 2009-07-08 17:58:09 +00:00
  • ff54332b66 The fix for default-path (use target session options instead of global options) is required here as well, doh. Nicholas Marriott 2009-07-08 17:57:51 +00:00
  • 84da2f32ec Minor fix: look for default-path in the options for the specified session first rather than just the global options. From Brandon Mercer, thanks. Nicholas Marriott 2009-07-08 17:57:27 +00:00
  • b7a272fe6d Add a section summarising how options work, make the distinction between window and session options clearer, and fix the incorrect synopses and descriptions of show-options and show-window-options. Nicholas Marriott 2009-07-08 17:57:07 +00:00
  • 9e5a581307 When unlocking the server, don't try to clear the prompt on clients without a prompt (such as the one issuing the unlock request). Nicholas Marriott 2009-07-08 17:54:36 +00:00
  • f63761eabc Fix two memory leaks when assigning shell variables in configuration file/command prompt. From Tiago Cunha. Nicholas Marriott 2009-07-08 16:04:56 +00:00
  • 8c497ecac0 When reinitialising the screen, do not omit to clear the last line. Nicholas Marriott 2009-07-08 05:56:11 +00:00
  • 084d07f4eb Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX, 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). Nicholas Marriott 2009-07-08 05:26:45 +00:00
  • f34f1fd78d Sync. Nicholas Marriott 2009-07-07 23:08:42 +00:00
  • b4efd1ca89 Don't let ambiguous commands override an exact alias match: eg if commands "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. Nicholas Marriott 2009-07-07 21:23:22 +00:00
  • 923ccfa2e8 Rename the global options variables to be shorter and to make session options clear. No functional change, getting this out of the way to make later options changes easier. Nicholas Marriott 2009-07-07 19:49:19 +00:00
  • 474fdebb7a Handle empty or unset TERM correctly; also fix a fatal() message while here. Nicholas Marriott 2009-07-07 17:24:32 +00:00
  • 9ced016cbc When sending a "protocol mismatch" error message, tell the client to exit afterwards, otherwise it hangs. Nicholas Marriott 2009-07-07 12:34:47 +00:00
  • e538d4adae The fix for default-path (use target session options instead of global options) is required here as well, doh. Nicholas Marriott 2009-07-07 07:01:10 +00:00
  • eb424cf63d Minor fix: look for default-path in the options for the specified session first rather than just the global options. From Brandon Mercer, thanks. Nicholas Marriott 2009-07-07 06:58:49 +00:00
  • 69e150b7e3 Add a section summarising how options work, make the distinction between window and session options clearer, and fix the incorrect synopses and descriptions of show-options and show-window-options. Nicholas Marriott 2009-07-06 19:50:04 +00:00
  • a476d4c587 This is not really important or major. Nicholas Marriott 2009-07-06 18:53:24 +00:00
  • 21f8ed50db Next will be 1.0. Nicholas Marriott 2009-07-06 18:21:17 +00:00
  • dc2b811476 This commit was manufactured by cvs2svn to create tag 'TMUX_0_9'. 0.9 no_author 2009-07-02 18:26:56 +00:00
  • b8bd24817f If using the default login shell (empty default-command), strip any - prefix. Nicholas Marriott 2009-07-02 18:26:55 +00:00
  • 08c7249636 Change default_window_name to use window_default_command if the actual cmd is empty. From Josh Elsasser. Nicholas Marriott 2009-07-02 18:17:46 +00:00
  • 29ac832cb3 Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error 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. Nicholas Marriott 2009-07-02 16:23:54 +00:00
  • fe5edad1fc Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error 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. Nicholas Marriott 2009-07-02 16:15:43 +00:00
  • 85dac1e378 Update. Tiago Cunha 2009-07-02 13:50:27 +00:00
  • 1f1623e04d Solaris has no strcasestr. Nicholas Marriott 2009-07-02 07:31:02 +00:00
  • 3c0500f282 Don't see a reason for sys/cdefs.h here; remove it. Nicholas Marriott 2009-07-01 23:22:46 +00:00
  • 9f0653386b $Id$. Nicholas Marriott 2009-07-01 23:06:32 +00:00
  • ec818b8791 Move defines after includes to avoid multiple definition. Nicholas Marriott 2009-07-01 22:46:13 +00:00
  • 81f06ba170 Typo: bsdpoll.h -> bsd-poll.h. Nicholas Marriott 2009-07-01 22:43:48 +00:00
  • 851a35eb5e Change >| to rm/> as apparently Solaris /bin/sh doesn't like it. Nicholas Marriott 2009-07-01 22:28:56 +00:00
  • 8f2950f4ee Try to make a bit more sense here. Nicholas Marriott 2009-07-01 22:15:16 +00:00
  • e0a6376690 Comment FDEBUG and bump dist version. Nicholas Marriott 2009-07-01 22:10:06 +00:00
  • 1903756171 Changes for 0.9. Nicholas Marriott 2009-07-01 22:08:33 +00:00
  • 81010f52db Update with new UTF-8 environment variable information for 0.9. Nicholas Marriott 2009-07-01 19:49:56 +00:00
  • 22d1b9412e Using -l to specify a login shell is non-POSIX and causes problems with shells that do not support it. Instead, set an empty default-command to invoke $SHELL with - prefixed to argv[0], and make this the default setting. Nicholas Marriott 2009-07-01 19:42:55 +00:00
  • d50810267e This file is not going to be used as much any longer, make a note. Nicholas Marriott 2009-07-01 19:33:53 +00:00
  • 82b070ddfa Update ready for 0.9 Nicholas Marriott 2009-07-01 19:33:11 +00:00
  • 55f8219d3c When unlocking the server, don't try to clear the prompt on clients without a prompt (such as the one issuing the unlock request). Nicholas Marriott 2009-07-01 19:15:12 +00:00
  • 35092835b0 Fix two errors with character/line insertion and deletion: the maximum number 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. Nicholas Marriott 2009-07-01 19:14:33 +00:00
  • 8fe3f1dcb2 $Id$. Nicholas Marriott 2009-07-01 19:03:34 +00:00
  • 4c5c125173 When unlocking the server, don't try to clear the prompt on clients without a prompt (such as the one issuing the unlock request). Nicholas Marriott 2009-06-30 13:40:30 +00:00
  • eed4f7600d Fix $Id$. Nicholas Marriott 2009-06-29 22:04:51 +00:00
  • 503c6a3377 Don't try to page up with scroll-mode -u or copy-mode -u unless the mode was successfully changed - if already in a different mode, it would corrupt the mode data. Nicholas Marriott 2009-06-29 22:04:07 +00:00
  • 18ebc99906 Use gmtime_r so the current time isn't overwritten, the minute comparison works and the clock is actually updated. It was already used for lock-server but not here. Nicholas Marriott 2009-06-29 22:03:36 +00:00
  • edc2e7da98 Copy the 256-colour flag into the tty saved cell as well as the actual colour, otherwise colour 8 isn't reset. Nicholas Marriott 2009-06-29 22:03:09 +00:00
  • 796b2e3ec9 Add missing spaces before some alias closing brackets, otherwise they are shown in the wrong style. Nicholas Marriott 2009-06-29 22:02:20 +00:00
  • 68e06fb6b7 Fix two errors with character/line insertion and deletion: the maximum number 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. Nicholas Marriott 2009-06-29 21:30:50 +00:00
  • 003e8e65f7 Don't try to page up with scroll-mode -u or copy-mode -u unless the mode was successfully changed - if already in a different mode, it would corrupt the mode data. Nicholas Marriott 2009-06-29 07:11:20 +00:00
  • 710393e388 Use gmtime_r so the current time isn't overwritten, the minute comparison works and the clock is actually updated. It was already used for lock-server but not here. Nicholas Marriott 2009-06-27 14:40:22 +00:00
  • 2660692fb1 Copy the 256-colour flag into the tty saved cell as well as the actual colour, otherwise colour 8 isn't reset properly. Nicholas Marriott 2009-06-27 12:57:14 +00:00
  • 916669a244 Add missing spaces before some alias closing brackets, otherwise they are shown in the wrong style. Nicholas Marriott 2009-06-26 22:47:06 +00:00
  • 1fb3948ff1 Whoops, revert. Nicholas Marriott 2009-06-26 22:18:36 +00:00
  • 1496aa5dbc Remove some unused function declarations; no binary change. Nicholas Marriott 2009-06-26 22:18:03 +00:00
  • 6ce734cec0 After logging (if enabled) is switched to file, there is no reason to keep stdin/stdout/stderr active, so dup them to /dev/null. Nicholas Marriott 2009-06-26 22:13:57 +00:00
  • 46f80d01ff After logging (if enabled) is switched to file, there is no reason to keep stdin/stdout/stderr active, so dup them to /dev/null. Nicholas Marriott 2009-06-26 22:12:19 +00:00
  • b11b1dd1c0 Remove some unused function declarations; no binary change. Nicholas Marriott 2009-06-26 19:44:36 +00:00
  • 826add53f1 Set LC_ALL=C to stop i18n breaking gcc test. Nicholas Marriott 2009-06-26 16:01:12 +00:00
  • 1aaf47e698 Apparently NetBSD's tcgetpgrp is good enough to use, so don't need to play complicated games, from Roy Marples. Nicholas Marriott 2009-06-26 15:54:52 +00:00
  • de2ea2d178 Status line fixes: don't truncate status-right now the length calculation is 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. Nicholas Marriott 2009-06-26 15:34:12 +00:00
  • 3fcbe1e27b Remove some dead assignments, found by sthen with clang. no_author 2009-06-26 15:32:00 +00:00
  • 81b4aca934 #ifndef nitems. Nicholas Marriott 2009-06-26 15:31:15 +00:00
  • 1ec736a3dc Status line fixes: don't truncate status-right now the length calculation is 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. Nicholas Marriott 2009-06-26 15:13:39 +00:00
  • c506e7f711 Also #ifndef nitems here, caught by Thomas Jeunet. Nicholas Marriott 2009-06-26 10:55:37 +00:00
  • eb8ab96980 Remove some dead assignments, found by sthen with clang. Nicholas Marriott 2009-06-25 22:09:20 +00:00
  • e225ce0fd7 #ifndef nitems to avoid redefining it if it is already in a header. Nicholas Marriott 2009-06-25 22:08:15 +00:00
  • 63753735ec Update TODO. Nicholas Marriott 2009-06-25 21:25:36 +00:00
  • 32312e0252 vis compat stuff. Nicholas Marriott 2009-06-25 20:27:32 +00:00
  • 802e129fd7 Start of portability update: bitstring.h. Nicholas Marriott 2009-06-25 17:02:59 +00:00
  • f1463ff3c1 Lose -V. Nicholas Marriott 2009-06-25 16:56:08 +00:00
  • 0af7fa08d2 Skip 8 line diffs ($Id$ change only). Nicholas Marriott 2009-06-25 16:54:21 +00:00
  • 20002ec6cd Comparison script. Nicholas Marriott 2009-06-25 16:49:22 +00:00
  • 8fc34ca044 libgen.h. Nicholas Marriott 2009-06-25 16:49:02 +00:00
  • a9e3d5c56a More diff-to-OpenBSD reduction. Move a lot of compat stuff into compat.h. Nicholas Marriott 2009-06-25 16:47:00 +00:00
  • bb459beb03 Whitespace and more syncing. Nicholas Marriott 2009-06-25 16:34:50 +00:00
  • 8df98d1f5b Don't need linker magic anymore. Nicholas Marriott 2009-06-25 16:25:55 +00:00
  • 6cde05147e No more xmalloc-debug. Nicholas Marriott 2009-06-25 16:25:15 +00:00
  • 8565ae234b Fix rejects. Nicholas Marriott 2009-06-25 16:23:35 +00:00
  • 3eb1bfddd4 Sync this properly. Nicholas Marriott 2009-06-25 16:22:36 +00:00
  • a5830b9603 Restore $Id$ and add script to do so. Nicholas Marriott 2009-06-25 16:21:32 +00:00
  • f17a5f1e82 If getcwd() fails, use the user's home directory, or /, instead of failing with an error. Nicholas Marriott 2009-06-25 16:11:12 +00:00
  • bfa46e8f91 lines variable can be -1 (to be ignored), so should be signed. Found by lint. Nicholas Marriott 2009-06-25 16:10:18 +00:00
  • f0bcbcfa7f Remove error about using -L and -S together which was never displayed as logging wasn't yet enabled, was unnecessary, and contradicted the man page which says using -S will cause -L to be ignored. Nicholas Marriott 2009-06-25 16:09:38 +00:00
  • 1b9ac18565 tmux doesn't and won't need syslog logging, so remove it and some other unused functions found by lint. Nicholas Marriott 2009-06-25 16:09:25 +00:00
  • 582660bdf3 Miscellaneous unused functions, including one which was basically a duplicate. Found by lint. Nicholas Marriott 2009-06-25 16:09:11 +00:00
  • 62822b1848 Nuke unused buffer functions. Found by lint. Nicholas Marriott 2009-06-25 16:07:00 +00:00
  • abb5e36199 Unused prototypes. Found by lint, no binary change. Nicholas Marriott 2009-06-25 16:06:09 +00:00
  • 947fabc751 Unused variables. Found by lint, no binary change. Nicholas Marriott 2009-06-25 16:05:39 +00:00
  • a03ae97fbf Now that a UTF-8-capable puts function exists, use it for printing strings in choice/more modes - lines with UTF-8 now display properly in find-window results. Nicholas Marriott 2009-06-25 16:05:00 +00:00
  • 3ec8efc803 Fix a type mismatch warning in assignment. Nicholas Marriott 2009-06-25 16:04:43 +00:00
  • f7a9eb46fc Change find-window and monitor-content to use fnmatch(3). For convenience and compatibility, *s are implicitly added at the start and end of the pattern. Nicholas Marriott 2009-06-25 16:04:24 +00:00
  • 853ad68162 Add a dedicated function to convert a line into a string and use it to simplify the search window function. Nicholas Marriott 2009-06-25 16:02:37 +00:00
  • e6e1b45fa1 Change to match xterm's resizing behaviour, including pushing lines into the history from the top when reducing vertical size and pulling them again when increasing size. Nicholas Marriott 2009-06-25 16:02:10 +00:00
  • 944520b3a8 Make remain-on-exit work again when there is only one pane left, which was broken sometime during the pane/layout changes. Reported/tested by Iain Morgan, thanks. Nicholas Marriott 2009-06-25 16:01:42 +00:00
  • 942ea4267d Trying to predict the cursor position for UTF-8 output in the same way as for 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. Nicholas Marriott 2009-06-25 16:01:26 +00:00
  • 245685433e Constify utf8_width() function argument. Nicholas Marriott 2009-06-25 16:00:50 +00:00
  • 7eff7f7629 If a pane is "zombified" (remain-on-exit flag), don't continue to queue key and mouse input for it (otherwise they are processed after respawn). Nicholas Marriott 2009-06-25 16:00:25 +00:00
  • cd5a4f4c35 LC_ALL overrides LC_CTYPE and LANG. Comment was correct but the code wrong. Pointed out by Hannah Schroeter, thanks. Nicholas Marriott 2009-06-25 16:00:02 +00:00