Commit Graph

  • 361801aaaa Sync OpenBSD patchset 184: Tiago Cunha 2009-07-28 22:37:02 +00:00
  • 2aa4d47312 Sync OpenBSD patchset 183: Tiago Cunha 2009-07-28 22:32:15 +00:00
  • 2dda197980 Make similar changes to the OS-dependent code for FreeBSD, and NetBSD in accordance to OpenBSD patchset 182. Tiago Cunha 2009-07-28 22:28:11 +00:00
  • 6043d9cf89 Sync OpenBSD patchset 182: Tiago Cunha 2009-07-28 22:26:13 +00:00
  • a3fc9dee32 Add PASS_MAX for glibc. Tiago Cunha 2009-07-28 22:17:10 +00:00
  • d637cb33da Sync OpenBSD patchset 181: Tiago Cunha 2009-07-28 22:12:16 +00:00
  • f5c0695605 This stuff is done. Nicholas Marriott 2009-07-28 18:51:10 +00:00
  • f596be9950 Final pieces of mode key rebinding: bind-key and unbind-key now accept a -t argument to modify a table. Nicholas Marriott 2009-07-28 17:05:10 +00:00
  • 9e5d585ba4 Accept and print "Enter" and "Escape" for keys rather than C-m and C-[. Nicholas Marriott 2009-07-28 09:18:01 +00:00
  • 86785004ba Next step towards customisable mode keys: build each default table of keys into a named tree on start and use that for lookups. Also add command to string translation tables and modify list-keys to show the the mode key bindings (new -t argument). Nicholas Marriott 2009-07-28 07:03:32 +00:00
  • 2da4864483 If select-layout is not given an argument, repply the last layout used in the window, if any. Nicholas Marriott 2009-07-28 06:48:44 +00:00
  • 309b76fb32 Remove an unused entry in the mode keys command enum and rename MODEKEYCOPY_QUIT to _CANCEL to match the others. Nicholas Marriott 2009-07-27 20:36:13 +00:00
  • d95274c5f2 Change mode key bindings from big switches into a set of tables. Rather than lumping them all together, split editing keys from those used in choice/more mode and those for copy/scroll mode. Nicholas Marriott 2009-07-27 19:29:35 +00:00
  • 13e29dd7b5 Get rid of empty mode_key_free function. Nicholas Marriott 2009-07-27 18:51:46 +00:00
  • ad0aad21d5 Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in vi). Nicholas Marriott 2009-07-27 12:11:11 +00:00
  • fc65da1eed Draw UTF-8 characters under the selection correctly. Nicholas Marriott 2009-07-27 11:33:21 +00:00
  • 584eda8339 Change previous-word behavior to move to the beginning of the word (matches emacs and vi). From Kalle Olavi Niemitalo. Nicholas Marriott 2009-07-27 07:42:45 +00:00
  • 639fbe0392 Detect backspace by looking at termios VERASE and translate it into \177 (which matches screen's behaviour if not its termcap/terminfo entry). The terminfo kbs cap is often wrong or missing so it can't be used, and just assuming \177 may be wrong. Nicholas Marriott 2009-07-26 21:42:08 +00:00
  • 55d8c01c33 Calculate the space available for the prompt buffer and the cursor position correctly, and make it work when the screen is not wide enough. Nicholas Marriott 2009-07-26 21:13:47 +00:00
  • 6b3b852ebc Go to the next if the current best process is replaced, don't keep comparing it with itself. Also fix process name comparison. Nicholas Marriott 2009-07-26 19:42:26 +00:00
  • 21130b0c49 Add a couple of items, and wrap lines. Nicholas Marriott 2009-07-26 15:58:40 +00:00
  • 34a82e7629 Make all messages sent between the client and server fixed size. Nicholas Marriott 2009-07-26 12:58:44 +00:00
  • a5ad186547 Sync OpenBSD patchset 180: Tiago Cunha 2009-07-25 09:04:54 +00:00
  • 5e7a48a865 Sync OpenBSD patchset 179: Tiago Cunha 2009-07-25 09:03:33 +00:00
  • 2386fa2355 Sync OpenBSD patchset 178: Tiago Cunha 2009-07-25 08:59:38 +00:00
  • 723f363c07 Sync OpenBSD patchset 177: Tiago Cunha 2009-07-25 08:58:19 +00:00
  • a98dbb67b9 Sync OpenBSD patchset 176: Tiago Cunha 2009-07-25 08:53:48 +00:00
  • 28cf7dc39e Sync OpenBSD patchset 175: Tiago Cunha 2009-07-25 08:52:04 +00:00
  • 744ccb7cc9 Sync OpenBSD patchset 174: Tiago Cunha 2009-07-25 08:39:39 +00:00
  • db584544f4 Add some more bits. Nicholas Marriott 2009-07-25 00:12:24 +00:00
  • f4718dcdf2 +another couple of items. Nicholas Marriott 2009-07-25 00:00:33 +00:00
  • 4ec1b5d4e2 +. Nicholas Marriott 2009-07-24 22:59:06 +00:00
  • 2bb89bc5bc Set the active pane when respawning a window - fixes problems when respawning a window with multiple panes. Nicholas Marriott 2009-07-24 19:35:33 +00:00
  • 6e0626d3af Screenshot with more ACS love. Nicholas Marriott 2009-07-24 19:30:51 +00:00
  • dd51dd14af Add. Nicholas Marriott 2009-07-24 19:30:05 +00:00
  • 133173850c Use the full range of ACS line drawing characters to draw pane borders, including intersections. Nicholas Marriott 2009-07-24 19:14:38 +00:00
  • c6dac5c3c9 cmd_find_index should return -2 on error. Nicholas Marriott 2009-07-24 18:46:40 +00:00
  • 029599c02c Simplify screen redrawing by drawing the border and background together rather than border separately, and consolidating all the drawing characters into one string. Nicholas Marriott 2009-07-24 16:21:42 +00:00
  • 1d1ea681f0 Accept lowercase c- and m- prefix as well as C- and M-. Nicholas Marriott 2009-07-24 14:57:22 +00:00
  • 5a1a106637 Permit commands to be bound to key presses without the prefix key first. The new -n flag to bind-key and unbind-key sets or removes these bindings, and list-key shows them in []s. Nicholas Marriott 2009-07-24 14:52:47 +00:00
  • ce4eb6559e up-pane and down-pane no longer auto-repeat; update the description of repeat-time accordingly. ok nicm@ Stuart Henderson 2009-07-24 14:50:24 +00:00
  • 7cd412dc57 Sync OpenBSD patchset 173: Tiago Cunha 2009-07-23 23:47:23 +00:00
  • 1870b96578 Sync OpenBSD patchset 172: Tiago Cunha 2009-07-23 23:42:59 +00:00
  • 2e4df706f6 Sync OpenBSD patchset 171: Tiago Cunha 2009-07-23 23:37:14 +00:00
  • 1141acfd4c Revert previous per OpenBSD's patchset 170. Tiago Cunha 2009-07-23 23:35:10 +00:00
  • 53c1b32e02 Sync OpenBSD patchset 169: Tiago Cunha 2009-07-23 23:29:53 +00:00
  • 4a04b498db None of the server message functions return anything but 0, so make them all void. Nicholas Marriott 2009-07-23 21:19:11 +00:00
  • 16e017d5a6 Tidy client message return slightly: convert flags into an enum, and merge error string into struct client_ctx as well. Nicholas Marriott 2009-07-23 20:24:27 +00:00
  • ba84ddcf8e Redraw after starting selection to correctly remove any existing selection. Nicholas Marriott 2009-07-23 17:03:47 +00:00
  • 895171478f Revert r1.5, I don't like it, new sessions should start off identically - with the defaults. Nicholas Marriott 2009-07-23 15:47:56 +00:00
  • e0d1954840 C-d is delete as well in emacs mode. Nicholas Marriott 2009-07-23 13:44:02 +00:00
  • f2451c1e29 Sync OpenBSD patchset 168: Tiago Cunha 2009-07-23 13:25:27 +00:00
  • a551ff2b1b Sync OpenBSD patchset 167: Tiago Cunha 2009-07-23 13:19:12 +00:00
  • 7174c76bf0 Sync OpenBSD patchset 166: Tiago Cunha 2009-07-23 13:15:41 +00:00
  • 6708ad19c5 Sync OpenBSD patchset 165: Tiago Cunha 2009-07-23 13:10:38 +00:00
  • fb0301f8b8 Sync OpenBSD patchset 164: Tiago Cunha 2009-07-23 13:06:31 +00:00
  • c84145751a Sync OpenBSD patchset 164: Tiago Cunha 2009-07-23 12:57:45 +00:00
  • b72f9bea43 Sync OpenBSD patchset 162: Tiago Cunha 2009-07-23 12:48:18 +00:00
  • 9c6fa90857 Sync OpenBSD patchset 160: Tiago Cunha 2009-07-23 12:38:01 +00:00
  • 96a7cf1e6a Both of cmdclient and curclient CAN be NULL - if the command is executed from the configuration file. In this case, attach-session can't do much, and new-session should just assume -d. Nicholas Marriott 2009-07-23 12:33:48 +00:00
  • 05b511f96a If there is a current session, use its default path and working directory for the initial window when creating a new session. Nicholas Marriott 2009-07-22 22:47:43 +00:00
  • bb14c36a27 Pass a set of flags into client_init rather than just a start_server variable. Only one flag now but more to come later. Nicholas Marriott 2009-07-22 21:58:56 +00:00
  • 5ee84436c8 window_add_pane cannot fail, so remove the unused cause argument and don't bother to check for a NULL return. Nicholas Marriott 2009-07-22 21:34:36 +00:00
  • f7df0bac96 Tidy the target parsing code a bit and correct the behaviour so that as before a string with no colon as a target window is first looked up as a window then as a session, noted by Iain Morgan. Nicholas Marriott 2009-07-22 21:23:29 +00:00
  • 83d1f2b480 Some more TODO list items that are done. Nicholas Marriott 2009-07-22 21:10:45 +00:00
  • 19aae6dbd8 Add a couple of notes so I don't forget. Nicholas Marriott 2009-07-22 21:02:07 +00:00
  • dd4a3b24fc tty_write is relatively short and the only function left in tty-write.c so move it into tty.c. Nicholas Marriott 2009-07-22 20:56:58 +00:00
  • ddad0be5f7 More tty code tidying: move the saved cursor/region position (from before the screen was updated) out of struct screen and into struct tty_ctx. Nicholas Marriott 2009-07-22 20:53:38 +00:00
  • aa3a262caa Update. Tiago Cunha 2009-07-22 20:42:56 +00:00
  • b6afa30c39 Sync OpenBSD patchset 159: Tiago Cunha 2009-07-22 18:08:56 +00:00
  • bb4bab4c26 log_debug3 no longer exists, change the sole use in GRID_DEBUG to log_debug2. Nicholas Marriott 2009-07-22 18:06:58 +00:00
  • 2ec2837daa enum tty_cmd is only used as an index into the array of command function pointers, so remove it and use the function pointers directly to represent themselves. Nicholas Marriott 2009-07-22 18:02:23 +00:00
  • 75a44d856e Sync OpenBSD patchset 158: Tiago Cunha 2009-07-22 17:58:42 +00:00
  • 41207e4861 Sync OpenBSD patchset 157: Tiago Cunha 2009-07-22 17:53:27 +00:00
  • acdef09e00 Sync OpenBSD patchset 156: Tiago Cunha 2009-07-22 17:49:09 +00:00
  • d29b57f597 Sync OpenBSD patchset 155: Tiago Cunha 2009-07-22 17:46:53 +00:00
  • 0237e1dafd Sync OpenBSD patchset 154: Tiago Cunha 2009-07-22 17:38:11 +00:00
  • a92993228f Change GRID_DEBUG to use log_debug2 since log_debug3 was removed. Tiago Cunha 2009-07-22 17:33:02 +00:00
  • 6a97901691 Sync OpenBSD patchset 153: Tiago Cunha 2009-07-22 17:31:20 +00:00
  • 39aa8b32b1 Restore $Id$. Tiago Cunha 2009-07-22 16:55:22 +00:00
  • 1bf524c1b7 Sync OpenBSD patchset 152: Tiago Cunha 2009-07-22 16:53:30 +00:00
  • 6a309c53a8 There are relatively few arguments to tty_cmd_* functions now, so tidy them up by using a struct rather than hiding everything with varargs. Nicholas Marriott 2009-07-22 16:45:31 +00:00
  • a734488a4b Sync OpenBSD patchset 151: Tiago Cunha 2009-07-22 16:24:59 +00:00
  • 5bd72ec629 tty_cmd_raw is only used once, for raw UTF-8 output, so rename it to tty_cmd_utf8character and eliminate the size argument. Nicholas Marriott 2009-07-22 15:55:32 +00:00
  • 94e2339842 OpenSolaris ioctl(TIOCSWINSZ) appears to be broken and can return EINVAL here despite sx, sy and fd being fine (an fcntl on the fd succeeds). No problems on other platforms so ignore the error under #ifdef __sun__. Nicholas Marriott 2009-07-22 12:42:57 +00:00
  • e43b6a2dd2 Adjust field width to fit longest key when listing. Nicholas Marriott 2009-07-21 22:41:00 +00:00
  • 3eb6080de3 Remove leftover debug logging of password. Nicholas Marriott 2009-07-21 21:20:07 +00:00
  • 76a9d98562 Make some functions which return unused values void (mostly found by lint) and tweak a redundant expression in window_pane_set_mode. Nicholas Marriott 2009-07-21 19:54:22 +00:00
  • 6945e86fd7 Nix a few unused attributes on arguments which are no longer unused. Nicholas Marriott 2009-07-21 18:52:03 +00:00
  • 044ebf1952 Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by lint. Nicholas Marriott 2009-07-21 18:40:30 +00:00
  • b9a179089b __progname is not const, pointed out by deraadt. Nicholas Marriott 2009-07-21 18:38:52 +00:00
  • 725938fb85 Tidy up keys: use an enum for the key codes, and remove the macros which just wrap flag sets/clears/tests. Nicholas Marriott 2009-07-21 17:57:29 +00:00
  • 5263b3f61e Sync OpenBSD patchset 150: Tiago Cunha 2009-07-21 16:27:41 +00:00
  • 962b9c6548 Include .depend in GNUmakefile since GNU make does not include it automatically. Nicholas Marriott 2009-07-21 13:51:30 +00:00
  • 48c36d628a No paths.h in cmd.c; add _PATH_DEV for Solaris. Nicholas Marriott 2009-07-21 13:07:50 +00:00
  • e2a80151ae Update. Nicholas Marriott 2009-07-21 13:07:14 +00:00
  • c6012aaabc Now that #P could be in the status line, flag it for redraw when the active pane changes. Nicholas Marriott 2009-07-20 19:35:33 +00:00
  • 2572c7139b Sync OpenBSD patchset 149: Tiago Cunha 2009-07-20 17:08:48 +00:00
  • e7cda4f363 Update. Tiago Cunha 2009-07-20 17:06:13 +00:00
  • 54c6848d75 Sync OpenBSD patchset 148: Tiago Cunha 2009-07-20 16:07:23 +00:00