Commit Graph

  • 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
  • 2a300c6661 Use cfsetispeed/cfsetospeed to set termios speed members. Nicholas Marriott 2009-08-19 14:32:49 +00:00
  • c41aa49059 Use cfsetispeed/cfsetospeed to set termios speed members. Nicholas Marriott 2009-08-19 14:32:15 +00:00
  • 3f4418d84d Extend command-prompt with a -p option which is a comma-separated list of one or more prompts to present in order. Nicholas Marriott 2009-08-19 10:39:50 +00:00
  • 53570b1505 Make this match OpenBSD. Nicholas Marriott 2009-08-19 09:28:10 +00:00
  • 11f0f812c5 Didn't mean to commit this stuff. Nicholas Marriott 2009-08-19 09:04:48 +00:00
  • 620402a833 This is a better fix for OS X stupidity. Nicholas Marriott 2009-08-19 09:00:06 +00:00
  • 3f7e2589cd OS X stupid poll fix. Nicholas Marriott 2009-08-19 08:36:45 +00:00
  • 036de0c5e4 Instead of just checking for an empty buffer, which may not be the case if there is unconsumed data, save the previous size and use it instead. This means that activity monitoring should work in this (unlikely) event. Nicholas Marriott 2009-08-18 21:41:13 +00:00
  • c488e5e40d Whoops, getting the comparison the right way round is usually recommended. Nicholas Marriott 2009-08-18 21:37:04 +00:00
  • 8b7be5861e Move another expensive options test to after a cheaper timer check/update. Nicholas Marriott 2009-08-18 21:18:20 +00:00
  • fa617467b1 options_get_number() is relatively expensive and a check for dead panes happens a lot more often than actually finding one, so instead of getting the option for every check, get it for every dead window found. Nicholas Marriott 2009-08-18 21:14:24 +00:00
  • ed26a1d3bb Update. Nicholas Marriott 2009-08-18 16:21:25 +00:00
  • 145ba777e8 Now that pane targets (-t) are supported, switch some commands to use them where it makes sense: clock-mode, copy-mode, scroll-mode, send-keys, send-prefix. Nicholas Marriott 2009-08-18 16:21:04 +00:00
  • dc6271cd79 Tag a few missed printf-like functions and fix a missing "%s". Nicholas Marriott 2009-08-18 14:48:42 +00:00
  • 003a2e6479 Pass show-buffer output through vis(3) as well, and wrap it to the edge of the terminal when used from the command line. Nicholas Marriott 2009-08-18 13:08:43 +00:00
  • 840fff5e5e Change list-buffers to run the preview of the buffer through vis(1). Nicholas Marriott 2009-08-18 12:26:37 +00:00
  • 1c58b94141 Use the full screen width when printing output rather than one less. Nicholas Marriott 2009-08-18 11:53:03 +00:00
  • 406fc209ac Nuke unnecessary assignment. Nicholas Marriott 2009-08-18 09:51:51 +00:00
  • feaf91ab93 Add a "delete line" key when editing in the status line or the search up/down prompt. C-u with emacs keys, d with vi. Nicholas Marriott 2009-08-18 07:23:43 +00:00
  • c828c2f366 Add (naive) searching and goto line in copy mode. Searching is C-r and C-s with emacs keys, / and ? with vi; n repeats the search again with either key set. All searching wraps the top/bottom. Goto line is g for both emacs and vi. Nicholas Marriott 2009-08-18 07:08:26 +00:00
  • ae1debbc92 Example from Han Boetes. Nicholas Marriott 2009-08-16 21:55:30 +00:00
  • 622e018570 vis(3) compat files were removed prematurely from {DragonFly,Free,Net}BSD. Add them back, per SourceForge bug #2838408. Tiago Cunha 2009-08-16 19:48:17 +00:00
  • a2a8518f74 Sync OpenBSD patchset 263: Tiago Cunha 2009-08-16 19:33:49 +00:00
  • 7182f6d799 Sync OpenBSD patchset 262: Tiago Cunha 2009-08-16 19:31:37 +00:00
  • 646d6a929c Sync OpenBSD patchset 261: Tiago Cunha 2009-08-16 19:29:24 +00:00
  • 6f9a2ee50a Sync OpenBSD patchset 260: Tiago Cunha 2009-08-16 19:26:49 +00:00
  • 98e9e09588 Sync OpenBSD patchset 259: Tiago Cunha 2009-08-16 19:23:07 +00:00
  • 9541471f87 Sync OpenBSD patchset 258: Tiago Cunha 2009-08-16 19:20:37 +00:00
  • c1fee8793d Update. Tiago Cunha 2009-08-16 19:18:10 +00:00
  • e61ee94e26 Sync OpenBSD patchset 257: Tiago Cunha 2009-08-16 19:16:27 +00:00
  • 9116905b24 Sync OpenBSD patchset 256: Tiago Cunha 2009-08-16 19:12:07 +00:00
  • 64950f4524 Sync OpenBSD patchset 255: Tiago Cunha 2009-08-16 19:07:40 +00:00
  • 8973af82c5 Include unistd.h due to OpenBSD patchset 254. At least on Linux, that's where _POSIX_VDISABLE is defined. Tiago Cunha 2009-08-16 19:04:05 +00:00
  • f415d43c3b Sync OpenBSD patchset 254: Tiago Cunha 2009-08-16 18:59:12 +00:00
  • 8f9858ba2f Solaris has no strsep(3). Nicholas Marriott 2009-08-16 16:15:53 +00:00
  • ba42910595 Sync OpenBSD patchset 253: Tiago Cunha 2009-08-14 21:33:42 +00:00
  • 78c789e1cb Sync OpenBSD patchset 252: Tiago Cunha 2009-08-14 21:32:38 +00:00
  • b5059bc8a4 Sync OpenBSD patchset 251: Tiago Cunha 2009-08-14 21:31:20 +00:00
  • 05fe69eb92 Sync OpenBSD patchset 250: Tiago Cunha 2009-08-14 21:30:24 +00:00
  • 06b3f49c49 Sync OpenBSD patchset 249: Tiago Cunha 2009-08-14 21:28:00 +00:00
  • 1063e5d0e4 Sync OpenBSD patchset 248: Tiago Cunha 2009-08-14 21:26:07 +00:00
  • 7f77c395e3 Sync OpenBSD patchset 247: Tiago Cunha 2009-08-14 21:24:46 +00:00
  • e2a18894b3 Sync OpenBSD patchset 246: Tiago Cunha 2009-08-14 21:23:20 +00:00
  • 0714e41148 Sync OpenBSD patchset 245: Tiago Cunha 2009-08-14 21:20:01 +00:00
  • 5cc971facd Sync OpenBSD patchset 244: Tiago Cunha 2009-08-14 21:17:54 +00:00
  • b402cef338 Adjust imsg changes to the portable version due to OpenBSD patchset 243. Tiago Cunha 2009-08-14 21:13:48 +00:00
  • a9b6bfdddd Sync OpenBSD patchset 243: Tiago Cunha 2009-08-14 21:04:04 +00:00
  • e7cd547457 Reset attributes as well as scroll region before poll(2) and add a big comment explaining why. Nicholas Marriott 2009-08-14 11:23:34 +00:00