Commit Graph

  • 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
  • 90400ae96a Add some other obvious variables to update-environment (WINDOWID SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION) so they are updated in the session environment on new/attach. Nicholas Marriott 2009-08-23 18:21:02 +00:00
  • a910b38a35 Some code tidying. Nicholas Marriott 2009-08-23 17:37:48 +00:00
  • c7394ac4e0 When using source-file, run the commands in the context of the source-file command rather than with no context. This makes things like attach work from a file. Nicholas Marriott 2009-08-23 17:29:51 +00:00
  • 43cd40e87a The cursession member in struct cmd_ctx is always either curclient->session or NULL when curclient is also NULL, so just eliminate it. Nicholas Marriott 2009-08-23 16:45:00 +00:00
  • 266c13df18 Check the return value of strunvis against -1 not NULL. Nicholas Marriott 2009-08-23 11:50:39 +00:00
  • 1eb303e6d4 Check the return value of strunvis against -1 not NULL. Nicholas Marriott 2009-08-23 11:40:05 +00:00
  • 633e74ef80 Sync OpenBSD patchset 287: Tiago Cunha 2009-08-21 21:15:00 +00:00
  • 1fa8a8f4a6 Sync OpenBSD patchset 285: Tiago Cunha 2009-08-21 21:13:20 +00:00
  • d07d18258b Sync OpenBSD patchset 284: Tiago Cunha 2009-08-21 21:12:07 +00:00
  • a004fc3592 Sync OpenBSD patchset 283: Tiago Cunha 2009-08-21 21:10:37 +00:00
  • 4b883524d8 Sync OpenBSD patchset 282: Tiago Cunha 2009-08-21 21:09:13 +00:00
  • 15556ad0d6 Sync OpenBSD patchset 281: Tiago Cunha 2009-08-21 21:07:20 +00:00
  • 926b52b600 Emulate dch/dch1 if missing by redrawing the entire line. Nicholas Marriott 2009-08-21 12:29:59 +00:00
  • 27c5df22cf Move reading termios settings to before tty_open alters them, and expand the comment. Nicholas Marriott 2009-08-21 11:38:09 +00:00
  • 915a1913e1 Move reading termios settings to before tty_open alters them, and expand the comment. Nicholas Marriott 2009-08-21 11:36:08 +00:00
  • 03f4ab4bd5 Done. Nicholas Marriott 2009-08-21 10:57:21 +00:00
  • 65ac8e9f0c Ugh, committed the wrong version of this change and got both solutions rather than just the second. Remove unused assignment. Nicholas Marriott 2009-08-21 08:12:05 +00:00
  • f817a338d0 When moving up or down in copy mode, save the cursor position and size of the last line with content (width != 0) and use it to determine if the cursor should be at the end of the line. Fixes problem of the cursor always jumping to the end of the line when scrolling past a blank line. Nicholas Marriott 2009-08-21 07:33:58 +00:00
  • 0198bb6bf3 Fix grid_expand_line so it actually works when the required size is bigger than 2 * the current size. Nicholas Marriott 2009-08-21 07:29:37 +00:00
  • 1501b3fbbd A few trivial optimisations: no need to check for zero size if calling buffer_ensure in buffer.c; expand grid lines by a greater increase than one each time; and don't read UTF-8 data unless it actually needs to be checked when overwriting a cell. Nicholas Marriott 2009-08-20 19:14:42 +00:00
  • f1c982608f VTIME and VMIN are only necessary in noncanonical mode, so Solaris reuses the VEOF and VEOL indexes for them. ICANON is set by default, so don't bother to set VTIME and VMIN. Nicholas Marriott 2009-08-20 18:35:53 +00:00
  • c18e027ad5 Need this rubbish on Solaris for CMESG*. Nicholas Marriott 2009-08-20 13:35:59 +00:00
  • dd9dd142c9 Add $Id$, nuke queue.h. Nicholas Marriott 2009-08-20 12:54:08 +00:00
  • 2f517111ef Solaris has no u_int32_t etc. Nicholas Marriott 2009-08-20 12:49:18 +00:00
  • 9311e4255e Didn't mean to commit this. Nicholas Marriott 2009-08-20 12:39:21 +00:00
  • 61c7bfc128 Also undef CTRL. Nicholas Marriott 2009-08-20 12:38:37 +00:00
  • 14eb6df45e Solaris defines some of these in termios.h so #ifndef them. Nicholas Marriott 2009-08-20 12:27:58 +00:00
  • 698e003fcd Solaris has no bzero(). Nicholas Marriott 2009-08-20 12:25:17 +00:00
  • cc2c061289 Sync OpenBSD patchset 280: Tiago Cunha 2009-08-20 11:54:58 +00:00
  • 9d33b3f72a Sync OpenBSD patchset 279: Tiago Cunha 2009-08-20 11:53:27 +00:00
  • 0027aa3d1e Sync OpenBSD patchset 278: Tiago Cunha 2009-08-20 11:52:39 +00:00
  • 1292540bb5 Sync OpenBSD patchset 276: Tiago Cunha 2009-08-20 11:51:20 +00:00
  • 4631c07483 Sync OpenBSD patchset 275: Tiago Cunha 2009-08-20 11:48:01 +00:00
  • d895d4a9f0 Sync OpenBSD patchset 274: Tiago Cunha 2009-08-20 11:45:37 +00:00
  • d3da62d53a Sync OpenBSD patchset 273: Tiago Cunha 2009-08-20 11:44:18 +00:00
  • b644b17599 Sync OpenBSD patchset 272: Tiago Cunha 2009-08-20 11:40:15 +00:00
  • 36475f80e9 Sync OpenBSD patchset 271: Tiago Cunha 2009-08-20 11:37:46 +00:00
  • 52b02850ca Sync OpenBSD patchset 270: Tiago Cunha 2009-08-20 11:35:16 +00:00
  • 7ca3d7ac8e Do not include vis.h directly, since it's OS-dependent, due to OpenBSD patchsets 268, and 269. Tiago Cunha 2009-08-20 11:33:13 +00:00
  • 3756fce553 Sync OpenBSD patchset 269: Tiago Cunha 2009-08-20 11:30:24 +00:00
  • 9386f640a5 Sync OpenBSD patchset 268: Tiago Cunha 2009-08-20 11:28:05 +00:00
  • bcfb4f2a07 Sync OpenBSD patchset 267: Tiago Cunha 2009-08-20 11:24:33 +00:00
  • aa7c0f1ce8 Sync OpenBSD patchset 266: Tiago Cunha 2009-08-20 11:23:36 +00:00
  • 2a5f08c15a Sync OpenBSD patchset 265: Tiago Cunha 2009-08-20 11:22:48 +00:00
  • 70fc085862 Sync OpenBSD patchset 264: Tiago Cunha 2009-08-20 11:20:24 +00:00
  • 234ad54b2c Nuke unused variable. Nicholas Marriott 2009-08-20 10:48:25 +00:00
  • 09cc530299 Solaris and AIX have no ttydefaults.h. Nicholas Marriott 2009-08-20 05:34:58 +00:00
  • bf121f7c60 Handle the device attributes (DA) escape sequence. Nicholas Marriott 2009-08-19 17:00:31 +00:00
  • c741f2f4a6 tweak previous; Jason McIntyre 2009-08-19 16:10:26 +00:00
  • 966818c23d Call tcsetattr(). Not tested. Nicholas Marriott 2009-08-19 16:06:45 +00:00
  • 7c9f827bfe In yet another triumph of stupidity over common sense, the glibc sys/ttydefaults.h is just a copy of the file from *BSD, taking no account of the fact that their OWN termios.h uses entirely different indexes into the array. Nicholas Marriott 2009-08-19 15:57:54 +00:00
  • 55336657d4 Don't read beyond the edge of the screen when searching (dies with debug enabled). Nicholas Marriott 2009-08-19 14:46:56 +00:00