Commit Graph

  • ba5404d93e Continue rather than returning if not a mouse key, to avoid hanging on any function key... Nicholas Marriott 2009-11-26 22:26:51 +00:00
  • 4ca857e0e9 Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output. Nicholas Marriott 2009-11-26 21:37:13 +00:00
  • 621dabd44e Rename a variable to something more helpful. Nicholas Marriott 2009-11-26 21:22:31 +00:00
  • 3e147967e2 Get a u_char from the string, otherwise it isn't possible to enter \0377 as it is mistaken for EOF (doh). Nicholas Marriott 2009-11-26 21:14:30 +00:00
  • 9c0147915e Handle the possibility of partial mouse reads, and fix a comment while here. Nicholas Marriott 2009-11-26 15:14:03 +00:00
  • d31d4c05cf Emulate il1, dl1, ich1 to run (albeit slowly) with vt100 feature set. Nicholas Marriott 2009-11-26 14:46:08 +00:00
  • 399002baa4 Despite terminfo being in use for around 20 years, NetBSD still haven't got their act together, so add an ifdef to use ncurses.h instead of curses.h. Nicholas Marriott 2009-11-26 09:19:05 +00:00
  • 094bca5ac3 Output the right keys for application and number keypad modes (they were the wrong way round). Nicholas Marriott 2009-11-25 12:24:31 +00:00
  • 87821fce0e Add a -p flag to display-message to print the output rather than displaying in the status line, this allows things like "display -p '#W'" to find the current window index. Nicholas Marriott 2009-11-24 19:16:11 +00:00
  • 809902226e Sync. Nicholas Marriott 2009-11-24 19:03:59 +00:00
  • 45ac2cc4e7 +. Nicholas Marriott 2009-11-23 20:29:04 +00:00
  • 727fdb44a0 +load average. Nicholas Marriott 2009-11-23 09:53:24 +00:00
  • 3cb0c8e650 Done. Tiago Cunha 2009-11-22 23:29:09 +00:00
  • fce47e2e63 Add cursor keys to the key names list. Nicholas Marriott 2009-11-22 22:52:39 +00:00
  • 1a41a3b48f Sync OpenBSD patchset 559: Tiago Cunha 2009-11-22 00:13:34 +00:00
  • 1527ed0ff8 Sync OpenBSD patchset 558: Tiago Cunha 2009-11-22 00:12:33 +00:00
  • bce5aedc64 Sync OpenBSD patchset 557: Tiago Cunha 2009-11-22 00:11:33 +00:00
  • 1d58ca61a7 Sync OpenBSD patchset 556: Tiago Cunha 2009-11-22 00:10:39 +00:00
  • 074780fea4 Sync OpenBSD patchset 555: Tiago Cunha 2009-11-22 00:09:42 +00:00
  • 9b9d26f80e Use home from struct passwd if HOME is empty as well as if it is NULL, and fix a style nit. Both from Tiago Cunha. Nicholas Marriott 2009-11-21 17:52:18 +00:00
  • 58688c48aa When -h and -p are given to split-window, calculate the percentage size using the width instead of the height. Nicholas Marriott 2009-11-20 19:12:39 +00:00
  • ec68dae252 +. Nicholas Marriott 2009-11-20 14:59:45 +00:00
  • 5d56225d95 Display UTF-8 properly in status line messages and prompt. Cursor handling is still way off though. Nicholas Marriott 2009-11-20 07:01:12 +00:00
  • 070e3b4178 Remove oldest messages from log when limit is hit, not newest. Nicholas Marriott 2009-11-20 06:33:26 +00:00
  • 7a9bfabf7a Sync OpenBSD patchset 554: Tiago Cunha 2009-11-19 22:37:04 +00:00
  • cbc7a23e33 Update. Tiago Cunha 2009-11-19 22:35:51 +00:00
  • f9451028c0 Sync OpenBSD patchset 553: Tiago Cunha 2009-11-19 22:35:10 +00:00
  • 1feea926ed Sync OpenBSD patchset 552: Tiago Cunha 2009-11-19 22:32:12 +00:00
  • 8512811535 Sync OpenBSD patchset 551: Tiago Cunha 2009-11-19 22:31:27 +00:00
  • 224ae13ab0 Sync OpenBSD patchset 550: Tiago Cunha 2009-11-19 22:30:39 +00:00
  • 5fd1cf743e Update. Tiago Cunha 2009-11-19 22:28:59 +00:00
  • 563f34477a Sync OpenBSD patchset 549: Tiago Cunha 2009-11-19 22:25:52 +00:00
  • a5ae0dc216 Sync OpenBSD patchset 548: Tiago Cunha 2009-11-19 22:24:17 +00:00
  • a0b2b8e875 Sync OpenBSD patchset 547: Tiago Cunha 2009-11-19 22:23:27 +00:00
  • acc331c787 Sync OpenBSD patchset 546: Tiago Cunha 2009-11-19 22:20:04 +00:00
  • 8777a809dc Sync OpenBSD patchset 545: Tiago Cunha 2009-11-19 22:15:58 +00:00
  • 2cea9433c2 Get some brackets in the right place so ## works. Also fix a space in a comment. Nicholas Marriott 2009-11-19 21:30:53 +00:00
  • 33b337f618 Change status line drawing to create the window list in a separate screen and then copy it into the status line screen. This allows UTF-8 in window names and fixes some problems with #[] in window-status-format. Nicholas Marriott 2009-11-19 19:47:28 +00:00
  • 543fb99bc6 Two new options, window-status-format and window-status-current-format, which allow the format of each window in the status line window list to be controlled using similar # sequences as status-left/right. Nicholas Marriott 2009-11-19 16:22:10 +00:00
  • 8b8a211185 tweak previous; Jason McIntyre 2009-11-19 15:00:32 +00:00
  • 4a38189349 Revert to xterm-keys off by default. It was on as an experiment to see if the option could be removed, but it affects vi, so we have to keep the option, and a conservative default is better. Nicholas Marriott 2009-11-19 14:06:33 +00:00
  • ed781e84ee Tidy up by breaking the # replacement code into a separate function, also add a few comments. Nicholas Marriott 2009-11-19 11:38:54 +00:00
  • ac5b7d518e Don't interpret #() for display-message, it usually doesn't make sense and may leak commands. Nicholas Marriott 2009-11-19 10:22:06 +00:00
  • 8d4eae5662 Missed an unused variable :-/. Nicholas Marriott 2009-11-18 17:03:16 +00:00
  • a78cc98c8b Cleanup by moving various (mostly horrible) little bits handling UTF-8 grid data into functions in a new file, grid-utf8.c, and use sizeof intead of UTF8_DATA. Nicholas Marriott 2009-11-18 17:02:17 +00:00
  • ec48709dc2 +. Nicholas Marriott 2009-11-18 13:56:06 +00:00
  • 8db145da1e Add a per-client log of status line messages displayed while that client exists. A new message-limit session option sets the maximum number of entries and a command, show-messages, shows the log (bound to ~ by default). Nicholas Marriott 2009-11-18 13:16:33 +00:00
  • 68f5c9c72d Mark -n keys with (no prefix) rather than []. Nicholas Marriott 2009-11-18 10:18:25 +00:00
  • 9829cfc8d2 Sync OpenBSD patchset 544: Tiago Cunha 2009-11-18 01:28:43 +00:00
  • 4c2e037046 Sync OpenBSD patchset 543: Tiago Cunha 2009-11-18 01:27:33 +00:00
  • 1c97866a5f Sync OpenBSD patchset 542: Tiago Cunha 2009-11-18 01:25:35 +00:00
  • 063a474fe0 Sync OpenBSD patchset 541: Tiago Cunha 2009-11-18 01:24:33 +00:00
  • a9ca8df8e3 Permit top-bit-set characters to be entered in the status line. They could already be set from the shell and are just passed through when printing (so invisible characters or displaying on terminals with different character sets may cause problems). Nicholas Marriott 2009-11-17 13:30:07 +00:00
  • 67bf0933e2 In choose mode, assign each item a number or lowercase letter from those available and accept that as a shortcut key for the item. Nicholas Marriott 2009-11-17 13:06:11 +00:00
  • 5d7bff4051 A screen can be one cell wide; don't crash if that is the case. Nicholas Marriott 2009-11-16 13:40:45 +00:00
  • 9f6d685c05 I made a complete horlicks of the last change, fix it so it doesn't either lead to a double free or free the item after the end of the array. Nicholas Marriott 2009-11-16 11:15:44 +00:00
  • a7158784f2 Sync OpenBSD patchset 540: Tiago Cunha 2009-11-14 17:57:41 +00:00
  • e35f5b35bd Sync OpenBSD patchset 539: Tiago Cunha 2009-11-14 17:56:39 +00:00
  • fc6a835be8 Sync OpenBSD patchset 538: Tiago Cunha 2009-11-14 17:52:04 +00:00
  • ee9be88946 Sync OpenBSD patchset 537: Tiago Cunha 2009-11-14 17:51:06 +00:00
  • 0bb00a0df3 Sync OpenBSD patchset 536: Tiago Cunha 2009-11-14 17:49:37 +00:00
  • 72bc03ac4c Sync OpenBSD patchset 535: Tiago Cunha 2009-11-14 17:48:39 +00:00
  • 10e05f9867 Tweak a comment and add some spacing. Nicholas Marriott 2009-11-13 19:58:32 +00:00
  • 76ef8770cd Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the command entry structs and a couple of functions to check/set the flags. Nicholas Marriott 2009-11-13 19:53:28 +00:00
  • dafa0f022c Unreachable statement, found by lint. Nicholas Marriott 2009-11-13 18:59:14 +00:00
  • 390472566c Tidy up and fix some types, prompted by lint via deraadt. Nicholas Marriott 2009-11-13 18:13:18 +00:00
  • a18a374d51 imsg_read returns ssize_t not int, pointed out by lint via deraadt. Nicholas Marriott 2009-11-13 18:07:52 +00:00
  • 8e47966225 Destroy panes immediately rather than checking them all every loop. Nicholas Marriott 2009-11-13 17:33:07 +00:00
  • 56447d73c1 Sync OpenBSD patchset 534: Tiago Cunha 2009-11-13 16:59:19 +00:00
  • 0986001908 Sync OpenBSD patchset 533: Tiago Cunha 2009-11-13 16:58:24 +00:00
  • 2bd39071d3 Sync OpenBSD patchset 532: Tiago Cunha 2009-11-13 16:57:21 +00:00
  • ac6b1a817b Sync OpenBSD patchset 531: Tiago Cunha 2009-11-13 16:56:15 +00:00
  • ba832ff2c3 Sync OpenBSD patchset 530: Tiago Cunha 2009-11-13 16:55:10 +00:00
  • 2ec5aca064 Sync OpenBSD patchset 529: Tiago Cunha 2009-11-13 16:54:04 +00:00
  • e8424d333e Sync OpenBSD patchset 528: Tiago Cunha 2009-11-13 16:52:46 +00:00
  • 1b4a76d58f Sync OpenBSD patchset 527: Tiago Cunha 2009-11-13 16:51:49 +00:00
  • 1415eb3dd2 Use winlink_remove() to remove old winlinks when synchronizing grouped sessions rather than doing it manually and not adjusted the reference count. Fixes crash seen by Dan Harnett. Nicholas Marriott 2009-11-13 14:47:31 +00:00
  • 5d397462e4 Zap unused functions, prompted by deraadt. Nicholas Marriott 2009-11-13 07:00:54 +00:00
  • 5ae542e7ee Emulate the ri (reverse index) capability: this allows tmux to at least start on Sun consoles (TERM=sun or sun-color), even if there appear to still be problems on some boxes (my Blade 100 is fine but edd's Blade 1000 shows odd screen corruption). Nicholas Marriott 2009-11-12 08:05:23 +00:00
  • d9deb4b530 Support rxvt-style keys again, but this time: support all the variations, put them in as raw escape sequences rather than fiddling with the values from terminfo, put them /after/ the terminfo values so the latter take precedence. Nicholas Marriott 2009-11-12 08:01:02 +00:00
  • 89763f2ace Rewrite a confusing loop when freeing the arg array on exit and move the check for argv being NULL, prompted by parfait via deraadt. Nicholas Marriott 2009-11-11 18:56:07 +00:00
  • 9df4e7597d Add an explicit zero-length check for UTF-8 input data, prompted by a report from parfait via deraadt. Nicholas Marriott 2009-11-11 18:53:21 +00:00
  • 08a8ccf46b Free the pane bufferevent when the fd is closed (the signal could come before the error callback). Nicholas Marriott 2009-11-11 13:24:42 +00:00
  • 7230fe1648 OS X is still broken, so ask libevent not to use kqueue or poll. Nicholas Marriott 2009-11-11 09:54:07 +00:00
  • 2756437f4b Only need to chmod +x or -x the socket when a client is created, lost or attached, rather than every event loop. Nicholas Marriott 2009-11-11 08:00:42 +00:00
  • 60869fa4c3 Sync OpenBSD patchset 526: Tiago Cunha 2009-11-10 23:34:03 +00:00
  • ba7aa506f3 Sync OpenBSD patchset 525: Tiago Cunha 2009-11-10 23:32:53 +00:00
  • 9817d41947 Sync OpenBSD patchset 524: Tiago Cunha 2009-11-10 23:32:09 +00:00
  • 74e742113d Sync OpenBSD patchset 523: Tiago Cunha 2009-11-10 23:31:21 +00:00
  • e9b357550f Sync OpenBSD patchset 522: Tiago Cunha 2009-11-10 23:30:26 +00:00
  • 38ac9bb414 Sync OpenBSD patchset 521: Tiago Cunha 2009-11-10 23:28:53 +00:00
  • c01816c26d Sync OpenBSD patchset 520: Tiago Cunha 2009-11-10 23:27:57 +00:00
  • 36bb298bfa Sync OpenBSD patchset 519: Tiago Cunha 2009-11-10 23:27:03 +00:00
  • e275bc52f2 Sync OpenBSD patchset 518: Tiago Cunha 2009-11-10 23:26:13 +00:00
  • 15b9946a40 There is no real standard for modifier plus function keys. Previously, tmux output some from rxvt but in other ways did the same as xterm or other terminals, but this is a bit inconsistent. Nicholas Marriott 2009-11-10 18:53:11 +00:00
  • d9961f40bf Don't output rxvtisms either. Nicholas Marriott 2009-11-10 18:48:03 +00:00
  • 05831b52c4 Twiddling the last bit is an rxvtism, so do not support it in the table by default. Nicholas Marriott 2009-11-10 17:59:34 +00:00
  • b92fcf23fd Whoops, this is needed for last commit as well. Nicholas Marriott 2009-11-10 17:41:35 +00:00
  • 38f64b3da3 Lookup key as a named key (eg 'Space') before checking for single character keys, makes C-Space/M-Space etc resolve to the correct key code. Nicholas Marriott 2009-11-10 17:24:43 +00:00
  • 9f47c6083a Don't return 1 unless there was actually a problem (signal/lost server) rather than for all events (normal exit/detach/etc). Nicholas Marriott 2009-11-10 15:47:48 +00:00