Commit Graph

  • 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
  • ef45c1c65b +. Nicholas Marriott 2009-11-10 15:33:31 +00:00
  • 6609093625 Just ignore tty fd errors rather than dying, stops the server dying if the session is disconnected abrubtly (eg ssh ~.). Nicholas Marriott 2009-11-09 22:50:29 +00:00
  • c202377859 +. Nicholas Marriott 2009-11-09 20:03:31 +00:00
  • 591fa23f6e The input key should be a u_char. Fixes top-bit-set input problem reported by ajacoutot@. Nicholas Marriott 2009-11-09 14:40:06 +00:00
  • daf150c38d Constify buf. Nicholas Marriott 2009-11-09 11:45:10 +00:00
  • 34b4c2e607 Sync OpenBSD patchset 517: Tiago Cunha 2009-11-08 23:35:53 +00:00
  • dcb85fe4b1 Sync OpenBSD patchset 516: Tiago Cunha 2009-11-08 23:34:47 +00:00
  • 8fe9ecae05 Sync OpenBSD patchset 515: Tiago Cunha 2009-11-08 23:33:57 +00:00
  • 946337484e Sync OpenBSD patchset 514: Tiago Cunha 2009-11-08 23:33:17 +00:00
  • 181e1cc711 Sync OpenBSD patchset 513: Tiago Cunha 2009-11-08 23:32:39 +00:00
  • f18b224983 Sync OpenBSD patchset 512: Tiago Cunha 2009-11-08 23:30:42 +00:00
  • 7d288e7fd8 Sync OpenBSD patchset 511: Tiago Cunha 2009-11-08 23:29:34 +00:00
  • fb22aaf87f Sync OpenBSD patchset 510: Tiago Cunha 2009-11-08 23:28:40 +00:00
  • 5ac6ea61bd Sync OpenBSD patchset 509: Tiago Cunha 2009-11-08 23:27:58 +00:00
  • 66957412d5 Sync OpenBSD patchset 508: Tiago Cunha 2009-11-08 23:26:56 +00:00
  • ac6092c27f Sync OpenBSD patchset 507: Tiago Cunha 2009-11-08 23:24:59 +00:00
  • 81336d6bb0 Make it compile on the portable version. Tiago Cunha 2009-11-08 23:23:36 +00:00
  • ab38d91913 Sync OpenBSD patchset 506: Tiago Cunha 2009-11-08 23:22:24 +00:00
  • 915031b049 Sync OpenBSD patchset 505: Tiago Cunha 2009-11-08 23:12:35 +00:00
  • 02438c01b7 Sync OpenBSD patchset 504: Tiago Cunha 2009-11-08 23:11:23 +00:00
  • bee17719d8 Sync OpenBSD patchset 503: Tiago Cunha 2009-11-08 23:09:36 +00:00
  • 0cd4f4e321 Sync OpenBSD patchset 502: Tiago Cunha 2009-11-08 23:08:12 +00:00
  • 3acb995ef3 Sync OpenBSD patchset 501: Tiago Cunha 2009-11-08 23:07:14 +00:00
  • 40b6941c0f Sync OpenBSD patchset 500: Tiago Cunha 2009-11-08 23:06:25 +00:00
  • 142962742c Sync OpenBSD patchset 499: Tiago Cunha 2009-11-08 23:05:36 +00:00
  • 2df0882722 Sync OpenBSD patchset 498: Tiago Cunha 2009-11-08 23:02:56 +00:00
  • 70b2f1981e Sync OpenBSD patchset 497: Tiago Cunha 2009-11-08 23:00:44 +00:00
  • cb0bf6a043 Sync OpenBSD patchset 496: Tiago Cunha 2009-11-08 22:59:53 +00:00
  • 971a7b2fe0 Sync OpenBSD patchset 495: Tiago Cunha 2009-11-08 22:58:38 +00:00
  • 7851bb81f5 Sync OpenBSD patchset 494: Tiago Cunha 2009-11-08 22:56:54 +00:00
  • 53ef4c2bab Sync OpenBSD patchset 493: Tiago Cunha 2009-11-08 22:56:04 +00:00
  • 5116aaa51a Sync OpenBSD patchset 492: Tiago Cunha 2009-11-08 22:53:13 +00:00
  • e41055c5aa Adjust recent libevent changes to the portable version. Tiago Cunha 2009-11-08 22:51:34 +00:00
  • dd36982ad5 Sync OpenBSD patchset 491: Tiago Cunha 2009-11-08 22:40:36 +00:00
  • f98d13e7dc Don't try enable/disable the event if the window pane is dead (fd == -1), as the event will have been freed. Nicholas Marriott 2009-11-06 10:42:06 +00:00
  • bed8153ba0 Clear to the end of the screen from the right starting point when drawing line-by-line (in panes or if ed not supported). Fixes problem spotted by Frank Terbeck. Nicholas Marriott 2009-11-05 22:35:28 +00:00
  • 297ebb1160 Old xterm F1-F4 are \033O_P not \033[O_P. Nicholas Marriott 2009-11-05 19:35:16 +00:00
  • ff55eb5bfa Unused variable. Aargh. Nicholas Marriott 2009-11-05 19:32:34 +00:00
  • 80e0158112 Switch the tty key tree over to an (unbalanced) ternary tree which allows partial matches to be done (they wait for further data or a timer to expire, like a naked escape). Nicholas Marriott 2009-11-05 19:29:41 +00:00
  • 5ce49941fb Working on 1.2. Tiago Cunha 2009-11-05 13:18:19 +00:00
  • 09c34be825 Use %%VERSION%% so the Makefile can replace it by VERSION. Tiago Cunha 2009-11-05 13:13:19 +00:00
  • 09c558685a This commit was manufactured by cvs2svn to create tag 'TMUX_1_1'. 1.1 no_author 2009-11-05 12:35:48 +00:00
  • e4b743cced Update CHANGES, and NOTES for the 1.1 release. Tiago Cunha 2009-11-05 12:35:47 +00:00
  • 9128b7df7f Bump VERSION. Tiago Cunha 2009-11-05 12:32:46 +00:00
  • 90d4cbe67e Prepare the tree for the 1.1 release. Tiago Cunha 2009-11-05 12:30:55 +00:00
  • 05855393f0 key_string_lookup_key uses a static buffer, so copy its output into the working buffer before calling the command print function which can also use it (eg send-keys). Nicholas Marriott 2009-11-05 12:04:50 +00:00
  • a790e16fa2 Key flags are only used for initialisation so they are not needed in the main tty_key struct. Nicholas Marriott 2009-11-05 10:44:36 +00:00
  • 25c604fb1c EVLOOP_ONCE takes care of the wakeup, so no need to call event_loopexit(NULL). Nicholas Marriott 2009-11-05 08:50:32 +00:00
  • 38e13942ac Now all timers are events, there is no longer any need to wake up every 50 ms - only wake up when an event happens. Nicholas Marriott 2009-11-05 08:48:15 +00:00
  • b58bf49e91 Switch tty key input over to happen on a read event. This is a bit more complicated because of escape input, but in that case instead of processing a key immediately, schedule a timer and reprocess the bufer when it expires. Nicholas Marriott 2009-11-05 08:45:08 +00:00
  • 80444436f3 Convert the key repeat timer to an event. Nicholas Marriott 2009-11-05 00:05:00 +00:00
  • 44d6a2c435 Change window name change to use a timer event rather than a gettimeofday() check every loop. Nicholas Marriott 2009-11-04 23:54:57 +00:00
  • 946ed97273 Move status timer check into the global once-per-second timer, this could maybe be done better but one every second is better than once every 50 ms. Nicholas Marriott 2009-11-04 23:42:51 +00:00
  • b1264a7416 Use timeout events for the identify and message timers. Nicholas Marriott 2009-11-04 23:29:42 +00:00
  • b3c4956efe Don't reenlist the client imsg event every loop, instead have a small function to it and call it after the event triggers or after a imsg is added. Nicholas Marriott 2009-11-04 23:12:43 +00:00
  • 625348122c Sync OpenBSD patchset 490: Tiago Cunha 2009-11-04 23:12:32 +00:00
  • 27c2b98f5f Sync OpenBSD patchset 489: Tiago Cunha 2009-11-04 23:10:43 +00:00
  • 344a241c28 Sync OpenBSD patchset 488: Tiago Cunha 2009-11-04 23:09:48 +00:00
  • fdda6ef8bd Adjust OpenBSD patchset 487 to the portable version, and while there drop malloc_options on DragonFlyBSD, and FreeBSD. Tiago Cunha 2009-11-04 23:09:09 +00:00
  • 6a6a42aa3a It would help if I read my own comments... make alt keys work again by sending alt AND the key not alt instead of it. Nicholas Marriott 2009-11-04 23:00:22 +00:00
  • 862fe15c32 Move some common code into a function. Nicholas Marriott 2009-11-04 22:57:49 +00:00
  • c78426f033 Sync OpenBSD patchset 487: Tiago Cunha 2009-11-04 22:49:27 +00:00
  • fde36fccc3 Tell the client to exit on configuration file error. Nicholas Marriott 2009-11-04 22:47:34 +00:00
  • 9e208584ed Sync OpenBSD patchset 486: Tiago Cunha 2009-11-04 22:47:29 +00:00
  • 5be38f2b3a Sync OpenBSD patchset 485: Tiago Cunha 2009-11-04 22:46:25 +00:00
  • 5bebbd81d7 Bye-bye buffer*.c. Nicholas Marriott 2009-11-04 22:44:53 +00:00
  • b7fc4f3760 Sync OpenBSD patchset 484: Tiago Cunha 2009-11-04 22:44:01 +00:00
  • a02c7e804c Convert the window pane (pty master side) fd over to use a bufferevent. Nicholas Marriott 2009-11-04 22:43:11 +00:00
  • bbad75fb6c Sync OpenBSD patchset 483: Tiago Cunha 2009-11-04 22:42:31 +00:00
  • 06ffed3216 Call event_init() before loading the config file, since potentially it could set up events. Nicholas Marriott 2009-11-04 22:40:36 +00:00
  • a090b78e8d Sync OpenBSD patchset 482: Tiago Cunha 2009-11-04 22:39:20 +00:00
  • 0a4d830ee1 Sync OpenBSD patchset 481: Tiago Cunha 2009-11-04 22:38:16 +00:00
  • f3b4b60aa8 Sync OpenBSD patchset 480: Tiago Cunha 2009-11-04 22:37:18 +00:00
  • 91ad830c88 Switch window pane pipe redirect fd over to a bufferevent. Nicholas Marriott 2009-11-04 22:02:38 +00:00
  • 7342615c7d Switch tty fds over to a bufferevent. Nicholas Marriott 2009-11-04 21:47:42 +00:00
  • abb728684b Add back JOB_PERSIST checks that got lost. Nicholas Marriott 2009-11-04 21:10:49 +00:00
  • 4d6091379b Switch jobs over to use a bufferevent. Nicholas Marriott 2009-11-04 21:04:43 +00:00
  • ea8c8c5f33 A couple of minor cosmetic changes. Nicholas Marriott 2009-11-04 20:59:22 +00:00