Commit Graph

  • 47a5afe5bf Merge branch 'obsd-master' Thomas Adam 2020-06-05 12:01:18 +01:00
  • 03b2998abe Do not take the address of a potentially unaligned member. nicm 2020-06-05 09:35:41 +00:00
  • c908d2039f Fix various confusion about am vs xenl. nicm 2020-06-05 09:32:15 +00:00
  • a06cf900c7 Merge branch 'obsd-master' Thomas Adam 2020-06-05 10:01:22 +01:00
  • 4e5e2c19d0 Now that we mostly only search visible text, the rate limit on repeating search does not seem to be necessary, remove it for the moment. nicm 2020-06-05 07:44:42 +00:00
  • c586208991 Add support for pausing a pane when the output buffered for a control mode client gets too far behind. The pause-after flag with a time is set on the pane with refresh-client -f and a paused pane may be resumed with refresh-client -A. GitHub issue 2217. nicm 2020-06-05 07:33:57 +00:00
  • 976cf6c60f Merge branch 'obsd-master' Thomas Adam 2020-06-05 00:01:19 +01:00
  • d9cd493d09 Reset wrapped flag when clearing or moving lines, GitHub issue 2215. nicm 2020-06-04 21:41:31 +00:00
  • 2154e1f4fb Search marks outside the visible text are not useful, so there is no point in allocating a big buffer to store them - just allocate the visible text size, and ignore any outside. nicm 2020-06-04 21:40:27 +00:00
  • 8b43fcd82b Merge branch 'obsd-master' Thomas Adam 2020-06-04 22:01:17 +01:00
  • c4732af006 Some improvements to performance of searching: nicm 2020-06-04 20:41:57 +00:00
  • c8bddfba2b Merge branch 'obsd-master' Thomas Adam 2020-06-04 18:01:17 +01:00
  • 4403afe29c A } can go on the same line as a command. nicm 2020-06-04 16:06:01 +00:00
  • 81ba6477ff Merge branch 'obsd-master' Thomas Adam 2020-06-04 12:01:20 +01:00
  • 23a3742dc8 Update CHANGES. Nicholas Marriott 2020-06-04 11:42:51 +01:00
  • 4ea3370316 Shorten some long lines. nicm 2020-06-04 10:36:28 +00:00
  • a9bf5367da Correct respawn-* - they don't always use the creation command. nicm 2020-06-04 10:34:40 +00:00
  • dc74d2e054 Make the -no-clear command variants not clear the search marks either. nicm 2020-06-04 10:24:14 +00:00
  • b0a6025897 Merge branch 'obsd-master' Thomas Adam 2020-06-04 10:01:20 +01:00
  • d3c5202f50 Allow strings to span multiple lines - newlines and any leading whitespace are removed, as well as any following comments that couldn't be part of a format. This allows long formats or other strings to be annotated and indented. nicm 2020-06-04 08:30:44 +00:00
  • b3782d2dc8 Instead of using a custom parse function to process {}, treat it as a set of statements and parse with yacc, then convert back to a string as the last step. This means the rules are consistent inside and outside {}, %if and friends work at the right time, and the final result isn't littered with unnecessary newlines. nicm 2020-06-04 07:12:05 +00:00
  • f837dcdd58 Merge branch 'obsd-master' Thomas Adam 2020-06-03 18:01:17 +01:00
  • 3f6af4156f Make paste -p the default for ], GitHub issue 2248. nicm 2020-06-03 16:35:40 +00:00
  • 62c0617d79 Merge branch 'obsd-master' Thomas Adam 2020-06-03 00:01:20 +01:00
  • 3d5decb305 Merge branch 'obsd-master' Thomas Adam 2020-06-02 22:01:20 +01:00
  • 4694e9a2b6 Move the code to set up a padding cell into grid.c. nicm 2020-06-02 20:51:46 +00:00
  • 2a4d4bda2b Allow UTF-8 characters of width 0 to be stored, it is useful to be able to put padding cells in as width 0. nicm 2020-06-02 20:10:23 +00:00
  • f5366ff828 Missing ; in previous. nicm 2020-06-02 19:16:46 +00:00
  • 5fbae8c8c6 Fire copy-pipe command even if there is no text, means it works if it has side effects. nicm 2020-06-02 19:10:26 +00:00
  • ebe866c378 Merge branch 'obsd-master' Thomas Adam 2020-06-02 20:01:18 +01:00
  • 7e501f1993 UTF-8 keys need to be big endian so the size bits are at the top. nicm 2020-06-02 17:17:44 +00:00
  • 049ccb4a4b Merge branch 'obsd-master' Thomas Adam 2020-06-02 14:01:17 +01:00
  • 822ee4e0a6 Fail rather than fatal on UTF-8 width 0. nicm 2020-06-02 11:29:00 +00:00
  • 31a51cae1d Merge branch 'obsd-master' Thomas Adam 2020-06-02 11:29:48 +01:00
  • f3931497f8 Use CLOCK_MONOTONIC for timer measurement and add a timestamp to control mode %output blocks. nicm 2020-06-02 08:17:27 +00:00
  • 563b7331da Remove blocks from queue when pane disappears. nicm 2020-06-01 21:08:05 +00:00
  • 8339702d47 Check the right thing for maximum client buffer size. nicm 2020-06-01 20:58:42 +00:00
  • 9819470058 Change format callback to return value rather than storing it in the entry. nicm 2020-06-01 19:39:25 +00:00
  • 191a836560 Merge branch 'obsd-master' Thomas Adam 2020-06-01 18:01:18 +01:00
  • 674ec410b7 Try without cursor/keypad flags if a key doesn't exist, and limit ctrl key translation to ASCII keys. Fixes send-keys, GitHub issue 2247. nicm 2020-06-01 16:09:35 +00:00
  • 91e40de2da Merge branch 'obsd-master' Thomas Adam 2020-06-01 12:01:20 +01:00
  • a54a88edd6 Instead of sending all data to control mode clients as fast as possible, add a limit of how much data will be sent to the client and try to use it for panes with some degree of fairness. GitHub issue 2217, with George Nachman. nicm 2020-06-01 09:43:00 +00:00
  • 5ef790a6c4 Merge branch 'obsd-master' Thomas Adam 2020-05-29 16:01:19 +01:00
  • 175e45005f Add -i to find-window to ignore case. nicm 2020-05-29 13:42:13 +00:00
  • ce6b3a539d utf8proc_unicode_version is too new. Nicholas Marriott 2020-05-28 08:41:56 +01:00
  • 86159fca82 Merge branch 'obsd-master' Thomas Adam 2020-05-27 16:01:18 +01:00
  • bda2a0282a Fix ASCII keys with send-keys -l. nicm 2020-05-27 14:45:35 +00:00
  • 38ce6adab6 Merge branch 'obsd-master' Thomas Adam 2020-05-27 08:01:19 +01:00
  • f336599a3a Make padding cell a valid character. nicm 2020-05-27 06:23:23 +00:00
  • fd8652ceda Merge branch 'obsd-master' Thomas Adam 2020-05-26 16:01:19 +01:00
  • 2ced370bee Tweak some out of date bits, reported by bcgraham. nicm 2020-05-26 13:19:21 +00:00
  • a4cb700269 Merge branch 'obsd-master' Thomas Adam 2020-05-26 14:02:15 +01:00
  • ff6f2ff6d9 Return new character properly when converting to data. nicm 2020-05-26 12:50:03 +00:00
  • 392b381d1c Apply -n when only one pane in the window. nicm 2020-05-26 09:01:03 +00:00
  • 370f0bb98d Remove leftover debug logging and fix comparison. nicm 2020-05-26 08:56:48 +00:00
  • ca0166f26f Do not try to use the last marked pane if it is invalid. nicm 2020-05-26 08:47:50 +00:00
  • ea610a3119 Pass the stdout file descriptor from the client as well as stdin and use them for control clients directly instead of passing everything via the client. nicm 2020-05-26 08:41:47 +00:00
  • bc2e0cf7ff Remove bad merge. Nicholas Marriott 2020-05-26 08:54:05 +01:00
  • d73fcfc176 Put the fix back for wcwidth() failing. Nicholas Marriott 2020-05-26 08:49:36 +01:00
  • 967e5f8be3 Merge branch 'obsd-master' Thomas Adam 2020-05-26 08:42:55 +01:00
  • fd4d3e8793 Set IUTF8 again when it exists. Nicholas Marriott 2020-05-26 06:15:13 +01:00
  • 6f03e49e68 Use the internal representation for UTF-8 keys instead of wchar_t and drop some code only needed for that. nicm 2020-05-25 18:57:24 +00:00
  • 35779d655d Fix definition of padding cells so they are not extended cells. nicm 2020-05-25 18:55:36 +00:00
  • 49ec074271 Tidy up new UTF-8 code and make it more generic. nicm 2020-05-25 18:19:29 +00:00
  • dc893405e1 Fix some error strings, from Kris Katterjohn. nicm 2020-05-25 18:17:14 +00:00
  • b34af611a5 Merge branch 'obsd-master' Thomas Adam 2020-05-25 18:01:20 +01:00
  • bbfb44e9b2 Make some data types consistent. nicm 2020-05-25 15:02:25 +00:00
  • 32ce468b22 Merge branch 'obsd-master' Thomas Adam 2020-05-25 14:01:19 +01:00
  • 4589297e43 Do not attempt to divide by zero when working out copy position. nicm 2020-05-25 12:12:58 +00:00
  • 26e8e467e8 Include title for the width of the menu. nicm 2020-05-25 11:59:50 +00:00
  • bb5a1925ab Merge branch 'obsd-master' Thomas Adam 2020-05-25 12:01:19 +01:00
  • 3a5219c6d0 Instead of storing all UTF-8 characters in the extended cell which means that 14 bytes are wasted for each character in the BMP, only store characters of three bytes or less in the cell itself and store others (outside the BMP or with combining characters) in a separate global tree. Can reduce grid memory use for heavy Unicode users by around 30%. nicm 2020-05-25 09:32:10 +00:00
  • e16191dbfc Merge branch 'obsd-master' Thomas Adam 2020-05-24 16:01:20 +01:00
  • 14a9fd58d5 Remove leftover call to control_free_offsets and do not use for non-control clients. nicm 2020-05-24 14:45:00 +00:00
  • aeefd585a0 Merge branch 'obsd-master' Thomas Adam 2020-05-24 12:01:21 +01:00
  • 18aab90959 Give control code its own state struct. nicm 2020-05-24 09:40:17 +00:00
  • 6c82982711 Now the tty has a pointer back to the client there is no point (and a bit confusing) in it keeping a copy of the fd as well. Remove it. nicm 2020-05-24 09:13:06 +00:00
  • e71c5efd58 Merge branch 'obsd-master' Thomas Adam 2020-05-22 18:01:20 +01:00
  • 2ac6cc2633 Put headers back how they were. Nicholas Marriott 2020-05-22 17:34:30 +01:00
  • a48cc458a6 Maybe this is better. Nicholas Marriott 2020-05-22 17:27:07 +01:00
  • 1fdacba111 Think Solaris needs term.h here. Nicholas Marriott 2020-05-22 17:24:42 +01:00
  • b3e5a99c8f And tweak again. Nicholas Marriott 2020-05-22 17:22:03 +01:00
  • 6ae26a6b54 Fix utf8proc version logging. Nicholas Marriott 2020-05-22 17:20:35 +01:00
  • 87a59efc94 Log ncurses and utf8proc versions. Nicholas Marriott 2020-05-22 17:14:35 +01:00
  • 033d6472cb FocusIn keys can also update the latest client, like normal keys. nicm 2020-05-22 15:43:38 +00:00
  • a06a0e1392 xterm* can have focus too. nicm 2020-05-22 15:08:38 +00:00
  • d48f0e114e Merge branch 'obsd-master' Thomas Adam 2020-05-22 13:40:33 +01:00
  • 9a0763c3a0 Move client offset stuff into control.c since only control clients will need it. nicm 2020-05-22 11:07:04 +00:00
  • 2420bd8584 spawn.c: fix up bad merge Thomas Adam 2020-05-21 09:02:04 +01:00
  • 40126ee96c Merge branch 'obsd-master' Thomas Adam 2020-05-21 08:55:31 +01:00
  • 31e3f2d530 Support code for control mode flow control: allow clients to have separate offsets (used and acknowleged) into the pane buffers; turn off reading from panes when no clients can accept the data; and add a -A flag to refresh-client to let clients turn receiving a pane on and off. nicm 2020-05-21 07:24:13 +00:00
  • 98a18d064a Fix a regression test, size is not updated until end of event loop. Nicholas Marriott 2020-05-21 08:19:55 +01:00
  • 5ac5cd995e Merge branch 'obsd-master' Thomas Adam 2020-05-20 10:01:19 +01:00
  • 6bde1c1837 Fix a couple more places where the key flags need to be masked off. nicm 2020-05-20 07:11:45 +00:00
  • fa835339fd Merge branch 'obsd-master' Thomas Adam 2020-05-20 08:01:18 +01:00
  • b53e60f4c6 Remove a redundant if statement. nicm 2020-05-20 06:18:22 +00:00
  • 2a9e2b556a Key strings need to include the cursor and keypad flags now since the output key lookup expects them already set. nicm 2020-05-20 06:13:09 +00:00
  • fb9e53ba19 Merge branch 'obsd-master' Thomas Adam 2020-05-19 14:01:17 +01:00
  • e10f5a72ce Add FreeBSD CI, from Jan Beich. Nicholas Marriott 2020-05-19 12:34:34 +01:00
  • 8425084b8a Some other ctrl keys need to be translated with extended keys on. nicm 2020-05-19 10:59:09 +00:00