Commit Graph

  • 73f58b90a0 Update. Tiago Cunha 2009-09-19 18:53:56 +00:00
  • 23d7ed3187 Sync OpenBSD patchset 331: Tiago Cunha 2009-09-19 18:53:01 +00:00
  • 63d499f480 New option, set-titles-string, to allow the window title to be specified (as for status-left/right) if set-titles is on. Also only update the title when the status line is being redrawn. Nicholas Marriott 2009-09-18 15:19:27 +00:00
  • a2e03ce3cb Add some bits. Nicholas Marriott 2009-09-18 14:19:18 +00:00
  • 15b643fc11 Sync from OpenBSD: Nicholas Marriott 2009-09-16 12:36:28 +00:00
  • 5c60162e3c Rather than constructing an entire termios struct from ttydefaults.h, just let forkpty do it and then alter the bits that should be changed after fork. A little neater and more portable. Nicholas Marriott 2009-09-16 12:35:04 +00:00
  • 150fba5ecd Sync OpenBSD patchset 329: Tiago Cunha 2009-09-15 23:59:40 +00:00
  • c507bf25de Sync OpenBSD patchset 328: Tiago Cunha 2009-09-15 23:54:57 +00:00
  • dbaa28492e Sync OpenBSD patchset 327: Tiago Cunha 2009-09-15 23:52:30 +00:00
  • 960cd3da69 Sync OpenBSD patchset 326: Tiago Cunha 2009-09-15 23:50:32 +00:00
  • 82d6bab57c +. Nicholas Marriott 2009-09-15 19:02:35 +00:00
  • a6dd9e8e7e Enclose repeated buffer draining code in a new msgbuf_drain() function, which is additionally exported for use by others. Jacek Masiulaniec 2009-09-15 18:12:51 +00:00
  • 4278199101 Stick line length to what is actually used (removing an optimization that allowed it to be bigger), and use clear line/EOL sequences rather than spaces in copy/scroll mode. Nicholas Marriott 2009-09-15 15:14:09 +00:00
  • f39865e8e4 The default terminal size should be 80x24, not 80x25. Nicholas Marriott 2009-09-15 07:45:16 +00:00
  • 24baf14e53 Update. Nicholas Marriott 2009-09-15 07:43:25 +00:00
  • 8548624676 Nuke unused server_client_index function, pointed out by martynas@. Nicholas Marriott 2009-09-14 11:25:35 +00:00
  • 5fcf7149d4 Always set VERASE to \177. Tiago Cunha 2009-09-13 20:56:52 +00:00
  • 4d4ec52df8 Zap unused variables. Tiago Cunha 2009-09-13 20:43:21 +00:00
  • 69e7f4af19 Sync OpenBSD patchset 324: Tiago Cunha 2009-09-13 20:37:37 +00:00
  • 61990deb36 Sync OpenBSD patchset 323: Tiago Cunha 2009-09-13 20:30:12 +00:00
  • 8a873b97a3 Doh, trim variables unused now. Nicholas Marriott 2009-09-12 13:09:43 +00:00
  • 8cb8a0da8d Tidy some common code for destroying sessions into a new function. Nicholas Marriott 2009-09-12 13:01:19 +00:00
  • d771614d33 tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for new windows. Nicholas Marriott 2009-09-12 09:54:34 +00:00
  • 0ec1ce005c Sync OpenBSD patchset 322: Tiago Cunha 2009-09-11 14:13:52 +00:00
  • 372a8cb1d9 Permit options such as status-bg to be configured using the entire 256 colour palette by setting "colour0" to "colour255". Nicholas Marriott 2009-09-10 17:16:24 +00:00
  • f0cb57d8ac Sync OpenBSD patchset 321: Tiago Cunha 2009-09-08 00:01:11 +00:00
  • 930f67f474 Sync OpenBSD patchset 320: Tiago Cunha 2009-09-07 23:59:19 +00:00
  • 1de812d5a8 Sync OpenBSD patchset 319: Tiago Cunha 2009-09-07 23:50:07 +00:00
  • c272de7cba Sync OpenBSD patchset 318: Tiago Cunha 2009-09-07 23:48:54 +00:00
  • 5edc465802 Sync OpenBSD patchset 317: Tiago Cunha 2009-09-07 23:37:48 +00:00
  • 3f3b01c7ce While the display-panes indicator is on screen, make the number keys select the pane with that index. Nicholas Marriott 2009-09-07 21:12:12 +00:00
  • 51c95747d8 Reference count clients and sessions rather than relying on a saved index for cmd-choose-*. Nicholas Marriott 2009-09-07 21:01:50 +00:00
  • e323f6620d Tiny cleanup. Matthias Kilian 2009-09-07 19:08:45 +00:00
  • ccba613e5b Give each paste buffer a size member instead of requiring them to be zero-terminated. Nicholas Marriott 2009-09-07 18:50:45 +00:00
  • ec195a4e15 +. Nicholas Marriott 2009-09-07 15:41:52 +00:00
  • e97006b102 Permit embedded colour and attributes in status-left and status-right using new #[] special characters, for example #[fg=red,bg=blue,blink]. Nicholas Marriott 2009-09-07 10:49:32 +00:00
  • bb2d57dcbf Sync OpenBSD patchset 316: Tiago Cunha 2009-09-05 19:03:41 +00:00
  • ffab22bb35 Only redraw all clients once when the backoff timer expires rather than every second all the time. Nicholas Marriott 2009-09-05 17:42:16 +00:00
  • 02c4760ace Sync OpenBSD patchset 315: Tiago Cunha 2009-09-04 20:37:40 +00:00
  • 51a1f25247 Sync OpenBSD patchset 314: Tiago Cunha 2009-09-04 20:27:06 +00:00
  • 83af55bed4 Tidy main and make it a bit easier to read. Nicholas Marriott 2009-09-04 15:15:24 +00:00
  • 895efe7b05 Solaris needs a knob twiddled to get POSIX getpwduid_r. Nicholas Marriott 2009-09-04 14:48:25 +00:00
  • be0d6faa15 Tell the user when sleeping due to password backoff. Nicholas Marriott 2009-09-04 13:29:10 +00:00
  • 83f5581da4 Sync OpenBSD patchset 313: Tiago Cunha 2009-09-03 21:06:30 +00:00
  • 884ebb6dab Sync OpenBSD patchset 309: Tiago Cunha 2009-09-03 21:02:55 +00:00
  • c274551db6 - Make it compile on operating systems other than BSD due to OpenBSD patchset 308. - While there, remove some duplicate code from the compat header file. Tiago Cunha 2009-09-03 20:54:39 +00:00
  • f796336a12 Sync OpenBSD patchset 308: Tiago Cunha 2009-09-03 20:44:38 +00:00
  • 751a2fa915 Fix a race condition when asking a client to take over the terminal (switching to a different poll loop): Nicholas Marriott 2009-09-02 23:49:25 +00:00
  • 3b944fe7e8 Sync OpenBSD patchset 307: Tiago Cunha 2009-09-02 22:45:17 +00:00
  • afd0bd7cb0 When shutting down the server, expect clients to be polite and exit when asked with the right message. Nicholas Marriott 2009-09-02 21:36:00 +00:00
  • 81a457e6fb When shutting down the server, expect clients to be polite and exit when asked with the right message. Nicholas Marriott 2009-09-02 21:25:57 +00:00
  • a5c17d77bf Nuke debugging. Nicholas Marriott 2009-09-02 20:17:23 +00:00
  • d33caca6c7 That was the wrong fix. MSG_ERROR should set the error and the client should use the error and exit on MSG_EXIT (it was being handled in the default case). Undo the last change, move the errstr check into the MSG_EXIT case, and add a comment. Nicholas Marriott 2009-09-02 20:16:29 +00:00
  • 459abafcea That was the wrong fix. MSG_ERROR should set the error and the client should use the error and exit on MSG_EXIT (it was being handled in the default case). Undo the last change, move the errstr check into the MSG_EXIT case, and add a comment. Nicholas Marriott 2009-09-02 20:15:49 +00:00
  • c23bde74ec Set exittype for error exit as well as the error string. Nicholas Marriott 2009-09-02 20:01:22 +00:00
  • 7a4bac82d7 Set exittype for error exit as well as the error string. Nicholas Marriott 2009-09-02 20:00:10 +00:00
  • ecffcf1667 Update. Nicholas Marriott 2009-09-02 19:33:47 +00:00
  • 74c35c513e Accept -l to make it easier for people who use tmux as a login shell to use $SHELL. Originally from martynas@, tweaked by me. Nicholas Marriott 2009-09-02 17:34:57 +00:00
  • c5ac2579ba When incorrect passwords are entered, behave similarly to login(1) and backoff for a bit. Based on a diff from martynas@. Nicholas Marriott 2009-09-02 16:38:35 +00:00
  • 26682256b3 OS X CMSG_FIRSTHDR is broken. Nicholas Marriott 2009-09-02 12:30:56 +00:00
  • 61b7dc522d Add a transpose-chars command in edit mode (C-t in emacs mode only). From Kalle Olavi Niemitalo. Nicholas Marriott 2009-09-02 06:33:20 +00:00
  • 5838ee1263 Sync OpenBSD patchset 306: Tiago Cunha 2009-09-02 01:08:32 +00:00
  • b7cb7d10f9 Update. Tiago Cunha 2009-09-02 01:06:30 +00:00
  • 521659db4b Adjust OpenBSD patchset 305 to the portable version. Tiago Cunha 2009-09-02 01:05:55 +00:00
  • a3a150faf2 Sync OpenBSD patchset 305: Tiago Cunha 2009-09-02 01:02:44 +00:00
  • ce5c441f0f Sync OpenBSD patchset 304: Tiago Cunha 2009-09-02 00:55:49 +00:00
  • 99de03ea32 Sync OpenBSD patchset 303: Tiago Cunha 2009-09-02 00:54:00 +00:00
  • c089e19020 If forking a login shell or if SHELL is otherwise not useful, set it to the default shell. Based on a diff from martynas@. Nicholas Marriott 2009-09-01 14:40:33 +00:00
  • 7d5e494716 When using tmux as a login shell, there is currently no way to specify a shell to be used as a login shell inside tmux, so add a default-shell session option. This sets the shell invoked as a login shell when the default-command option is empty. Nicholas Marriott 2009-09-01 13:09:49 +00:00
  • f8aa5821be Use "Password:" with no space for password prompts and don't display a *s for the password, like pretty much everything else. From martynas@ with minor tweaks by me. Nicholas Marriott 2009-09-01 09:11:05 +00:00
  • 34bb735a65 Sort cases same as getopt argument, from martynas. Nicholas Marriott 2009-09-01 09:00:54 +00:00
  • d463eddb8b Update. Tiago Cunha 2009-08-31 22:31:44 +00:00
  • ed3535db8a Sync OpenBSD patchset 302: Tiago Cunha 2009-08-31 22:30:15 +00:00
  • 2fe369831c Sync OpenBSD patchset 301: Tiago Cunha 2009-08-31 22:25:33 +00:00
  • 86fb9737dc Sync OpenBSD patchset 300: Tiago Cunha 2009-08-31 22:24:18 +00:00
  • 04319964b9 Add a new display-panes command, with two options (display-panes-colour and display-panes-time), which displays a visual indication of the number of each pane. Nicholas Marriott 2009-08-31 20:46:19 +00:00
  • 8102ec3be5 squash typo ok nicm@ Stefan Sperling 2009-08-31 11:52:32 +00:00
  • 71ede76c68 Don't call tty_free unless the client is a terminal, otherwise tty_init hasn't been called and it may end up doing close(0). From Kalle Olavi Niemitalo. Nicholas Marriott 2009-08-31 11:37:27 +00:00
  • d15e88cb68 Sync OpenBSD patchset 299: Tiago Cunha 2009-08-26 22:13:52 +00:00
  • 83e44c7d8e Sync OpenBSD patchset 298: Tiago Cunha 2009-08-26 22:12:21 +00:00
  • fde3bda453 Sync OpenBSD patchset 297: Tiago Cunha 2009-08-26 22:11:00 +00:00
  • 2e5b3ab8bc Initialise the arg2 pointer properly (also free it when freeing the others). Fixes crashes with J in malloc_options reported by oga. Nicholas Marriott 2009-08-26 18:09:52 +00:00
  • ddf97f8289 Make this work when the clock is in small characters as well. Doh. Nicholas Marriott 2009-08-26 16:23:30 +00:00
  • 1ba5ce9cb3 Fix clock mode in black and white terminals now that tty.c tries to fix reverse. Nicholas Marriott 2009-08-26 16:16:06 +00:00
  • 1a5aba47c7 ttydefchars is a fucking horlicks. Happily we only need it in one file, move it in there to avoid multiple inclusion issues. Nicholas Marriott 2009-08-26 09:10:47 +00:00
  • 6b4ed722b1 FreeBSD and NetBSD HAVE got ttydefaults.h. Fixes SF bug 2844744. Nicholas Marriott 2009-08-26 08:58:39 +00:00
  • 1ce325b31e Sync OpenBSD patchset 296: Tiago Cunha 2009-08-25 16:52:42 +00:00
  • f5d38f2696 Update. Tiago Cunha 2009-08-25 16:50:34 +00:00
  • f949107a32 Print -l and -p when showing command, pointed out by Tiago Cunha. Nicholas Marriott 2009-08-25 14:53:22 +00:00
  • bd5b011ecd Include <ctype.h>. Tiago Cunha 2009-08-25 13:55:29 +00:00
  • 8fd77cbb5b Sync OpenBSD patchset 294: Tiago Cunha 2009-08-25 13:53:39 +00:00
  • be16f79438 These should #include <ctype.h>. Nicholas Marriott 2009-08-25 13:32:14 +00:00
  • c1653ff654 Sync OpenBSD patchset 293: Tiago Cunha 2009-08-25 13:11:24 +00:00
  • 22b2b7c6c5 Done. Nicholas Marriott 2009-08-25 12:24:45 +00:00
  • 7b847ced4a Add a choose-client command and extend choose-{session,window} to accept a template. After a choice is made, %% (or %1) in the template is replaced by the name of the session, window or client suitable for -t and the result executed as a command. So, for example, "choose-window "killw -t '%%'"" will kill the selected window. Nicholas Marriott 2009-08-25 12:18:51 +00:00
  • d5bc78d98b Sync OpenBSD patchset 292: Tiago Cunha 2009-08-24 16:35:24 +00:00
  • a3799e0350 Sync OpenBSD patchset 291: Tiago Cunha 2009-08-24 16:31:26 +00:00
  • 35b926c445 Sync OpenBSD patchset 290: Tiago Cunha 2009-08-24 16:27:03 +00:00
  • 2e2e762743 Sync OpenBSD patchset 289: Tiago Cunha 2009-08-24 16:24:18 +00:00
  • 4f1d81c4ce gcc2 doesn't understand attributes on function pointers. Nicholas Marriott 2009-08-24 08:03:11 +00:00