Commit Graph

  • 6b69b93b53 clean up some macro abuse in the commands section; Jason McIntyre 2009-08-04 07:56:38 +00:00
  • 189fb08e13 Split the comparison into a function to make this code smaller and more understandable. Nicholas Marriott 2009-08-03 17:12:07 +00:00
  • ac54dee9bb Don't try to free old string values (and crash) when they are overridden unless they were actually found in the source terminal description. Reported by jmc. Nicholas Marriott 2009-08-03 15:30:16 +00:00
  • 9a391b3320 tweak previous; Jason McIntyre 2009-08-03 14:34:47 +00:00
  • 1673735f02 Add a terminal-overrides session option allowing individual terminfo(5) entries to be overridden. The 88col/256col checks are now moved into the default setting and out of the code. Nicholas Marriott 2009-08-03 14:10:54 +00:00
  • e4bb08e1f5 Fix checking of setupterm(3) error codes. While there include the name of the terminal type causing the error where relevant. ok nicm@. Matthieu Herrb 2009-08-02 20:47:35 +00:00
  • a834d037bc Sync OpenBSD patchset 209: Tiago Cunha 2009-07-31 20:35:21 +00:00
  • cccd072ed1 Sync OpenBSD patchset 208: Tiago Cunha 2009-07-31 20:33:49 +00:00
  • 5f0e688b50 Add some lines. Nicholas Marriott 2009-07-31 10:58:51 +00:00
  • ec8930c144 Part of last commit, remove -lcurses. Nicholas Marriott 2009-07-31 10:45:22 +00:00
  • 3e46bcec93 On SUSE Linux compatibility is something that only happens to other people, so on Linux use -lncurses instead of -lcurses. Nicholas Marriott 2009-07-31 10:44:03 +00:00
  • 5d13704e04 Some Linuxes/gcc versions hide LLONG_MAX/MIN unless the compiler is told to use C99, so use -std=c99 on Linux. Nicholas Marriott 2009-07-31 10:30:40 +00:00
  • 5db47ed53a Pass the ACS border characters through tty_get_acs so they appear correctly on terminals which don't use the standard set. Nicholas Marriott 2009-07-31 10:12:49 +00:00
  • 52f8578984 Some stuff that is done. Nicholas Marriott 2009-07-30 21:55:16 +00:00
  • 09c6432854 Sync OpenBSD patchset 207: Tiago Cunha 2009-07-30 21:14:04 +00:00
  • 796bfbd7af Update. Tiago Cunha 2009-07-30 21:11:10 +00:00
  • 56dd5dfff4 Sync OpenBSD patchset 206: Tiago Cunha 2009-07-30 21:07:23 +00:00
  • 3eb77bf53f Sync OpenBSD patchset 205: Tiago Cunha 2009-07-30 21:04:40 +00:00
  • 89826983eb Sync OpenBSD patchset 204: Tiago Cunha 2009-07-30 21:02:35 +00:00
  • 697051d1fd Sync OpenBSD patchset 203: Tiago Cunha 2009-07-30 21:01:01 +00:00
  • 67266dc25c Sync OpenBSD patchset 202: Tiago Cunha 2009-07-30 20:57:39 +00:00
  • 95caeaa5dc Don't leak when rollling buffers off when the paste buffer limit is reached. Nicholas Marriott 2009-07-30 20:50:54 +00:00
  • 817e93ac94 Sync OpenBSD patchset 201: Tiago Cunha 2009-07-30 20:50:10 +00:00
  • 1650b8552f Sync OpenBSD patchset 200: Tiago Cunha 2009-07-30 20:45:20 +00:00
  • 97f105cde2 Plug some memory leaks. Nicholas Marriott 2009-07-30 20:41:48 +00:00
  • ec1396c9ee Sync OpenBSD patchset 199: Tiago Cunha 2009-07-30 20:33:29 +00:00
  • ec3dba01b2 Sync OpenBSD patchset 198: Tiago Cunha 2009-07-30 20:32:05 +00:00
  • 8ce1f0b047 Sync OpenBSD patchset 197: Tiago Cunha 2009-07-30 20:26:20 +00:00
  • 6fbfcfc0d7 Sync OpenBSD patchset 196: Tiago Cunha 2009-07-30 20:21:55 +00:00
  • 5a9b7b230c Sync OpenBSD patchset 195: Tiago Cunha 2009-07-30 20:17:25 +00:00
  • 61f3fc7e4d Don't babysit people and let them try to load /dev/zero or (more useful) /dev/null if they want. Nicholas Marriott 2009-07-30 17:46:12 +00:00
  • 8df3035831 Remove some dead code found by clang. Nicholas Marriott 2009-07-30 17:29:12 +00:00
  • 6d86882ed4 tweak previous; Jason McIntyre 2009-07-30 16:59:24 +00:00
  • 9f1dd4d0af Similar changes for server_msg_dispatch: use a switch instead of a lookup table and merge smaller functions inline. Nicholas Marriott 2009-07-30 16:40:12 +00:00
  • 5f13bb0c3a There aren't many client message types or code to handle them so get rid of the lookup table and use a switch, merge the tiny handler functions into it, and move the whole lot to client.c. Nicholas Marriott 2009-07-30 16:32:12 +00:00
  • 479d614884 Tell the server when the client gets SIGTERM so it can clean up the terminal properly, rather than just exiting. Nicholas Marriott 2009-07-30 16:16:19 +00:00
  • 071494d8fa Merge pane number into the target specification for pane commands. Instead of using -p index, a target pane is now addressed with the normal -t window form but suffixed with a period and a pane index, for example :0.2 or mysess:mywin.1. An unadorned number such as -t 1 is tried as a pane index in the current window, if that fails the same rules are followed as for a target window and the current pane in that window used. Nicholas Marriott 2009-07-30 13:45:56 +00:00
  • a87228b4ff new sentence, new line; Jason McIntyre 2009-07-30 13:31:22 +00:00
  • a419e73f7a Add a mode-mouse option to prevent tmux taking over the mouse in choice or copy modes. Nicholas Marriott 2009-07-30 07:04:50 +00:00
  • 2b331084b4 Add an additional heuristic to work out the current session when run from the command line. The name of all slave ptys in the server is known, so if the client was run on a tty, look for any sessions containing that tty and use the most recently created. Nicholas Marriott 2009-07-29 17:03:16 +00:00
  • c1d6d7ac6b Rename struct hdrtype to msgtype which is a better name and can be used even when struct hdr disappears. Nicholas Marriott 2009-07-29 14:17:26 +00:00
  • d3c461097b Taking account of the "s, 22 not 24 is the maximum length of #T in status-right to prevent the date being cut off. Nicholas Marriott 2009-07-29 05:36:53 +00:00
  • 522fc94d12 Sync OpenBSD patchset 194: Tiago Cunha 2009-07-28 23:19:06 +00:00
  • deaba44835 Sync OpenBSD patchset 193: Tiago Cunha 2009-07-28 23:13:00 +00:00
  • de7483a114 Sync OpenBSD patchset 192: Tiago Cunha 2009-07-28 23:11:18 +00:00
  • d9dcc5ed44 Sync OpenBSD patchset 191: Tiago Cunha 2009-07-28 23:04:29 +00:00
  • 1c73e75982 Sync OpenBSD patchset 190: Tiago Cunha 2009-07-28 22:58:20 +00:00
  • 920b9c5872 Sync OpenBSD patchset 189: Tiago Cunha 2009-07-28 22:55:59 +00:00
  • 1880b83c37 Sync OpenBSD patchset 188: Tiago Cunha 2009-07-28 22:49:26 +00:00
  • 46cb0de347 Sync OpenBSD patchset 187: Tiago Cunha 2009-07-28 22:44:38 +00:00
  • 7562781c9d Sync OpenBSD patchset 186: Tiago Cunha 2009-07-28 22:41:38 +00:00
  • 2a146852ef Sync OpenBSD patchset 185: Tiago Cunha 2009-07-28 22:39:29 +00:00
  • 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