Commit Graph

  • fd2ef18a70 Rewrite xterm-keys code (both input and output) so that works (doesn't always output the same modifiers, accepts all the possible input keys) and is more understandable. Nicholas Marriott 2009-10-26 17:46:33 +00:00
  • c92c2bfb10 Support the (mostly new) function key+modifier caps (kIC-kIC7). Most of these will be caught (soon) by the xterm keys code in xterm itself but some other descriptions such as rxvt define them as well. Nicholas Marriott 2009-10-26 16:00:51 +00:00
  • 382aa8f6de RHS spacing. Nicholas Marriott 2009-10-26 15:07:52 +00:00
  • a460e1ada3 Fix in IE6. Nicholas Marriott 2009-10-26 15:04:45 +00:00
  • aaef0d316f Spacing tweaks. Nicholas Marriott 2009-10-26 14:53:30 +00:00
  • bbca6fe5b0 On second thoughts, drop the rxvt output entirely. Nicholas Marriott 2009-10-26 14:30:57 +00:00
  • 5cce40d4c3 Set the output code for ctrl+cursor keys correctly, and disable (comment) rxvt-style output. Nicholas Marriott 2009-10-26 14:27:13 +00:00
  • d0aa883e07 As we always put the cursor keys into application mode, assume keys sent with CSI have ctrl. Nicholas Marriott 2009-10-26 13:58:02 +00:00
  • fcd3b260ac Tidy up table. Nicholas Marriott 2009-10-26 13:41:46 +00:00
  • a0ec4a11ee Drop INPUTKEY_CTRL and just handle it as part of the table. Nicholas Marriott 2009-10-26 13:34:26 +00:00
  • 25d2000625 Add or fix some comments. Nicholas Marriott 2009-10-26 13:29:24 +00:00
  • b3604dcf83 Tidy up table. Nicholas Marriott 2009-10-26 13:22:30 +00:00
  • db4452d307 Rename keypad keys to something more useful. Nicholas Marriott 2009-10-26 13:13:33 +00:00
  • 10a656eedb Remove the xterm-keys code which is broken (a replacement is coming but some more cleanup is needed first). Nicholas Marriott 2009-10-26 13:02:53 +00:00
  • 76bb6d6138 Add missing license. Tiago Cunha 2009-10-25 22:16:55 +00:00
  • 3c9619bb0a Don't try to continue processing a client if the session has been destroyed. Nicholas Marriott 2009-10-25 22:00:15 +00:00
  • 2536ea12cb +confirm-before. Nicholas Marriott 2009-10-25 21:58:05 +00:00
  • cb3b0e661d Add or clarify licenses where appropriate. Nicholas Marriott 2009-10-25 21:45:26 +00:00
  • 48b6d18e7f Remove -d from tmux.1 as well. Nicholas Marriott 2009-10-25 21:12:15 +00:00
  • 3a7636ff0f Remove the -d flag to tmux and just use op/AX to detect default colours. Nicholas Marriott 2009-10-25 21:11:21 +00:00
  • 2cee0139e4 +. Nicholas Marriott 2009-10-25 18:23:14 +00:00
  • 5bed597e61 +time.h. Nicholas Marriott 2009-10-25 17:51:07 +00:00
  • 132485a660 Sync OpenBSD patchset 444: Tiago Cunha 2009-10-25 10:42:56 +00:00
  • d55ee38c7f Sync OpenBSD patchset 443: Tiago Cunha 2009-10-25 10:42:08 +00:00
  • e214ea1c59 Update. Tiago Cunha 2009-10-25 10:41:25 +00:00
  • 85ae64b981 Sync OpenBSD patchset 442: Tiago Cunha 2009-10-25 10:41:03 +00:00
  • 4a87cef46f Sync OpenBSD patchset 441: Tiago Cunha 2009-10-25 10:39:48 +00:00
  • 8c00dc2b6b Mustn't forget this. Nicholas Marriott 2009-10-25 08:14:56 +00:00
  • 38aa9a447a Much improved web page from Mike Putnam. Nicholas Marriott 2009-10-25 08:14:34 +00:00
  • 6dc796bb29 Update. Nicholas Marriott 2009-10-25 08:13:13 +00:00
  • 7b4f0398c3 [ is a punctuation character and should be escaped with Ql. Although the current groff version we have seems to handle it fine, other versions are not so tolerant. Nicholas Marriott 2009-10-25 01:10:57 +00:00
  • d8e566d0e9 cc -> $(CC) Nicholas Marriott 2009-10-24 22:02:18 +00:00
  • 385236e967 Bring a comment into line with reality. Nicholas Marriott 2009-10-24 21:18:33 +00:00
  • df818c1b69 -a option to kill all except current pane. From Tiago Cunha, thanks! Nicholas Marriott 2009-10-24 10:12:39 +00:00
  • 5820efa513 Sync OpenBSD patchset 440: Tiago Cunha 2009-10-23 17:53:16 +00:00
  • e05fe0ba05 Sync OpenBSD patchset 439: Tiago Cunha 2009-10-23 17:51:57 +00:00
  • 134a33f6e0 Adjust OpenBSD patchset 438 to the portable version. Tiago Cunha 2009-10-23 17:51:02 +00:00
  • cc9ef11985 Sync OpenBSD patchset 438: Tiago Cunha 2009-10-23 17:49:47 +00:00
  • 9ad2347258 Sync OpenBSD patchset 437: Tiago Cunha 2009-10-23 17:41:20 +00:00
  • dbefea339f Sync OpenBSD patchset 436: Tiago Cunha 2009-10-23 17:40:23 +00:00
  • 9260888d1c Fix CVS keyword. Tiago Cunha 2009-10-23 17:38:42 +00:00
  • eaa188bb63 Sync OpenBSD patchset 435: Tiago Cunha 2009-10-23 17:37:41 +00:00
  • dc8b7d6b03 Sync OpenBSD patchset 434: Tiago Cunha 2009-10-23 17:33:26 +00:00
  • 84392ffc0d Sync OpenBSD patchset 433: Tiago Cunha 2009-10-23 17:32:26 +00:00
  • c6828bf32b Sync OpenBSD patchset 432: Tiago Cunha 2009-10-23 17:28:29 +00:00
  • 31552722a8 Sync OpenBSD patchset 431: Tiago Cunha 2009-10-23 17:27:40 +00:00
  • d7d4d7830b Sync OpenBSD patchset 430: Tiago Cunha 2009-10-23 17:26:40 +00:00
  • dbf2351d3a Sync OpenBSD patchset 429: Tiago Cunha 2009-10-23 17:25:51 +00:00
  • 9731625230 Sync OpenBSD patchset 428: Tiago Cunha 2009-10-23 17:24:57 +00:00
  • a572533c89 Sync OpenBSD patchset 427: Tiago Cunha 2009-10-23 17:23:52 +00:00
  • 8ec8d1f32a Sync OpenBSD patchset 426: Tiago Cunha 2009-10-23 17:22:39 +00:00
  • 21b23f8e54 Sync OpenBSD patchset 424: Tiago Cunha 2009-10-23 17:21:34 +00:00
  • fce889235c Sync OpenBSD patchset 422: Tiago Cunha 2009-10-23 17:17:20 +00:00
  • f41a3914a5 Sync OpenBSD patchset 421: Tiago Cunha 2009-10-23 17:16:25 +00:00
  • c643ac4827 Sync OpenBSD patchset 420: Tiago Cunha 2009-10-23 17:13:10 +00:00
  • 97e02eae7d Sync OpenBSD patchset 419: Tiago Cunha 2009-10-23 17:11:26 +00:00
  • 516bfe7ba3 Sync OpenBSD patchset 418: Tiago Cunha 2009-10-23 17:10:00 +00:00
  • 9463492ac1 Sync OpenBSD patchset 417: Tiago Cunha 2009-10-23 17:09:21 +00:00
  • 2f14ef61ff Sync OpenBSD patchset 416: Tiago Cunha 2009-10-23 17:08:30 +00:00
  • 2e39ab59d7 Sync OpenBSD patchset 415: Tiago Cunha 2009-10-23 17:07:18 +00:00
  • ac4e4a2b6c Sync OpenBSD patchset 414: Tiago Cunha 2009-10-23 17:06:23 +00:00
  • 13d1df659f Sync OpenBSD patchset 413: Tiago Cunha 2009-10-23 17:03:48 +00:00
  • c2b8f3b55a Support the bright fg/bg colour SGR 90-97 and 100-107. Nicholas Marriott 2009-10-23 15:48:39 +00:00
  • 1f22a199fb Redraw checks have to after handling input or pane redraw flags set by key presses will not be acted on. Nicholas Marriott 2009-10-22 21:01:52 +00:00
  • 9c40a4edc5 The client buffers have to be checked after every event in order to catch the escape timers and properly reset the cursor. Nicholas Marriott 2009-10-22 20:04:21 +00:00
  • eddcc3dfa9 Split the server code handling clients, jobs and windows off into separate files from server.c (merging server-msg.c into the client file) and rather than iterating over each set after poll(), allow a callback to be specified when the fd is added and just walk once over the returned pollfds calling each callback where needed. Nicholas Marriott 2009-10-22 19:41:51 +00:00
  • fd35b6f836 Only redraw the pane when changing mode, not the entire window. Nicholas Marriott 2009-10-22 12:30:00 +00:00
  • eb0c33cba4 Merge prepare_cmd into main as it is short and only called once. Nicholas Marriott 2009-10-22 10:04:07 +00:00
  • 284b94662a Tidy identify message send into a separate function. Nicholas Marriott 2009-10-21 21:11:55 +00:00
  • d69b364b5f Don't try to unsuspend a client if it isn't suspended. Nicholas Marriott 2009-10-21 20:16:40 +00:00
  • 90ad041fa5 Client tidying: get rid of client_ctx struct in favour of two variables in client.c, and move the functions in client-fn.c into other files. Nicholas Marriott 2009-10-21 20:11:47 +00:00
  • 59e667906f Unused variable. Nicholas Marriott 2009-10-21 19:27:09 +00:00
  • a22c06a2d6 Remove unused function. Nicholas Marriott 2009-10-21 18:20:16 +00:00
  • 9a4855295b Nuke dead store. Nicholas Marriott 2009-10-21 18:12:31 +00:00
  • dd46f634fe Now we are correctly not redrawing the whole pane on linefeed, redo the last-cursor-position code to move to the right position when panes reach EOL. Nicholas Marriott 2009-10-21 16:52:30 +00:00
  • af2b0f452c Tweak descriptions for up/down pane to be clearer. Nicholas Marriott 2009-10-21 13:48:27 +00:00
  • 9b5da97e6f Don't redraw the scroll region on linefeed/reverse index unless it is necessary (the cursor is at the bottom/top). Should fix slow cursor movement when using vi in a pane spotted by pirofti@. Nicholas Marriott 2009-10-21 13:42:44 +00:00
  • 683ddbc466 Some terminals don't correctly clear their let's-wrap flag after changing the scroll region (which moves the cursor to 0,0). This means that if the cursor was at the edge of the screen, any further output after scroll region change incorrectly causes a line wrap. Add a workaround to move the cursor to position 0 if it is at the screen edge before changing scroll region. Nicholas Marriott 2009-10-21 09:36:53 +00:00
  • 4afecbe400 Getting the read and write ends of the pipe the right way round is usually recommended. DOH. Nicholas Marriott 2009-10-21 07:37:11 +00:00
  • 7825871d6a Getting the read and write ends of the pipe the right way round is usually recommended. DOH. Nicholas Marriott 2009-10-21 07:24:23 +00:00
  • bb625a76d9 +. Nicholas Marriott 2009-10-21 07:19:59 +00:00
  • 9afb0d739e %zu not %u, doh. Nicholas Marriott 2009-10-20 22:17:33 +00:00
  • 6f2169037e Sort out stdout before stdin/stderr in case the stdout side of the pipe got one of their fds. Nicholas Marriott 2009-10-20 22:15:32 +00:00
  • 480f5d3184 Correctly nuke the EOL $ marker when scrolling, reported by martynas@, thanks. Nicholas Marriott 2009-10-20 21:35:25 +00:00
  • 1af09d6330 Try to reduce the UTF-8 mess. Nicholas Marriott 2009-10-20 19:18:28 +00:00
  • 62f234ce3b UTF-8 combined character fixes. Nicholas Marriott 2009-10-20 17:33:33 +00:00
  • 387f4d42cc Move the check for whether to force a line wrapper lower down into the tty code where it has access to the tty width, which is what should have been checked. Nicholas Marriott 2009-10-20 16:32:23 +00:00
  • d1e6388fed Nuke stray blank line. Nicholas Marriott 2009-10-20 14:22:57 +00:00
  • b027aa103c +. Nicholas Marriott 2009-10-20 14:22:17 +00:00
  • 2afe395ff2 Stop updating the screen when not in output mode, stops copy mode getting confused. Nicholas Marriott 2009-10-19 13:18:13 +00:00
  • 59269a431b +. Nicholas Marriott 2009-10-17 15:58:52 +00:00
  • daa26079ee Always move the cursor position on !xenl terminals, since there is no invisible last cursor position. Nicholas Marriott 2009-10-17 08:35:38 +00:00
  • fe26b5d25f Don't print wide characters at screen width - 1. Matches uterm behaviour and is probably a better idea anyway. Nicholas Marriott 2009-10-17 08:32:18 +00:00
  • 43d62c1ae3 Instead of having a complicated check to see if the cursor is in the last position to avoid an explicit wrap, actually move it there. Nicholas Marriott 2009-10-17 08:24:46 +00:00
  • 70355021d8 When checking whether the region will scroll and the cursor position is thus unsuitable for using CUD/CUU, check the current cursor position not the target position. Nicholas Marriott 2009-10-16 19:09:40 +00:00
  • c8f2584d87 +. Nicholas Marriott 2009-10-15 20:48:51 +00:00
  • 24d7cf6618 Sync OpenBSD patchset 412: Tiago Cunha 2009-10-15 20:10:28 +00:00
  • 1fdf489cae Turn off stupid warnings when using Sun CC. Nicholas Marriott 2009-10-15 08:15:06 +00:00
  • 0614ca434a Fill in the tty name in SunOS's forkpty compat, and use it in osdep_getname. From Todd Carson. Nicholas Marriott 2009-10-15 07:11:25 +00:00
  • dba0d54cf5 The pane pty name isn't useful for anything so show the pane number instead. Nicholas Marriott 2009-10-15 07:05:38 +00:00