Commit Graph

  • 69f3c24647 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-23 20:17:30 +00:00
  • c2b0fdae5b LC_ALL overrides LC_CTYPE and LANG. Comment was correct but the code wrong. Pointed out by Hannah Schroeter, thanks. Nicholas Marriott 2009-06-23 18:27:40 +00:00
  • 89262c62fe Terminate cwd buffer before running xstrdup on it. Nicholas Marriott 2009-06-05 11:14:13 +00:00
  • 18665b8cc9 Check the first of LC_CTYPE, LC_ALL and LANG, rather than just the last, when trying to decide about UTF-8, and use strcasestr. Reported by Geert Hendrickx. Nicholas Marriott 2009-06-05 07:22:23 +00:00
  • a3c32841e6 strdup the input to putenv to avoid in one case passing a string that is later freed and in the other const strings. Nicholas Marriott 2009-06-05 07:18:37 +00:00
  • 1156467726 Call setproctitle earlier in the client, and include the socket name. Makes it easier to match client to server in ps/pgrep when using several servers. Nicholas Marriott 2009-06-05 07:15:58 +00:00
  • 74749e8705 Remove trailing newlines, spaces, and tabs. Ray Lai 2009-06-05 03:13:16 +00:00
  • 85e0d8a221 Print a better message than '(null)' if no command is specified ("tmux \;"). Nicholas Marriott 2009-06-04 23:34:32 +00:00
  • 38b2c42f63 Zero the password given to -U in the client as well. Nicholas Marriott 2009-06-04 21:56:14 +00:00
  • 50bd094856 If the prompt is hidden or a password is sent with -U, zero it before freeing it. Nicholas Marriott 2009-06-04 21:43:24 +00:00
  • f031975dc0 Implement the CBT (backward tab) sequence (\033[Z). Nicholas Marriott 2009-06-04 21:02:21 +00:00
  • d42fb43f4f Proper support for tab stops (\033H etc), using a bitstring(3). Makes another vttest test happy. Nicholas Marriott 2009-06-04 18:48:24 +00:00
  • d6015824dd Okay, so I screwed up when testing this, doh. Unbreak so that CAN/SUB actually do cancel the sequence, and tweak to make the code more clear. Nicholas Marriott 2009-06-04 14:42:14 +00:00
  • 6c1f03578d Oops, CAN and SUB should abort the sequence (return to first state), not remain in the same state. Nicholas Marriott 2009-06-04 14:24:49 +00:00
  • 8dd2f0da3f More input compatibility love. Support C0 within escape sequences, and the C0 control character VT (vertical tab, \013), which is treated as LF like VT102. Makes another vttest happy. Nicholas Marriott 2009-06-04 14:15:50 +00:00
  • 0ba85cc326 zap trailing whitespace; Jason McIntyre 2009-06-04 13:36:25 +00:00
  • c1a4c0186a Support insert mode by using insert character to shift the cells before writing as normal. Nicholas Marriott 2009-06-03 23:37:30 +00:00
  • 52ec9b9ec4 Implement the DEC alignment test. With the last change this is enough for the first cursor test in vttest (in ports) to pass; it still shops a few more problems though. Nicholas Marriott 2009-06-03 23:30:40 +00:00
  • ebe07c2726 Fix some miscalculations when clearing to start of screen: the number of lines to the cursor is cy not cy - 1, and the current cursor cell should be included. Nicholas Marriott 2009-06-03 23:26:56 +00:00
  • 3f16fcb30a Use vis(3) instead of handrolled function. Nicholas Marriott 2009-06-03 19:37:27 +00:00
  • 2faec76afa Pass window titles through vis(1). <0x20 is dropped anyway by the input state machine but top-bit-set nonprintables could cause trouble, and they are neater like this anyway. Nicholas Marriott 2009-06-03 19:33:04 +00:00
  • 6208128fa2 Sync with private copy. Nicholas Marriott 2009-06-03 17:52:29 +00:00
  • 655a1aea6c Do not set the window title by default (make set-titles option default to off), wiping over the title is rude and annoying. Agreed by several. Nicholas Marriott 2009-06-03 17:04:16 +00:00
  • 6521427a45 New session option, status-utf8, to control the interpretation of top-bit-set characters in status-left and status-right (if on, they are treated as UTF-8; otherwise passed through). Nicholas Marriott 2009-06-03 16:54:26 +00:00
  • 7d45e29683 Add a UTF-8 aware string length function and make UTF-8 in status-left/status-right work properly. At the moment any top-bit-set characters are assumed to be UTF-8: a status-utf8 option to configure this will come shortly. Nicholas Marriott 2009-06-03 16:05:46 +00:00
  • 41d985ace3 Add missing documentation for the -a flag used to move to next/previous window with alert. Nicholas Marriott 2009-06-03 15:58:40 +00:00
  • e659aa86b9 Add a section summarising the status line. There are quite a number of status line options, it is something many want to configure, and the meaning of some bits weren't really documented. Nicholas Marriott 2009-06-03 15:47:14 +00:00
  • 5823854b5e undo a mistake found by sobrado; Jason McIntyre 2009-06-03 09:29:06 +00:00
  • c5dbec9e85 When swapping pane positions, swap the PANE_HIDDEN flag as well, otherwise tmux crashes when trying to find the new active pane. Nicholas Marriott 2009-06-03 07:51:24 +00:00
  • 646cfa6983 some cleanup; ok nicm Jason McIntyre 2009-06-03 06:49:05 +00:00
  • fdda4142bf Cast char to u_char before passing to isalnum(). Ray Lai 2009-06-03 04:03:16 +00:00
  • 3f76a973ee Recent code to try and detect if a terminal supports UTF-8 by printing to it fails spectacularly on (at least) sparc64, so disable it for now. Thanks to naddy and Josh Elsasser for help and testing. Nicholas Marriott 2009-06-02 23:39:32 +00:00
  • 4215d009a5 remove unused flag; while here, make usage's output fit on 80-column displays. Igor Sobrado 2009-06-02 16:53:20 +00:00
  • a35630838f sort options alphabetically. Igor Sobrado 2009-06-02 16:46:00 +00:00
  • dc373abba8 spawn login shells by default, adapt manpage bits as well. ok nicm@ Pierre-Yves Ritschard 2009-06-02 15:55:32 +00:00
  • f60bc7e03b Don't access array[-1] if array is an empty string. Ray Lai 2009-06-02 11:18:59 +00:00
  • 49c776ea59 Make code clearer: - if (hdr->size > SIZE_MAX - 1) + if (hdr->size == SIZE_MAX) Ray Lai 2009-06-02 11:17:03 +00:00
  • 3686645e77 Don't dereference NULL if buf winds up being empty. Can't happen right now according to NicM but better safe than sorry. Ray Lai 2009-06-02 11:14:08 +00:00
  • df91860b52 Don't leak memory if multiple -f flags are given. Ray Lai 2009-06-02 10:49:40 +00:00
  • 29d4016572 Update the man page with some recent changes to the code: Nicholas Marriott 2009-06-01 23:51:00 +00:00
  • 6e3f673ef7 Whoops, didn't mean to add this. Nicholas Marriott 2009-06-01 23:00:54 +00:00
  • 35876eaab9 Import tmux, a terminal multiplexor allowing (among other things) a single terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. Nicholas Marriott 2009-06-01 22:58:49 +00:00
  • 940e2ae1fd endpwent() is not required after getpwuid(). Nicholas Marriott 2009-06-01 20:38:59 +00:00
  • 144aed48fa +. Nicholas Marriott 2009-05-29 23:26:11 +00:00
  • f63f5e6489 Clear status line on incorrect password. Nicholas Marriott 2009-05-29 23:25:26 +00:00
  • 17a6c01d58 Don't show real character under cursor when hidden. Doh. Nicholas Marriott 2009-05-29 05:40:56 +00:00
  • 8536ad0ce7 Reset activity time to avoid relock on -U. Nicholas Marriott 2009-05-28 16:24:02 +00:00
  • 3a55871d04 Now in base. Nicholas Marriott 2009-05-26 18:31:10 +00:00
  • cd4566cd69 Spacing. Nicholas Marriott 2009-05-26 18:30:51 +00:00
  • 133539a2d4 Update. Nicholas Marriott 2009-05-21 19:51:33 +00:00
  • 89404788c9 Spacing. Nicholas Marriott 2009-05-21 19:47:57 +00:00
  • 6c442c19ba UPPER -> BIG, sort, and bump protocol version. Nicholas Marriott 2009-05-21 19:46:00 +00:00
  • a8ec5f1d09 stat(2) files before trying to load them to avoid problems, for example with "source-file /dev/zero". Nicholas Marriott 2009-05-21 19:38:51 +00:00
  • eb6007102e new layout plan Nicholas Marriott 2009-05-20 15:46:48 +00:00
  • cdce5f739d Indentation. Nicholas Marriott 2009-05-19 16:29:35 +00:00
  • 5707eb3256 +. Nicholas Marriott 2009-05-19 16:12:40 +00:00
  • 6db7bd6791 Try to guess if the window is UTF-8 by outputting a three-byte UTF-8 wide character and seeing how much the cursor moves. Currently tries to figure out if this works by some stupid checks on the terminal, these need to be rethought. Also might be better using a width 1 character rather than width 2. Nicholas Marriott 2009-05-19 16:08:35 +00:00
  • 5db59a0d20 If LANG contains "UTF-8", assume the terminal supports UTF-8, on the grounds that anyone who configures it probably wants UTF-8. Not certain if this is a perfect idea but let's see if it causes any problems. Nicholas Marriott 2009-05-19 16:03:18 +00:00
  • 80af85a102 - New window option monitor-content to search for a string in a window, and highlight the status line if it matches. - To make this possible, the function cmd_find_window_search from cmd-find-window.c had to be moved to window.c and renamed window_pane_search. - While there use three new functions in server.c to check for bell, activity, and content, to avoid too much nesting. Tiago Cunha 2009-05-19 13:32:55 +00:00
  • a385f75792 Note. Nicholas Marriott 2009-05-19 08:50:10 +00:00
  • 0abd8ea84f (void). Nicholas Marriott 2009-05-19 08:48:49 +00:00
  • 72e464fa04 main-horizontal layout and main-pane-height option to match vertical. Nicholas Marriott 2009-05-18 22:17:24 +00:00
  • c21ffbc772 left-vertical -> main-vertical. Also update CHANGES/TODO. Nicholas Marriott 2009-05-18 21:58:40 +00:00
  • 6e4b947d71 New option main-pane-width to set width of pane in left-vertical mode. Nicholas Marriott 2009-05-18 21:55:53 +00:00
  • 3ee4b334e7 manual -> manual-vertical. Nicholas Marriott 2009-05-18 21:32:36 +00:00
  • 404411f5e7 horizontal -> h, vertical -> v, to shorten some function names a little. Nicholas Marriott 2009-05-18 21:29:11 +00:00
  • d601c42ea2 Behave properly when resize not supported. Nicholas Marriott 2009-05-18 21:16:09 +00:00
  • b233616853 Update TODO. Nicholas Marriott 2009-05-18 21:08:11 +00:00
  • 5518b6138d manual -> manual-vertical. Nicholas Marriott 2009-05-18 21:06:16 +00:00
  • ab4e5e8574 Clean up manual layout code: Nicholas Marriott 2009-05-18 21:01:38 +00:00
  • b6b00c53bd Fix comment. Nicholas Marriott 2009-05-18 20:18:08 +00:00
  • 2f5c3d881d #undef everything in config.h. This is the only bit of the scripting work I am using now :-). Nicholas Marriott 2009-05-18 19:18:41 +00:00
  • a03cf0e183 +b on fopen. Nicholas Marriott 2009-05-18 16:22:30 +00:00
  • d2275f4abf chmod +x configure Nicholas Marriott 2009-05-18 15:42:30 +00:00
  • 0c33b73db0 Move some crap into the attic, and some other stuff into tools/. Nicholas Marriott 2009-05-17 18:27:18 +00:00
  • 8dc73f2df5 Move website stuff into its own directory. Nicholas Marriott 2009-05-17 18:20:59 +00:00
  • 6805217783 Move dist.mk to tools/. Nicholas Marriott 2009-05-17 18:15:41 +00:00
  • 0f5168f971 Use >|. Nicholas Marriott 2009-05-16 22:14:47 +00:00
  • c111310600 Use a better variable name and allow the uname to be overridden. Nicholas Marriott 2009-05-16 22:06:01 +00:00
  • d58bfe5f0a clean-all. Nicholas Marriott 2009-05-16 21:56:38 +00:00
  • 095f16d64f clean-all target to clean configure stuff too. Nicholas Marriott 2009-05-16 21:55:54 +00:00
  • 25911d32e1 Use empty(), FreeBSD doesn't like ==. Nicholas Marriott 2009-05-16 18:59:50 +00:00
  • 1001902143 select-layout command and some key bindings. Nicholas Marriott 2009-05-16 11:48:47 +00:00
  • 03af7c99b5 Recreate server socket on SIGUSR1, per SF feature request 2792533. Nicholas Marriott 2009-05-16 10:02:51 +00:00
  • 92de1ad6c8 putenv can be char *. Nicholas Marriott 2009-05-15 12:58:56 +00:00
  • 0b54a2d723 Don't use -Wcast-qual and use explicit casts to shut gcc up in the few cases we can't avoid using a char *. Nicholas Marriott 2009-05-15 12:57:36 +00:00
  • 8913d853e4 +sfw for solaris too. Nicholas Marriott 2009-05-14 19:49:26 +00:00
  • cba338ac13 Keys in status line (p in vi mode, M-y in emacs) to paste the first line of the upper paste buffer. Suggested by Dan Colish. Nicholas Marriott 2009-05-14 19:36:56 +00:00
  • 8931f0018a Separate tmux target. Doh. Nicholas Marriott 2009-05-14 19:32:37 +00:00
  • b476fab34d PuTTY resizing from merdely. Nicholas Marriott 2009-05-14 18:43:02 +00:00
  • 96ca072482 clear-history command. Nicholas Marriott 2009-05-14 16:56:23 +00:00
  • cc59ee4e6a This is okay. Nicholas Marriott 2009-05-14 16:31:35 +00:00
  • dd2f8d7d74 Don't force wrapping with \n when asked, let the cursor code figure it out. Should fix terminals which use this to detect line breaks. Nicholas Marriott 2009-05-14 16:21:55 +00:00
  • 4b64bd7b01 It is HAVE_PTY_H, also add a cast to shut gcc up. Nicholas Marriott 2009-05-14 07:58:38 +00:00
  • c495337e76 HAVE_. Nicholas Marriott 2009-05-14 07:51:51 +00:00
  • cae92a2041 Needs a VERSION. Nicholas Marriott 2009-05-14 07:51:25 +00:00
  • 5adb342147 SunOS tweaks. Nicholas Marriott 2009-05-14 07:49:23 +00:00
  • 3b0bd5a3e6 +. Nicholas Marriott 2009-05-14 07:49:15 +00:00
  • 6099a3399e Add distribution stuff back in. Nicholas Marriott 2009-05-14 07:48:42 +00:00
  • 1a86934e09 NetBSD has no strtonum so needs compat/. Nicholas Marriott 2009-05-14 00:40:58 +00:00