Commit Graph

  • 8085adb8a2 Sync OpenBSD patchset 411: Tiago Cunha 2009-10-15 01:56:45 +00:00
  • 3d88da7b2a Sync OpenBSD patchset 409: Tiago Cunha 2009-10-15 01:55:12 +00:00
  • ee46dba585 Sync OpenBSD patchset 408: Tiago Cunha 2009-10-15 01:53:48 +00:00
  • a505ca69d9 Sync OpenBSD patchset 407: Tiago Cunha 2009-10-15 01:52:47 +00:00
  • 428f76db80 Fix CVS keyword. Tiago Cunha 2009-10-15 01:51:09 +00:00
  • b6ebf7cb60 Update. Tiago Cunha 2009-10-15 01:49:39 +00:00
  • 6257be6371 Sync OpenBSD patchset 406: Tiago Cunha 2009-10-15 01:48:24 +00:00
  • 9800dc4697 Sync OpenBSD patchset 405: Tiago Cunha 2009-10-15 01:45:13 +00:00
  • b8e4bd2029 Sync OpenBSD patchset 404: Tiago Cunha 2009-10-15 01:44:15 +00:00
  • 941032b707 Sync OpenBSD patchset 403: Tiago Cunha 2009-10-15 01:43:16 +00:00
  • fe99f6fa11 Sync OpenBSD patchset 402: Tiago Cunha 2009-10-15 01:42:07 +00:00
  • 6103628129 Sync OpenBSD patchset 401: Tiago Cunha 2009-10-15 01:41:14 +00:00
  • cbd3b1bc9b Sync OpenBSD patchset 400: Tiago Cunha 2009-10-15 01:39:30 +00:00
  • 04db3c6211 Sync OpenBSD patchset 399: Tiago Cunha 2009-10-15 01:38:09 +00:00
  • 858b8b190b Sync OpenBSD patchset 398: Tiago Cunha 2009-10-15 01:36:53 +00:00
  • 7af01a4afb Sync OpenBSD patchset 397: Tiago Cunha 2009-10-15 01:35:35 +00:00
  • 9e4a3d50f0 Sync OpenBSD patchset 396: Tiago Cunha 2009-10-15 01:34:28 +00:00
  • 44fd6f4381 Sync OpenBSD patchset 395: Tiago Cunha 2009-10-15 01:33:21 +00:00
  • 8ab3a3d9aa Sync OpenBSD patchset 394: Tiago Cunha 2009-10-15 01:31:38 +00:00
  • 8bdcc10c8f Sync OpenBSD patchset 393: Tiago Cunha 2009-10-15 01:30:00 +00:00
  • 6369fca253 Sync OpenBSD patchset 392: Tiago Cunha 2009-10-15 01:28:14 +00:00
  • 9b771a96f0 Sync OpenBSD patchset 391: Tiago Cunha 2009-10-15 01:26:50 +00:00
  • 1a3c334c75 cmd_find_client shouldn't die when there is an empty slot in the clients array. DOH. Nicholas Marriott 2009-10-14 20:52:28 +00:00
  • f8f2421ac3 Don't let cmd_lookup_client find clients w/o a session. Nicholas Marriott 2009-10-14 13:22:24 +00:00
  • 9e6d1b24c8 Support for automatic-rename for Solaris thanks to Todd Carson. Nicholas Marriott 2009-10-14 10:14:21 +00:00
  • adad557499 Don't allow cmd_lookup_client to test clients without a session. Nicholas Marriott 2009-10-14 09:29:10 +00:00
  • ad566a86de Move lines into the history when scrolling even if the scroll region is not the entire screen. Nicholas Marriott 2009-10-13 15:38:37 +00:00
  • 71dc6e04e8 Handle DECCOLM by just emulating its side-effect of clearing the screen. Nicholas Marriott 2009-10-13 15:23:13 +00:00
  • 587e7127eb +. Nicholas Marriott 2009-10-13 14:35:06 +00:00
  • 6b522bd770 +. Nicholas Marriott 2009-10-13 14:27:57 +00:00
  • edc901d107 Lots of stuff is done done done. Nicholas Marriott 2009-10-13 13:48:47 +00:00
  • 38df960e68 Add mode keys to move the cursor to the top, middle and bottom of the screen. H/M/L in vi mode and M-R/M-r in emacs (bottom of screen not bound in emacs). Nicholas Marriott 2009-10-13 13:45:56 +00:00
  • 0907ca1931 Do this in a better way - print messages when exiting with nonzero. Nicholas Marriott 2009-10-13 13:15:26 +00:00
  • 760e39e405 Don't print exit messages when used as a login shell, requested by martynas@ a while back. Nicholas Marriott 2009-10-13 13:11:06 +00:00
  • 5d78371628 Don't try to use \n across scroll region when doing \r\n either. Nicholas Marriott 2009-10-13 08:37:15 +00:00
  • 9294cb099f When a session is unattached, reset its activity timer to prevent it locking instantly when reattached. Nicholas Marriott 2009-10-13 06:14:08 +00:00
  • 4dcb5040a0 Instead of using something sort of similar for both newline checks, use something the same. Doesn't fix the bug I'm looking for though :-/. Nicholas Marriott 2009-10-13 00:44:16 +00:00
  • e88a2ba7d4 +. Nicholas Marriott 2009-10-12 23:13:06 +00:00
  • d7626cd9d7 When drawing lines that have wrapped naturally, don't force a newline but permit them to wrap naturally again. This allows terminals that use this to guess where lines start and end for eg mouse selecting (like xterm) to work correctly. Nicholas Marriott 2009-10-12 17:19:47 +00:00
  • 8608c6970d When backspace is received at the beginning of a line and the previous line was wrapped, move the cursor back up to the end of the previous line. Nicholas Marriott 2009-10-12 16:59:55 +00:00
  • 693b3d03e6 Don't run through the column unchanged case if the row was unchanged but there were no suitable optimisations, instead make it an else to fall through to absolute addressing. Nicholas Marriott 2009-10-12 16:41:02 +00:00
  • eb9826f65d If the vertical cursor movement crosses the scroll region, CUU and CUD shouldn't be used even if VPA isn't present - in that case CUP should be used. Nicholas Marriott 2009-10-12 16:37:43 +00:00
  • 56157444de Wrap a couple of long lines. Nicholas Marriott 2009-10-12 16:33:39 +00:00
  • 0aab5811ca Use absolute movement if right at the end of the line as it isn't a reliable place to move from relatively. Nicholas Marriott 2009-10-12 14:54:19 +00:00
  • 687c4a9fab Use relative cursor movement instead of absolute when possible and when supported by the terminal to reduce the size of the output data (generally about 10-20%). Nicholas Marriott 2009-10-12 13:01:18 +00:00
  • 33ae063cae Permit attributes to be turned off in #[] by prefixing with "no", for example "noblink". Nicholas Marriott 2009-10-12 11:08:02 +00:00
  • 762459954f Similarly add a tty_cursor_pane function to tidy up most of the calls. Nicholas Marriott 2009-10-12 09:29:58 +00:00
  • 972a6f5656 _absolute is redundant, just use tty_region. Nicholas Marriott 2009-10-12 09:16:59 +00:00
  • f05b32f7ad Cleanup: use two functions for region setting, one for absolute and one inside pane. Nicholas Marriott 2009-10-12 09:09:35 +00:00
  • 629afba526 Reduce diff with OpenBSD. Tiago Cunha 2009-10-12 00:49:06 +00:00
  • f92cc84631 Sync OpenBSD patchset 390: Tiago Cunha 2009-10-12 00:41:00 +00:00
  • 6ea6d1b29f Sync OpenBSD patchset 389: Tiago Cunha 2009-10-12 00:38:31 +00:00
  • 39afe3fc2a Sync OpenBSD patchset 388: Tiago Cunha 2009-10-12 00:37:41 +00:00
  • 3584fa15ec No paths.h in here, as well. Tiago Cunha 2009-10-12 00:36:31 +00:00
  • 6091b051fb Sync OpenBSD patchset 387: Tiago Cunha 2009-10-12 00:35:08 +00:00
  • a053aeddf8 Sync OpenBSD patchset 386: Tiago Cunha 2009-10-12 00:29:03 +00:00
  • 50ece89ab9 Sync OpenBSD patchset 385: Tiago Cunha 2009-10-12 00:26:06 +00:00
  • 197f8b88bf Sync OpenBSD patchset 384: Tiago Cunha 2009-10-12 00:25:25 +00:00
  • c8d0608369 Sync OpenBSD patchset 383: Tiago Cunha 2009-10-12 00:22:17 +00:00
  • 1b03bc2404 Sync OpenBSD patchset 382: Tiago Cunha 2009-10-12 00:21:08 +00:00
  • b26ea8462e Sync OpenBSD patchset 381: Tiago Cunha 2009-10-12 00:18:19 +00:00
  • 323469723b Sync OpenBSD patchset 380: Tiago Cunha 2009-10-12 00:14:44 +00:00
  • d7fa9bc056 Sync OpenBSD patchset 379: Tiago Cunha 2009-10-12 00:12:33 +00:00
  • 256a55b33b Sync OpenBSD patchset 378: Tiago Cunha 2009-10-12 00:09:48 +00:00
  • 53f1e6eed2 Update. Tiago Cunha 2009-10-12 00:08:48 +00:00
  • 0b8a7dc4a2 Sync OpenBSD patchset 377: Tiago Cunha 2009-10-12 00:08:12 +00:00
  • cf9804f2a0 Sync OpenBSD patchset 376: Tiago Cunha 2009-10-12 00:04:56 +00:00
  • bc90c7c199 Sync OpenBSD patchset 375: Tiago Cunha 2009-10-12 00:03:04 +00:00
  • 3e93bdf31b Do not include paths.h, since it's OS-dependent, due to OpenBSD patchset 374. Tiago Cunha 2009-10-11 23:59:34 +00:00
  • bc236109fd Sync OpenBSD patchset 374: Tiago Cunha 2009-10-11 23:55:26 +00:00
  • 07ad6da7e8 Update. Tiago Cunha 2009-10-11 23:47:02 +00:00
  • ea1721bcb0 Sync OpenBSD patchset 373: Tiago Cunha 2009-10-11 23:46:02 +00:00
  • 2486a36af3 Sync OpenBSD patchset 372: Tiago Cunha 2009-10-11 23:39:37 +00:00
  • 6a1ebb11df Sync OpenBSD patchset 371: Tiago Cunha 2009-10-11 23:38:16 +00:00
  • 1fd3a405e6 Update. Tiago Cunha 2009-10-11 23:31:02 +00:00
  • 91e4dc83fc Sync OpenBSD patchset 370: Tiago Cunha 2009-10-11 23:30:28 +00:00
  • a4ea6a9d19 Sync OpenBSD patchset 369: Tiago Cunha 2009-10-11 23:25:44 +00:00
  • 0a2a354499 Like linefeed, don't set the scroll region for reverse index unless it will be needed. Nicholas Marriott 2009-10-11 22:35:10 +00:00
  • 0e5f20a97d +. Nicholas Marriott 2009-10-11 22:06:25 +00:00
  • b4ef3e5071 punctuation fix; Jason McIntyre 2009-10-11 14:12:10 +00:00
  • bc67e01e52 Done or not doing. Nicholas Marriott 2009-10-11 12:46:40 +00:00
  • fbb030d7f7 Set the current window pointer to NULL when killing a winlink that is to be replaced with link-window -k. This prevents it being pushed onto the last window stack and causing a use-after-free. Nicholas Marriott 2009-10-11 10:39:27 +00:00
  • 64b5f39656 Add a pipe-pane command to allow a pane to be piped to a shell command, for example: Nicholas Marriott 2009-10-11 10:04:27 +00:00
  • 325e20d76d Convert if-shell over to the background job framework as well. Nicholas Marriott 2009-10-11 09:10:57 +00:00
  • 88f3ffe86e Remove a debugging leftover and add copyright. Nicholas Marriott 2009-10-11 09:04:33 +00:00
  • cebc988dd4 Switch run-shell over to queue the command in the background like #(). Nicholas Marriott 2009-10-11 08:58:05 +00:00
  • abedfa77da There isn't much point in having a free function if it isn't used. Nicholas Marriott 2009-10-11 07:30:07 +00:00
  • ff4b4e667a Collect status from dead jobs and don't invoke the callback until both all input (the socket is closed) and status is available. Nicholas Marriott 2009-10-11 07:20:16 +00:00
  • 4bc0f6e7e9 Clean up by introducing a wrapper struct for mouse clicks rather than passing three u_chars around. Nicholas Marriott 2009-10-11 07:01:10 +00:00
  • f68ade7b1d Braek some bits out of server_fill_client() that aren't really related to polling into their own function. Nicholas Marriott 2009-10-11 00:53:14 +00:00
  • 095ecf2d90 Put all jobs on a global all_jobs list and use that in server.c instead of running through all the clients. Nicholas Marriott 2009-10-10 18:42:14 +00:00
  • b7c364a853 -scroll mode which is dead. Nicholas Marriott 2009-10-10 17:39:55 +00:00
  • 5aa49e695e Split list-panes off from list-windows. Nicholas Marriott 2009-10-10 17:19:38 +00:00
  • eba57d84a6 pcvt25 has AX but in fact the console doesn't support it. Nicholas Marriott 2009-10-10 17:08:57 +00:00
  • 2988c594cc Accept key and mouse input for keys in zombified windows if they are in a mode.. Nicholas Marriott 2009-10-10 15:29:34 +00:00
  • 9ed62eeb91 When a window is zombified and automatic-rename is on, append [dead] to the name. Nicholas Marriott 2009-10-10 15:23:13 +00:00
  • 3d1936e9c7 Update. Nicholas Marriott 2009-10-10 15:17:50 +00:00
  • 6bca92db4d Rather than running status-left, status-right and window title #() with popen immediately every redraw, queue them up and run them in the background, starting each once every status-interval. The actual status line uses the output from the last run. Nicholas Marriott 2009-10-10 15:03:01 +00:00
  • 4658c063d5 New option, mouse-select-pane. If on, the mouse may be used to select the current pane. Nicholas Marriott 2009-10-10 14:51:16 +00:00
  • 3a20a05a49 There is no point setting the scroll region up for line feeds unless scrolling is actually going to happen, so don't. Nicholas Marriott 2009-10-10 10:36:46 +00:00