Commit Graph

  • ea4487c6da Ugh. Pass the right type into tty_term_has. Teaches me to make last minute changes :-/. Nicholas Marriott 2010-09-11 16:20:58 +00:00
  • cb564bb427 Use UTF-8 line drawing characters on UTF-8 terminals. Fixes some stupid terminals (I'm looking at you, putty) which disable the vt100 ACS mode switching sequences in UTF-8 mode. Nicholas Marriott 2010-09-11 16:19:22 +00:00
  • 3696cce4ae Ignore terminal overrides settings without a value. Nicholas Marriott 2010-09-11 15:43:11 +00:00
  • c1c5f43a01 When resizing the copy mode screen, don't allow it to end up with the viewable position beyond the size of the history. Nicholas Marriott 2010-09-11 15:39:55 +00:00
  • 89c07dedd9 Sync OpenBSD patchset 759: Tiago Cunha 2010-09-10 13:36:17 +00:00
  • 28a0b6fd20 Sync OpenBSD patchset 758: Tiago Cunha 2010-09-10 13:34:12 +00:00
  • a22a6deda5 Add -n and -p flags to switch-client to move to the next and previous session (yes, it doesn't match window/pane, but so what, nor does switch-client). Nicholas Marriott 2010-09-08 22:02:28 +00:00
  • bbf743769b Do not crash if the screen size is too small for the indicator in copy mode. Nicholas Marriott 2010-09-08 20:36:42 +00:00
  • f54482a461 Solaris 9 has no stdint.h, ugh. Reported by a couple of people most recently Timothy Larson. Nicholas Marriott 2010-09-07 19:32:58 +00:00
  • afcc29a51d Sync OpenBSD patchset 757: Tiago Cunha 2010-09-07 13:21:18 +00:00
  • 33df467d40 Sync OpenBSD patchset 756: Tiago Cunha 2010-09-07 13:20:28 +00:00
  • 510b43569f Sync OpenBSD patchset 755: Tiago Cunha 2010-09-07 13:19:53 +00:00
  • de68c2a7da Simplify xterm modifier detection by treating as a bitmask + 1. Spotted by and diff from Emanuele Giaquinta. Nicholas Marriott 2010-09-01 21:11:14 +00:00
  • 5309252053 Reset running jobs when the status line is enabled or disabled as well, some people have it bound to a key. Nicholas Marriott 2010-09-01 21:06:51 +00:00
  • a8b22d3673 +. Nicholas Marriott 2010-09-01 20:39:32 +00:00
  • 19923625d4 +. Nicholas Marriott 2010-09-01 20:37:20 +00:00
  • 8e8e0f1d53 Add missing prototype. Nicholas Marriott 2010-08-31 22:46:59 +00:00
  • 3b4d26d16b +. Nicholas Marriott 2010-08-31 22:44:01 +00:00
  • 01052ca38e Sync OpenBSD patchset 754: Tiago Cunha 2010-08-29 14:46:13 +00:00
  • ee44a8dca9 Sync OpenBSD patchset 753: Tiago Cunha 2010-08-29 14:44:55 +00:00
  • 89acd757d0 Sync OpenBSD patchset 752: Tiago Cunha 2010-08-29 14:43:45 +00:00
  • 56040be346 Sync OpenBSD patchset 751: Tiago Cunha 2010-08-29 14:42:11 +00:00
  • e6bb3d6942 Sync OpenBSD patchset 750: Tiago Cunha 2010-08-29 14:39:45 +00:00
  • f69ce39a6c When destroying a pane, reset any mode (which reenables pane bufferevent) before freeing the bufferevent. Nicholas Marriott 2010-08-25 19:19:43 +00:00
  • fc9f08235b Can't call event_del() without event_set() first - so call event_set() when setting up the client. Nicholas Marriott 2010-08-23 17:36:32 +00:00
  • 5f5104e782 MSG_EXIT can now have a return code in the message, so check for that size as well. Stops the client fatal()ing on exit. Nicholas Marriott 2010-08-22 16:09:49 +00:00
  • e3be9b1951 Do not call event_del() for signals after fork(), just use sigaction() directly instead - calling libevent functions after fork() w/o event_reinit() is a bad idea, even if in this case it was harmless. Nicholas Marriott 2010-08-19 18:29:01 +00:00
  • aba555509e +-. Nicholas Marriott 2010-08-19 18:04:56 +00:00
  • c2822ca119 Do not need to dup() the tty fd sent from the client because it is already dup()d again later. Fixes a leak seen by espie@. Nicholas Marriott 2010-08-19 17:20:26 +00:00
  • c50c4ec834 Sync OpenBSD patchset 749: Tiago Cunha 2010-08-11 22:19:03 +00:00
  • 9858071dd0 Sync OpenBSD patchset 748: Tiago Cunha 2010-08-11 22:18:28 +00:00
  • b0169d9b84 Sync OpenBSD patchset 747: Tiago Cunha 2010-08-11 22:17:32 +00:00
  • e34c6e2305 Sync OpenBSD patchset 746: Tiago Cunha 2010-08-11 22:16:43 +00:00
  • 761bd3c9e3 Sync OpenBSD patchset 745: Tiago Cunha 2010-08-11 22:16:04 +00:00
  • 5e9429e2d6 Sync OpenBSD patchset 744: Tiago Cunha 2010-08-11 22:14:23 +00:00
  • 828f12b748 Do not allow duplicate session names to be created, reported by Dominik Honnef, patch from Thomas Adam. Nicholas Marriott 2010-08-11 07:45:06 +00:00
  • ae70071494 Handle failure to change mode, to avoid dying when switching into copy mode when already in a different mode. Reported by "Florian". Nicholas Marriott 2010-08-11 07:41:05 +00:00
  • 3999886901 Usage string fixes from Ben Boeckel. Nicholas Marriott 2010-08-11 07:38:00 +00:00
  • cc474b4ede Treat trying to link or move to the same window as an error to avoid removing it accidentally. Nicholas Marriott 2010-08-11 07:36:23 +00:00
  • 8363e31953 Change the way backoff works. Instead of stopping reading from the pty when the client tty backs up too much, just stop updating the tty and only update the internal screen. Then when the tty recovers, force a redraw. Nicholas Marriott 2010-08-11 07:34:43 +00:00
  • 933dc48de3 Show which pane is active in the list-panes output, suggested by Dominik Honnef. Nicholas Marriott 2010-08-11 07:27:50 +00:00
  • 4387db506f Sync OpenBSD patchset 742: Tiago Cunha 2010-08-09 21:45:37 +00:00
  • d7bae0edce Sync OpenBSD patchset 741: Tiago Cunha 2010-08-09 21:44:25 +00:00
  • 482bd7b65e Basic GNU bash completion from Frank Barknecht. Nicholas Marriott 2010-08-09 18:22:33 +00:00
  • 4274a7ec89 switch back to kqueue for now, since (a) kqueue has been fixed to deal with strange devices and (b) since there appears to be a bull in the poll code in libevent as well... requested by nicm who is away Theo Deraadt 2010-08-04 19:46:13 +00:00
  • f42364b4b5 How to blank on lock, from Thomas Adam, slightly tweaked by me. Nicholas Marriott 2010-07-31 11:46:28 +00:00
  • 5be8175b0b No more up-pane/down-pane. Nicholas Marriott 2010-07-31 11:39:13 +00:00
  • 77f9c49829 dup() the stdin fd so it isn't closed twice (once for stdin, once for tty). Nicholas Marriott 2010-07-28 22:15:15 +00:00
  • 5576fe42b2 Sync with reality, per SF bug #3035214. Tiago Cunha 2010-07-27 18:29:07 +00:00
  • c87187f913 When changing so that the client passes its stdout and stderr as well as stdin up to the server, I forgot one essential point - the tmux server could now be both the producer and consumer. This happens when tmux is run inside tmux, as well as when piping tmux commands together. Nicholas Marriott 2010-07-24 20:11:59 +00:00
  • bf09b00fe9 kqueue(2) is currently broken when used with /dev/null and a few other devices. Nicholas Marriott 2010-07-24 19:25:31 +00:00
  • a97b7ad11c Fix a crash: if remain-on-exit is set and the pane has exited, the buffers may not be valid, so do not try to disable/enable them when switching to copy mode. Nicholas Marriott 2010-07-22 21:10:51 +00:00
  • 1944747759 Don't enable/disable invalid event pointers. Fixes SF #3033119. Micah Cowan 2010-07-22 19:51:48 +00:00
  • 28c4c86589 Sync OpenBSD patchset 738: Tiago Cunha 2010-07-20 17:36:41 +00:00
  • 7ed9b0f8fb Sync OpenBSD patchset 737: Tiago Cunha 2010-07-20 17:36:03 +00:00
  • 2b80ede963 Don't return if in the current window since we may want to report a bell (if bell-action any/current), just clear the flag so the status line doesn't show the bell. Nicholas Marriott 2010-07-19 21:13:03 +00:00
  • 11497af4dd Solaris has MAXHOSTNAMELEN in netdb.h. Nicholas Marriott 2010-07-19 18:31:42 +00:00
  • 2a0f3f0d79 Send the \n to stdout with the message, not stderr... doh. Nicholas Marriott 2010-07-19 18:27:38 +00:00
  • b0878774e0 Don't hard-code the username. Tiago Cunha 2010-07-19 13:57:22 +00:00
  • e71f0842ce Working on 1.4. Tiago Cunha 2010-07-18 14:53:27 +00:00
  • 946fd162ba This commit was manufactured by cvs2svn to create tag 'TMUX_1_3'. 1.3 no_author 2010-07-18 13:41:00 +00:00
  • 9b47a48393 Changes for 1.3. Tiago Cunha 2010-07-18 13:40:59 +00:00
  • 0482983d53 Done. Tiago Cunha 2010-07-18 13:39:02 +00:00
  • 2b512dc49d Bump VERSION, and comment FDEBUG. Tiago Cunha 2010-07-18 13:36:52 +00:00
  • ae45c2ea45 Sync OpenBSD patchset 736: Tiago Cunha 2010-07-17 14:39:01 +00:00
  • 11f81e8134 Sync OpenBSD patchset 735: Tiago Cunha 2010-07-17 14:38:13 +00:00
  • ad6a528f61 Sync OpenBSD patchset 734: Tiago Cunha 2010-07-17 14:36:41 +00:00
  • a471b5de9c some escapes i missed; Jason McIntyre 2010-07-15 21:54:20 +00:00
  • 43355fa75c Make pane/window wrapping more logical (so with 10 windows, +10 from window 5 stays in the same place), and tidy the code. From Tiago Cunha. Nicholas Marriott 2010-07-14 18:37:49 +00:00
  • b9c873cdaa Return the command client return code with MSG_EXIT now that MSG_ERROR and MSG_PRINT are unused. Nicholas Marriott 2010-07-11 17:06:45 +00:00
  • 46f27eab22 Sync OpenBSD patchset 733: Tiago Cunha 2010-07-02 02:56:07 +00:00
  • e4703bacb5 Sync OpenBSD patchset 732: Tiago Cunha 2010-07-02 02:54:52 +00:00
  • e4573de97b Sync OpenBSD patchset 731: Tiago Cunha 2010-07-02 02:52:13 +00:00
  • 63e76b555d Sync OpenBSD patchset 730: Tiago Cunha 2010-07-02 02:49:19 +00:00
  • 13e7f060b1 Update. Tiago Cunha 2010-07-02 02:46:39 +00:00
  • fa34c76275 Sync OpenBSD patchset 729: Tiago Cunha 2010-07-02 02:45:52 +00:00
  • 985cd3a4de Sync OpenBSD patchset 728: Tiago Cunha 2010-07-02 02:43:50 +00:00
  • 03c1c1cd9f Sync OpenBSD patchset 727: Tiago Cunha 2010-07-02 02:43:01 +00:00
  • b4b9b831ee replace some magic mouse constants with defines for clarity. ok nicm Ted Unangst 2010-06-29 05:24:49 +00:00
  • 552c9cd83f Custom layouts. list-windows command displays the layout as a string (such as "bb62,159x48,0,0{79x48,0,0,79x48,80,0}") and it can be applied to another window (with the same number of panes or fewer) using select-layout. Nicholas Marriott 2010-06-29 03:30:13 +00:00
  • 76bbdeb586 Send all three of stdin, stdout, stderr from the client to the server, so that commands can directly make use of them. This means that load-buffer and save-buffer can have "-" as the file to read from stdin or write to stdout. Nicholas Marriott 2010-06-28 22:10:42 +00:00
  • 07a71fd432 Store the current working directory in the session, change the default-path option to default to empty and make that mean that the stored session CWD is used. Nicholas Marriott 2010-06-27 02:56:59 +00:00
  • 26524c99f6 New option, detach-on-destroy, to set what happens to a client when the session it is attached to is destroyed. If on (the default), it is detached; if off, it is switched to the most recently active session. Nicholas Marriott 2010-06-27 00:22:22 +00:00
  • 34464da8d3 Use server_destroy_session() for kill-session. Nicholas Marriott 2010-06-26 23:55:50 +00:00
  • 42e2413978 Setting the cmdlist pointer in the bind-key to NULL to prevent it being freed after the command is executing is bogus because it may still be needed if the same command is going to be executed again (for example if you "bind-key a bind-key b ..."). Making a copy is hard, so instead add a reference count to the cmd_list. Nicholas Marriott 2010-06-26 18:20:53 +00:00
  • 0e70c8801c Update. Tiago Cunha 2010-06-22 23:37:28 +00:00
  • 617386370b Nuke vis.h. Tiago Cunha 2010-06-22 23:36:54 +00:00
  • bf1e237410 Sync OpenBSD patchset 726: Tiago Cunha 2010-06-22 23:35:20 +00:00
  • 8d3b726396 Sync OpenBSD patchset 725: Tiago Cunha 2010-06-22 23:29:05 +00:00
  • 47b335dee7 Sync OpenBSD patchset 724: Tiago Cunha 2010-06-22 23:26:18 +00:00
  • 6c76724201 Sync OpenBSD patchset 723: Tiago Cunha 2010-06-22 23:22:31 +00:00
  • 29434cb043 Sync OpenBSD patchset 722: Tiago Cunha 2010-06-22 23:21:39 +00:00
  • ef7293379f Add a choose-buffer command for easier use of the paste buffer stack. Nicholas Marriott 2010-06-21 21:44:09 +00:00
  • 386849edc1 Extend the -t:+ and -t:- window targets for next and previous window to accept an offset such as -t:+2. From Tiago Cunha. Nicholas Marriott 2010-06-21 01:46:36 +00:00
  • e63f0546a1 Having a list of winlinks->alerts for each session is stupid, just store the alert flags directly in the winlink itself. Nicholas Marriott 2010-06-21 01:27:46 +00:00
  • 447a07e9f8 Rename activity->alert in a couple of functions for consistency. Nicholas Marriott 2010-06-21 00:25:32 +00:00
  • b7454e37cb Done. Nicholas Marriott 2010-06-21 00:19:44 +00:00
  • ad466a69aa Give tmux sockets (but not the containing folder) group permissions. This allows hardlinks to the sockets to be used more easily. Nicholas Marriott 2010-06-21 00:18:57 +00:00
  • e2a5e02022 +. Nicholas Marriott 2010-06-21 00:13:13 +00:00
  • 5afb820d23 Ensure we overwrite UTF-8 wide characters properly, and never overwrite characters we weren't overlapping. Fixes "disappearing wide characters" glitch. From Micah Cowan. Nicholas Marriott 2010-06-21 00:11:12 +00:00