Commit Graph

  • 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
  • 9a07e8f372 Sync OpenBSD patchset 147: Tiago Cunha 2009-07-20 16:01:07 +00:00
  • e8957009c7 Sync OpenBSD patchset 146: Tiago Cunha 2009-07-20 15:57:05 +00:00
  • c0862dae45 Tweak unbind-key language very slightly. Nicholas Marriott 2009-07-20 15:51:55 +00:00
  • 62017452e9 Sync OpenBSD patchset 145: Tiago Cunha 2009-07-20 15:51:32 +00:00
  • 16f424d25d Sync OpenBSD patchset 144: Tiago Cunha 2009-07-20 15:48:54 +00:00
  • 95d593dd51 Sync OpenBSD patchset 143: Tiago Cunha 2009-07-20 15:46:55 +00:00
  • 545893df73 Sync OpenBSD patchset 142: Tiago Cunha 2009-07-20 15:42:05 +00:00
  • 54afcfbfb4 Display the number of failed password attempts (if any) when the server is locked. From Tom Doherty. Nicholas Marriott 2009-07-20 14:37:51 +00:00
  • b292f71c49 Add a status-justify option to allow the window list in the status line to be positioned at the left, centre, or right. Nicholas Marriott 2009-07-20 14:32:09 +00:00
  • e32e0d5692 New options, window-status-current-{fg,bg,attr}, to set the fg, bg and attributes with which the current window is shown in the status line. From Johan Friis, thanks. Nicholas Marriott 2009-07-20 09:15:18 +00:00
  • 73732ffa05 Kill some dead stores and fix a null pointer deref, found by clang. Nicholas Marriott 2009-07-20 07:31:10 +00:00
  • ff2cc0e387 Move the offsets as well when swapping panes. Nicholas Marriott 2009-07-20 07:13:31 +00:00
  • 680f2098f1 With gcc4, turn off unnecessart pointer sign warnings. Nicholas Marriott 2009-07-20 05:40:13 +00:00
  • 376c808b50 Add three new session options: visual-activity, visual-bell, visual-content. If these are enabled (and the monitor-activity, bell-action and monitor-content options are configurated appropriately), when activity, a bell, or content is detected, a message is shown. Tiago Cunha 2009-07-19 14:35:56 +00:00
  • 550b855c9d tweak previous; Jason McIntyre 2009-07-19 14:07:47 +00:00
  • 4cf6396e4c Change a couple of screenshots which had screen in them now I've got rid of screen on that box too :-). Nicholas Marriott 2009-07-19 13:52:51 +00:00
  • 6036bdd06c Improved layout code. Nicholas Marriott 2009-07-19 13:21:40 +00:00
  • 17170f5d6e Add a -k flag to unlink-window which makes it behave the same as the old kill-window - if a window is linked into only one session it unlinked and destroyed. Tiago Cunha 2009-07-19 00:39:37 +00:00
  • fc6a65c620 Add three new session options: visual-activity, visual-bell, visual-content. If these are enabled (and the monitor-activity, bell-actio and monitor-content options are configurated appropriately), when activity, a bell, or content is detected, a message is shown. Nicholas Marriott 2009-07-18 14:59:25 +00:00
  • 19cb1fb592 Make it so using kill-pane to destroy the last pane in a window destroys the window instead of being an error. Nicholas Marriott 2009-07-18 11:07:14 +00:00
  • c30fbd1d8d When resizing a screen smaller in alternate screen mode, all the lines needed could be consumed by deleting from the bottom, leaving none to be removed from the top. In this case, don't call grid_view_delete_lines with ny of 0 as this is incorrect and causes a bounds check to fatal error if built with -DDEBUG. Nicholas Marriott 2009-07-18 11:06:35 +00:00
  • 6bc9ee3420 Tidy up new-session and attach-session and change them to work from inside tmux, switching the current client to the new or requested session. Nicholas Marriott 2009-07-18 11:06:09 +00:00
  • 4192449112 Remove a duplicate key binding, and turn off autorepeat for up/down as it is kind of annoying by default. Nicholas Marriott 2009-07-18 11:05:45 +00:00
  • f1efd6b4e7 If -u is specified or UTF-8 is otherwise detected when the server is started, enable the utf8 and status-utf8 optons. While here, note in the man page that the server is started with the first session and exits when none remain. Nicholas Marriott 2009-07-18 11:05:13 +00:00
  • 0ca6f667e3 Make it so using kill-pane to destroy the last pane in a window destroys the window instead of being an error. Nicholas Marriott 2009-07-17 20:37:03 +00:00
  • 6f5150a943 - New command display-message (alias display) to display a message in the status line (bound to "i" and displays the current window and time by default). The same substitutions are applied as for status-left/right. - Add support for including the window index (#I), pane index (#P) and window name (#W) in the message, and status-left or status-right. - Bump protocol version. Nicholas Marriott 2009-07-17 18:45:08 +00:00
  • 21cfef45d6 When resizing a screen smaller in alternate screen mode, all the lines needed could be consumed by deleting from the bottom, leaving none to be removed from the top. In this case, don't call grid_view_delete_lines with ny of 0 as this is incorrect and causes a bounds check to fatal error if built with -DDEBUG. Nicholas Marriott 2009-07-17 18:35:55 +00:00
  • ad006bc6b6 When resizing a screen smaller in alternate screen mode, all the lines needed could be consumed by deleting from the bottom, leaving none to be removed from the top. In this case, don't call grid_view_delete_lines with ny of 0 as this is incorrect and causes a bounds check to fatal error if built with -DDEBUG. Nicholas Marriott 2009-07-17 18:35:11 +00:00
  • ae7dda10ce - New command display-message (alias display) to display a message in the status line (bound to "i" by default). - Add support for including the window index, pane index, and window name in status-left, or status-right. - Bump protocol version. Tiago Cunha 2009-07-17 18:32:54 +00:00
  • 646632de1d Update TODO. Nicholas Marriott 2009-07-17 18:05:06 +00:00
  • 770ea563ee Changed the wrong thing here. Nicholas Marriott 2009-07-17 15:56:46 +00:00
  • ce53936a2b Tidy up new-session and attach-session and change them to work from inside tmux, switching the current client to the new or requested session. Nicholas Marriott 2009-07-17 15:03:11 +00:00
  • 1938c994e7 Remove a duplicate key binding, and turn off autorepeat for up/down as it is kind of annoying by default. Nicholas Marriott 2009-07-17 13:43:07 +00:00
  • 7ddba901a4 If -u is specified or UTF-8 is otherwise detected when the server is started, enable the utf8 and status-utf8 optons. While here, note in the man page that the server is started with the first session and exits when none remain. Nicholas Marriott 2009-07-17 13:38:03 +00:00
  • 946affe60d Stupid cvsps. Nicholas Marriott 2009-07-17 12:35:01 +00:00
  • 89543e999d A similar for fix for window_choose: don't rely on the callback always being called to free data, have a separate free callback and call it from the mode cleanup code. Nicholas Marriott 2009-07-17 12:12:54 +00:00
  • fc17ce0150 Oops, it is always a good idea to get arguments the right way round. Nicholas Marriott 2009-07-17 09:28:27 +00:00
  • 441c118b63 Memory could be leaked if a second prompt or message appeared while another was still present, so add a separate prompt free callback and make the _clear function responsible for calling it if necessary (rather than the individual Nicholas Marriott 2009-07-17 09:26:21 +00:00
  • ac55534055 Remove some duplicate code that was causing the status line to be redrawn even when it hadn't changed. Nicholas Marriott 2009-07-17 07:46:08 +00:00
  • 821de39b27 Fix arguments to switch-client. Nicholas Marriott 2009-07-17 07:45:42 +00:00
  • ede2dd2d3a Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrong place when copying UTF-8 data. Found by Dan Colish. Nicholas Marriott 2009-07-17 07:45:08 +00:00
  • d3b5c242cc Oops, it is always a good idea to get arguments the right way round. Nicholas Marriott 2009-07-17 07:09:46 +00:00
  • 216df07688 A similar for fix for window_choose: don't rely on the callback always being called to free data, have a separate free callback and call it from the mode cleanup code. Nicholas Marriott 2009-07-17 07:05:58 +00:00
  • 65deba3a35 Memory could be leaked if a second prompt or message appeared while another was still present, so add a separate prompt free callback and make the _clear function responsible for calling it if necessary (rather than the individual prompt callbacks). Also make both messages and prompts clear any existing when a new is set. Nicholas Marriott 2009-07-17 06:13:27 +00:00
  • 9642f0373f Remove some duplicate code that was causing the status line to be redrawn even when it hadn't changed. Nicholas Marriott 2009-07-16 23:25:21 +00:00
  • 3e9d9a2119 Fix arguments to switch-client. Nicholas Marriott 2009-07-16 22:50:49 +00:00
  • 08d32a1522 Update TODO. Nicholas Marriott 2009-07-16 07:35:41 +00:00
  • d956ed0760 Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrong place when copying UTF-8 data. Found by Dan Colish. Nicholas Marriott 2009-07-16 07:35:35 +00:00