Commit Graph

  • 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
  • 5cf994856f Send SGR0 when initialising the screen. Fixes problems on terminals with BCE (like putty) if the background colours is non-default when tmux starts. May also fix problems when resuming a suspended tmux. Nicholas Marriott 2009-08-14 08:53:52 +00:00
  • 09cbd0c695 Switch the prompt code to return an empty string when the user enters no response and reserve NULL for an explicit cancel. Change all callbacks to treat them the same so no functional change. Nicholas Marriott 2009-08-13 23:44:18 +00:00
  • a604dfbb97 +. Nicholas Marriott 2009-08-13 22:39:22 +00:00
  • e9d170176d Add and remove some bits. Nicholas Marriott 2009-08-13 22:36:20 +00:00
  • 7a359c00ac vi(1)-style half page scroll in copy and scroll modes. Move the vi full page scroll key to C-b instead of C-u and use C-u/C-d for half page scrolling with vi keys. In emacs mode, half page scrolling is bound to M-Up and M-Down. Nicholas Marriott 2009-08-13 22:32:18 +00:00
  • 39154402e5 Scroll by two less than the number of lines in the screen, like emacs, rather than by the entire screen, to make it easier to pull things out from under the line indicator. Suggested by claudio. Nicholas Marriott 2009-08-13 22:11:43 +00:00
  • 375be90fd1 Disable mode-mouse (mouse in copy/choice mode) by default as it isn't very useful at the moment and causes confusion. Nicholas Marriott 2009-08-13 21:56:14 +00:00
  • 3ad4de6c8c Add a base-index session option to specify the first index checked when looking for an index for a new window. Nicholas Marriott 2009-08-13 20:11:58 +00:00
  • 3026118c70 Allowing copy mode to scroll left and right is annoying, so limit it to the real screen width. To indicate the cursor is at the end of the line rather than the cell before, put a '$' in the last cell. Nicholas Marriott 2009-08-13 19:35:20 +00:00
  • e2ff51f93f Rather than telling the client to exit in the function when creating a new session detached, let the caller do it. Allows "tmux new -d \; attach" to work. Nicholas Marriott 2009-08-13 19:16:14 +00:00
  • 52793e7a3f When creating a new session from the command-line where there is an external terminal, copy the termios(4) special characters and use them for new windows created in the new session. Suggested by Theo. Nicholas Marriott 2009-08-13 19:03:59 +00:00
  • 2e3bb5a511 Redraw the screen after resizing. Nicholas Marriott 2009-08-13 16:48:43 +00:00
  • b02e429788 It was originally intended that scroll mode would show content that was currently off-screen due to resize, but somewhere along the way this got lost. Restore this behaviour to scroll mode by fixing screen_write_copy to read up to the saved line length rather than the current screen width. Copy mode remains unaltered for now. Nicholas Marriott 2009-08-13 16:24:33 +00:00
  • 7a005b91b3 If the client passes zero for the window size in the identify message (which it can, for example on serial terminals), reset it to 80x25, same as for resize messages. Problem reported by kettenis@. Nicholas Marriott 2009-08-13 12:15:45 +00:00
  • bc497dbb92 A tty context must not be modified as it may be reused to update multiple clients, so make it const. Nicholas Marriott 2009-08-12 09:41:59 +00:00
  • 9a52ef099a When started as the shell, __progname contains a leading -, so hardcode "tmux" for socket path and log files, and strip it when working out the shell. Nicholas Marriott 2009-08-12 09:14:25 +00:00
  • 85e8b70625 imsg closes the fd after sending, so dup() STDIN_FILENO before passing it to the parent, otherwise TIOCGWINSZ will fail when the window is resized (that could actually be moved into the server but this is more future-proof and avoids breaking the protocol). Nicholas Marriott 2009-08-12 06:04:28 +00:00
  • e0a19abb99 Initialise log_fd to -1, prevents spurious disconnection of the client when it ends up as fd 0 (likely if the server is started with "tmux start"). Nicholas Marriott 2009-08-11 22:34:17 +00:00
  • 4310282a4c Have the client pass its stdin fd to the server when identifying itself and have the server use that rather than reopening the tty. If the fd isn't given, use the old behaviour (so no need for a version change). Nicholas Marriott 2009-08-11 21:28:11 +00:00
  • 4ec8ade11c Add a TTY_OPENED flag and tidy a little. Nicholas Marriott 2009-08-11 20:29:04 +00:00
  • ff65e37545 Drop the no_stop argument to tty_close and tty_free in favour of a flag in the tty struct. Nicholas Marriott 2009-08-11 19:32:25 +00:00
  • f0635717b3 Switch tmux to use imsg. This is the last major change to make the client-server protocol more resilient and make the protocol versioning work properly. In future, the only things requiring a protocol version bump will be changes in the message structs, and (when both client and server have this change) mixing different versions should nicely report an error message. Nicholas Marriott 2009-08-11 17:18:35 +00:00
  • 304296972b Sync from OpenBSD: Nicholas Marriott 2009-08-11 14:42:59 +00:00
  • 60db6e3df4 Add flags for 1+2 and 2 arguments to the generic target code, use it for cmd-set-environment/option/window-option and remove the generic options parsing. Nicholas Marriott 2009-08-11 12:53:37 +00:00
  • d0eae2cbfd +. Nicholas Marriott 2009-08-11 10:09:32 +00:00
  • 4d90ce7b40 Update. Nicholas Marriott 2009-08-11 10:06:27 +00:00
  • 48ede1a00a Sync OpenBSD patchset 241: Tiago Cunha 2009-08-10 21:43:34 +00:00
  • c261ae32d2 Sync OpenBSD patchset 240: Tiago Cunha 2009-08-10 21:41:35 +00:00
  • e8ea3ccd58 Sync OpenBSD patchset 239: Tiago Cunha 2009-08-10 21:40:21 +00:00
  • 7bcd7c2752 Sync OpenBSD patchset 238: Tiago Cunha 2009-08-10 21:39:15 +00:00
  • edcb22a6fb No arguments are the same as new-session and this requires the environment to be sent, so set that flag too when argc == 0. Nicholas Marriott 2009-08-10 20:51:29 +00:00
  • 181e1bcffd Reset the attributes after drawing all or part of the screen, and reset the region before poll(2). This reduces (but does not eliminate) the chance of the attributes not being normal if tmux is disconnected without warning (ssh ~., reboot from inside, etc). Nicholas Marriott 2009-08-10 19:42:03 +00:00
  • fa64c1235e Use the right source and destination lines in grid_duplicate_lines. Nicholas Marriott 2009-08-10 17:59:59 +00:00
  • ec0c33b844 some minor tweaks; ok nicm Jason McIntyre 2009-08-10 17:14:55 +00:00
  • 7dbabe84e4 Missing options are not illegal. Nicholas Marriott 2009-08-09 18:35:38 +00:00
  • 3dadb349eb Sync OpenBSD patchset 237: Tiago Cunha 2009-08-09 18:02:36 +00:00
  • e43ce15736 Sync OpenBSD patchset 236: Tiago Cunha 2009-08-09 18:02:02 +00:00
  • 6297285527 Nuke dead variable here as well, in accordance to OpenBSD patchset 235. Tiago Cunha 2009-08-09 18:00:45 +00:00
  • 2c863b9f2c Sync OpenBSD patchset 235: Tiago Cunha 2009-08-09 17:57:39 +00:00
  • 221ce5afb3 Sync OpenBSD patchset 234: Tiago Cunha 2009-08-09 17:55:59 +00:00
  • 1297c39a31 Sync OpenBSD patchset 233: Tiago Cunha 2009-08-09 17:53:50 +00:00
  • 4c944910fa Sync OpenBSD patchset 232: Tiago Cunha 2009-08-09 17:52:54 +00:00
  • deac1fc188 Update. Tiago Cunha 2009-08-09 17:51:19 +00:00
  • 29b1b2fb5e Sync OpenBSD patchset 231: Tiago Cunha 2009-08-09 17:48:55 +00:00
  • af3db9a4fe Sync OpenBSD patchset 230: Tiago Cunha 2009-08-09 17:43:00 +00:00
  • a26817d604 Update. Tiago Cunha 2009-08-09 17:41:46 +00:00
  • 167a8c9edc Sync OpenBSD patchset 229: Tiago Cunha 2009-08-09 17:40:17 +00:00
  • 97eb537f38 Sync OpenBSD patchset 227: Tiago Cunha 2009-08-09 17:32:06 +00:00
  • 37b0bcd7c1 Sync OpenBSD patchset 226: Tiago Cunha 2009-08-09 17:28:24 +00:00
  • 5b56ea1816 Sync OpenBSD patchset 225: Tiago Cunha 2009-08-09 17:19:18 +00:00
  • 602aae7839 Sync OpenBSD patchset 224: Tiago Cunha 2009-08-09 16:59:35 +00:00
  • 05eb4ece44 Sync OpenBSD patchset 223: Tiago Cunha 2009-08-09 16:57:49 +00:00