CVS: cvs.openbsd.org: src

2024-10-02 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/10/02 05:51:15

Modified files:
usr.bin/tmux   : options-table.c 

Log message:
Add MSYSTEM to default update-environment.



CVS: cvs.openbsd.org: src

2024-10-02 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/10/02 05:48:16

Modified files:
usr.bin/tmux   : tmux.c tmux.h 

Log message:
Add a define for the socket permissions check so it can be overridden
more easily (for Cgywin).



CVS: cvs.openbsd.org: src

2024-10-02 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/10/02 02:06:45

Modified files:
usr.bin/tmux   : input-keys.c 

Log message:
Report shifted keys like S-A as A not as S-A in mode 1 extended keys,
from Stanislav Kljuhhin.



CVS: cvs.openbsd.org: src

2024-10-01 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/10/01 02:01:19

Modified files:
usr.bin/tmux   : screen.c tmux.h window-copy.c window.c 

Log message:
Use global cursor style and colour options for modes instead of default,
GitHub issue 4117.



CVS: cvs.openbsd.org: src

2024-10-01 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/10/01 04:10:29

Modified files:
usr.bin/tmux   : mode-tree.c tmux.1 

Log message:
Add a way to make the preview larger in tree mode, GitHub issue 4124.



CVS: cvs.openbsd.org: src

2024-09-30 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/10/01 00:15:47

Modified files:
usr.bin/tmux   : cmd-send-keys.c input-keys.c server-client.c 
 session.c tmux.h tty-keys.c window.c 

Log message:
Change pasting to bypass the output key processing entirely and write
what was originally received. Fixes problems with pasted text being
interpreted as extended keys reported by Mark Kelly.



CVS: cvs.openbsd.org: src

2024-09-30 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/09/30 02:10:20

Modified files:
usr.bin/tmux   : tmux.h tty-keys.c tty.c 

Log message:
On some Windows terminals, if TIOCWINSZ does not return xpixel and
ypixel (they are zero), if this is the case then try the query escape
sequences. From Dmitry Galchinsky in GitHub issue 4099.



CVS: cvs.openbsd.org: src

2024-09-30 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/09/30 01:54:51

Modified files:
usr.bin/tmux   : job.c popup.c tmux.h 

Log message:
Only use default-shell for popups, return to /bin/sh for run-shell,
if-shell and #() - these have been documented as using /bin/sh for a
long time and scripts rely on it. Pointed out by Gregory Pakosz.



CVS: cvs.openbsd.org: src

2024-09-29 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/09/29 14:05:42

Modified files:
usr.bin/tmux   : colour.c tmux.c 

Log message:
Fix grey colour, from Magnus Gross.



CVS: cvs.openbsd.org: src

2024-09-16 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/09/16 14:46:58

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
Add copy mode commands which were missed when descriptions were added,
from Julian Prein, GitHub issue 4121.



CVS: cvs.openbsd.org: src

2024-09-16 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/09/16 14:38:48

Modified files:
usr.bin/tmux   : input.c tmux.1 

Log message:
Change the behaviour of extended-keys always slightly so that
applications can still enter mode 2 if they want, they just cannot turn
extended keys off entirely. From Stanislav Kljuhhin.



CVS: cvs.openbsd.org: src

2024-09-16 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/09/16 14:28:22

Modified files:
usr.bin/tmux   : options-table.c server-client.c tmux.1 tmux.h 

Log message:
Add a prefix timeout option, from Conor Taylor in GitHub issue 4108.



CVS: cvs.openbsd.org: src

2024-09-11 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/09/11 13:12:33

Modified files:
usr.bin/tmux   : server-client.c 

Log message:
Mouse move keys are not useful as key bindings because we do not turn
them on unless the application requests them. Ignore them so they do not
cause the prefix to be canceled, GitHub issue 4111.



CVS: cvs.openbsd.org: src

2024-08-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/27 01:25:27

Modified files:
usr.bin/tmux   : server-client.c 

Log message:
Do not reset mouse pane if clicked on status line, it may have been set
by a range.



CVS: cvs.openbsd.org: src

2024-08-26 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/26 07:02:15

Modified files:
usr.bin/tmux   : colour.c style.c tty-term.c 

Log message:
Use strtonum instead of atoi.



CVS: cvs.openbsd.org: src

2024-08-26 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/26 01:45:05

Modified files:
usr.bin/tmux   : input-keys.c tty-keys.c 

Log message:
C-h should not be treated specially and represented internally as \b but
as C-h like the other Ctrl keys. Backspace is already handled separately
if it VERASE.



CVS: cvs.openbsd.org: src

2024-08-26 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/26 01:34:40

Modified files:
usr.bin/tmux   : screen-redraw.c 

Log message:
Pass the screen_redraw_ctx struct into more functions instead of
individual arguments (for example for the pane status), from Michael
Grant.



CVS: cvs.openbsd.org: src

2024-08-26 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/26 01:30:46

Modified files:
usr.bin/tmux   : client.c screen-redraw.c server-client.c 
 server.c tmux.h 

Log message:
Client flags was changed to uint64_t a while ago, fix a few cases where
it is still int (do not matter now but will with some new flags). From
Michael Grant.



CVS: cvs.openbsd.org: src

2024-08-26 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/26 01:09:34

Modified files:
usr.bin/tmux   : cmd-copy-mode.c tmux.1 tmux.h window-copy.c 

Log message:
Add copy-mode -d flag to scroll a page down if in copy mode already,
from Michael Grant.



CVS: cvs.openbsd.org: src

2024-08-23 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/23 09:13:58

Modified files:
share/tabset   : Makefile 
Added files:
share/tabset   : gentabset.sh 
Removed files:
share/tabset   : std stdcrt vt100 vt300 

Log message:
Generate tabset files using a script. ok deraadt millert



CVS: cvs.openbsd.org: src

2024-08-23 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/23 09:10:40

Modified files:
lib/libcurses  : terminfo.5 
usr.bin/tset   : tset.1 
usr.bin/tput   : tput.1 

Log message:
Fix some program names that were not expanded correctly when ncurses was
updated and were instead replaced by ?. ok millert



CVS: cvs.openbsd.org: src

2024-08-23 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/23 07:25:39

Modified files:
usr.bin/tmux   : input-keys.c key-string.c tmux.h 

Log message:
Ignore internal function keys if they have not got an entry in the key
table.



CVS: cvs.openbsd.org: src

2024-08-23 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/23 04:19:06

Modified files:
usr.bin/tmux   : layout-set.c 

Log message:
Check for exact match for layout name before looking for a prefix match.



CVS: cvs.openbsd.org: src

2024-08-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/22 03:05:51

Modified files:
usr.bin/tmux   : key-string.c status.c tmux.1 

Log message:
Clear overlay when command prompt is entered. Also fix some spacing in
man page pointed out by jmc.



CVS: cvs.openbsd.org: src

2024-08-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/21 23:39:55

Modified files:
usr.bin/tmux   : key-string.c 

Log message:
Short Ctrl keys like ^A need to be converted to lowercase so they end up
as 'a'|KEYC_CTRL to match the new internal representation. Problem
reported by naddy@.



CVS: cvs.openbsd.org: src

2024-08-20 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/20 23:06:45

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
Mention that load- and save-buffer can use stdin, from Ramon Fischer.



CVS: cvs.openbsd.org: src

2024-08-20 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/20 23:03:13

Modified files:
usr.bin/tmux   : key-bindings.c layout-set.c status.c tmux.1 

Log message:
Add mirrored versions of the main-horizontal and main-vertical layouts where
the main pane is bottom or right instead of top or left, from Sherwyn Sen.



CVS: cvs.openbsd.org: src

2024-08-20 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/20 22:55:57

Modified files:
usr.bin/tmux   : input-keys.c 

Log message:
C-Space and Meta keys should not be translated in mode 1 extended keys.



CVS: cvs.openbsd.org: src

2024-08-20 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/20 22:37:42

Modified files:
usr.bin/tmux   : input.c options-table.c 

Log message:
Set the default for extended-keys back to off because it appears emacs turns
the keys on but does not correctly handle them except in xterm (!). Also fix so
that off takes effect as expected.



CVS: cvs.openbsd.org: src

2024-08-20 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/20 22:17:09

Modified files:
usr.bin/tmux   : format.c input-keys.c input.c key-string.c 
 menu.c mode-tree.c options-table.c popup.c 
 screen-write.c screen.c status.c tmux.1 tmux.h 
 tty-features.c tty-keys.c 

Log message:
Revamp extended keys support to more closely match xterm and support
mode 2 as well as mode 1. From Stanislav Kljuhhin (GitHub issue 4038).

This changes tmux to always request mode 2 from parent terminal, change
to an unambiguous internal representation of keys, and adds an option
(extended-keys-format) to control the format similar to the xterm(1)
formatOtherKeys resource.



CVS: cvs.openbsd.org: src

2024-08-19 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/19 02:31:36

Modified files:
usr.bin/tmux   : input.c 

Log message:
Allow REP to work with Unicode characters, GitHub issue 3687.



CVS: cvs.openbsd.org: src

2024-08-19 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/19 02:29:16

Modified files:
usr.bin/tmux   : tty-keys.c 

Log message:
Both terminators \007 and \033\\ leave the index pointing to the final
character of the terminator, so correct the size calculation to always
add one. GitHub issue 4082.



CVS: cvs.openbsd.org: src

2024-08-04 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/04 03:42:23

Modified files:
usr.bin/tmux   : cmd-parse.y tty.c 

Log message:
Make a little effort to treate CRLF as LF in config files. GitHub issue
3720.



CVS: cvs.openbsd.org: src

2024-08-04 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/04 03:35:30

Modified files:
usr.bin/tmux   : options-table.c tty.c 

Log message:
The Linux console has some bugs with bright colours. It seems likely
that it is emulating them by setting a bright (or bold) flag; however,
when the colour is changed from a bright colour (say SGR 96) to a
non-bright (say SGR 36), the flag is not reset, so the new colour
remains as bright. SGR 39 (default colour) also does not reset, so you
end up with the bright default colour. Work around this by sending SGR 0
when switching away from a bright colour, and disable AX for TERM=linux.
Also make the check for AX simpler and do not check for the op
capability is not actually used. GitHub issue 3976.



CVS: cvs.openbsd.org: src

2024-08-04 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/04 03:01:18

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
-l should be before -r, pointed out by jmc a while ago.



CVS: cvs.openbsd.org: src

2024-08-04 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/08/04 02:53:43

Modified files:
usr.bin/tmux   : mode-tree.c tmux.h window-buffer.c 

Log message:
Adjust the logic when deleting last buffer to better preserve the
selection: if selecting the element below the deleted one fails (because
as the last one), select the one above it instead. From Daniel Mueller,
GitHub issue 4043.



CVS: cvs.openbsd.org: src

2024-07-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/07/22 09:27:42

Modified files:
usr.bin/tmux   : options.c 

Log message:
Expand full array option values if no index is provided, GitHub issue
4051.



CVS: cvs.openbsd.org: src

2024-06-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/06/24 02:30:50

Modified files:
usr.bin/tmux   : cmd-refresh-client.c input.c tmux.1 tmux.h 
 tty-keys.c window.c 

Log message:
Add a way (refresh-client -r) for control mode clients to provide OSC 10
and 11 responses to tmux so they can set the default foreground and
background colours, from George Nachman in GitHub issue 4014.



CVS: cvs.openbsd.org: src

2024-06-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/06/24 02:11:46

Modified files:
usr.bin/tmux   : grid.c 

Log message:
Check the underline style colour against the correct default value again
(it was changed from 0 to 8), from Romain Francoise.



CVS: cvs.openbsd.org: src

2024-05-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/05/24 06:41:24

Modified files:
usr.bin/tmux   : utf8.c 

Log message:
Do not escape $ unless DQ is set, that is the only case where we need to
escape it.



CVS: cvs.openbsd.org: src

2024-05-15 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/05/15 03:59:12

Modified files:
usr.bin/tmux   : client.c job.c tmux.c tmux.h 

Log message:
Use default-shell for command prompt #() and popups as well



CVS: cvs.openbsd.org: src

2024-05-15 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/05/15 02:39:30

Modified files:
usr.bin/tmux   : cmd-confirm-before.c status.c 

Log message:
Fix memory leaks reported by Lu Ming Yin.



CVS: cvs.openbsd.org: src

2024-05-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/05/14 04:11:09

Modified files:
usr.bin/tmux   : server.c tty.c 

Log message:
Add missing time.h to tty.c (from Ismail Donmez), also remove some stray
spaces.



CVS: cvs.openbsd.org: src

2024-05-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/05/14 03:32:37

Modified files:
usr.bin/tmux   : options-table.c tmux.1 window-copy.c 

Log message:
Revert part of the change for GitHub issue 3675 because it does not work
correctly, it was intended to skip lines that are already being searched
as part of a previous wrapped line but in fact is skipping all lines
except the last in wrapped lines.

Also revert the search-wrapped-lines option (I didn't realize it was
intended to work around this).



CVS: cvs.openbsd.org: src

2024-05-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/05/14 01:52:19

Modified files:
usr.bin/tmux   : cmd-queue.c options-table.c tmux.1 

Log message:
Add a command-error hook when a command fails, from Hugh Davenport in
GitHub issue 3973.



CVS: cvs.openbsd.org: src

2024-05-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/05/14 01:40:39

Modified files:
usr.bin/tmux   : options-table.c tmux.1 window-copy.c 

Log message:
Add an option to disable unwrapping lines for searching, from
meanderingprogrammer at gmail dot com, GitHub issue 3975.



CVS: cvs.openbsd.org: src

2024-05-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/05/14 01:33:01

Modified files:
usr.bin/tmux   : cmd-run-shell.c 

Log message:
Restore previous behaviour or writing to stdout if available.



CVS: cvs.openbsd.org: src

2024-05-13 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/05/13 05:45:05

Modified files:
usr.bin/tmux   : arguments.c 

Log message:
Fix memory leak, from Fadi Afani.



CVS: cvs.openbsd.org: src

2024-04-15 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/04/15 02:19:55

Modified files:
usr.bin/tmux   : arguments.c cmd-command-prompt.c 
 cmd-confirm-before.c layout-custom.c 

Log message:
Fixes for memory leaks reported by Lu Ming Yin, fixes from Howard Chu.



CVS: cvs.openbsd.org: src

2024-04-10 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/04/10 01:36:25

Modified files:
usr.bin/tmux   : input.c options-table.c tmux.1 tmux.h 

Log message:
Add an option allow-set-title to forbid applications from changing the
pane title, from someone in GitHub issue 3930.



CVS: cvs.openbsd.org: src

2024-04-10 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/04/10 01:29:15

Modified files:
usr.bin/tmux   : server-client.c 

Log message:
Correct handling of mouse up events (don't ignore all but the last
released button), and always process down event for double click. From
Rudy Dellomas III in GitHub issue 3919.



CVS: cvs.openbsd.org: src

2024-04-10 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/04/10 01:15:21

Modified files:
usr.bin/tmux   : window.c 

Log message:
Do not get muddled and crash if focusing a pane that is exiting,
reported by Saul Nogueras in GitHub issue 3776.



CVS: cvs.openbsd.org: src

2024-04-04 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/04/04 16:44:40

Modified files:
usr.bin/tmux   : server-fn.c 

Log message:
Pick newest session as documented, not oldest, from Magnus Gross.



CVS: cvs.openbsd.org: src

2024-03-26 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/26 04:20:20

Modified files:
usr.bin/tmux   : window-copy.c 

Log message:
Fix selection present check, reported by M Kelly.



CVS: cvs.openbsd.org: src

2024-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/21 06:10:57

Modified files:
usr.bin/tmux   : screen-write.c 

Log message:
Write padding character into the right position.



CVS: cvs.openbsd.org: src

2024-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/21 05:53:11

Modified files:
usr.bin/tmux   : options-table.c tmux.1 

Log message:
Reduce escape-time default to 10 milliseconds, 500 is far too long for
modern terminals and networks. Case made by Kurtis Rader in GitHub issue
3844.



CVS: cvs.openbsd.org: src

2024-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/21 05:51:32

Modified files:
usr.bin/tmux   : cmd-display-menu.c tmux.1 

Log message:
Add -M to always turn mouse on in a menu, GitHub issue 3779.



CVS: cvs.openbsd.org: src

2024-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/21 05:47:55

Modified files:
usr.bin/tmux   : tty-keys.c 

Log message:
Look for feature code 21 for DECSLRM and 28 for DECFRA in the device
attributes and also accept level 1 (there is no hardware with this but
some emulators may use it). Pointed out by James Holderness.



CVS: cvs.openbsd.org: src

2024-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/21 05:32:49

Modified files:
usr.bin/tmux   : tmux.1 window-buffer.c 

Log message:
Use -p for default paste-buffer command in buffer mode, it will only do
anything if the application asked for it. From Gregory Anders.



CVS: cvs.openbsd.org: src

2024-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/21 05:30:42

Modified files:
usr.bin/tmux   : cmd-display-panes.c cmd-resize-pane.c popup.c 
 resize.c server-fn.c tmux.h window.c 

Log message:
Do not notify window-layout-changed if the window is about to be
destroyed (since it may have been freed by the time the notify happens),
from Romain Francoise in GitHub issue 3860.



CVS: cvs.openbsd.org: src

2024-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/21 05:27:18

Modified files:
usr.bin/tmux   : cmd-detach-client.c 

Log message:
Revert detach-client part of last, did not intend this to go in.



CVS: cvs.openbsd.org: src

2024-03-21 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/21 05:26:28

Modified files:
usr.bin/tmux   : cmd-detach-client.c screen.c window-copy.c 

Log message:
Do not consider a selection present if it is empty, from Michael Grant
(GitHub issue 3869). Also a typo fix from GitHub issue 3877.



CVS: cvs.openbsd.org: src

2024-03-13 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/13 05:25:50

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
Make the attach-session description clearer - do not mention creating a
client which is not important, explicitly say the session must exist,
and mention new-session and new-session -A. Prompted by Theo.



CVS: cvs.openbsd.org: src

2024-03-06 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/03/06 14:32:39

Modified files:
usr.bin/tmux   : cmd-split-window.c 

Log message:
Check for the right flag to fix split-window -p, from Bryan Childs.



CVS: cvs.openbsd.org: src

2024-02-13 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/02/13 01:10:23

Modified files:
usr.bin/tmux   : options-table.c proc.c server-fn.c tmux.1 

Log message:
Add two new values for the destroy-unattached option to destroy sessions
only if they are not members of sessions groups, from Mark Huang, GitHub
issue 3806.



CVS: cvs.openbsd.org: src

2024-02-13 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/02/13 01:03:50

Modified files:
usr.bin/tmux   : cmd-paste-buffer.c cmd-pipe-pane.c window.c 
 tmux.h 

Log message:
Do not allow paste into panes which have exited, from Romain Francoise
in GitHub issue 3830.



CVS: cvs.openbsd.org: src

2024-01-22 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2024/01/22 09:34:46

Modified files:
usr.bin/tmux   : style.c 

Log message:
Increase buffer size to avoid truncating styles, GitHub issue 3809 from
Ricardo Bittencourt.



CVS: cvs.openbsd.org: src

2023-12-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/12/27 13:42:01

Modified files:
usr.bin/tmux   : cmd-find-window.c 

Log message:
Only wrap pattern in *s if using a regular expression.



CVS: cvs.openbsd.org: src

2023-12-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/12/27 13:23:59

Modified files:
usr.bin/tmux   : server-client.c tmux.1 

Log message:
Remove flags from the prefix before comparing with the received key so
that modifier keys with flags work correctly, GitHub issue 3764.



CVS: cvs.openbsd.org: src

2023-12-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/12/27 13:20:50

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
groff apparently generates broken output for some common characters in
mdoc, so escaped versions have to be used instead. From Alexis
Hildebrandt in GitHub issue 3762.



CVS: cvs.openbsd.org: src

2023-12-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/12/27 13:17:13

Modified files:
usr.bin/tmux   : screen.c 

Log message:
Always initialize screen mode, GitHub issue 3750 from Ding Fei.



CVS: cvs.openbsd.org: src

2023-12-27 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/12/27 13:13:36

Modified files:
usr.bin/tmux   : input.c 

Log message:
Correctly handle window ops with no pane, GitHub issue 3747.



CVS: cvs.openbsd.org: src

2023-11-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/11/14 13:01:11

Modified files:
usr.bin/tmux   : arguments.c 

Log message:
Don't strdup NULL filename.



CVS: cvs.openbsd.org: src

2023-11-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/11/14 08:59:49

Modified files:
usr.bin/tmux   : arguments.c status.c 

Log message:
Handle NULL client (in config file) when showing a status message; also
copy the file when processing if-shell since it may be freed. GitHub
issue 3746.



CVS: cvs.openbsd.org: src

2023-11-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/11/14 08:38:33

Modified files:
usr.bin/tmux   : tty-features.c 

Log message:
Use SM 2026 for Sync which is more widely supported now.



CVS: cvs.openbsd.org: src

2023-10-23 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/10/23 02:12:00

Modified files:
usr.bin/tmux   : screen-write.c window.c 

Log message:
Unzoom window at start of destroy so it doesn't happen later (when
destroying panes) after the layout has been freed, GitHub issue 3717.



CVS: cvs.openbsd.org: src

2023-10-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/10/17 04:13:54

Modified files:
distrib/sets/lists/base: mi 
distrib/sets/lists/comp: mi 
distrib/sets/lists/man: mi 

Log message:
sync, from sthen



CVS: cvs.openbsd.org: src

2023-10-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/10/17 04:05:46

Modified files:
share/termtypes: termtypes.master 

Log message:
Update termtypes to 6.4-20230424 with local changes.



CVS: cvs.openbsd.org: src

2023-10-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/10/17 03:55:32

Modified files:
usr.bin/tmux   : tty-term.c 

Log message:
Switch to tiparm_s (added in ncurses 6.4-20230424) instead of tparm,
which allows ncurses to validate the capabilities correctly.



CVS: cvs.openbsd.org: src

2023-10-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/10/17 03:52:11

Modified files:
gnu/lib/libreadline: shlib_version 
lib/libcurses  : Caps Makefile SigAction.h capdefaults.c 
 curs_add_wch.3 curs_add_wchstr.3 curs_addch.3 
 curs_addchstr.3 curs_addstr.3 curs_addwstr.3 
 curs_attr.3 curs_beep.3 curs_bkgd.3 
 curs_bkgrnd.3 curs_border.3 curs_border_set.3 
 curs_clear.3 curs_color.3 curs_delch.3 
 curs_deleteln.3 curs_extend.3 curs_get_wch.3 
 curs_get_wstr.3 curs_getch.3 curs_getstr.3 
 curs_getyx.3 curs_in_wch.3 curs_in_wchstr.3 
 curs_inch.3 curs_inchstr.3 curs_initscr.3 
 curs_inopts.3 curs_ins_wch.3 curs_ins_wstr.3 
 curs_insch.3 curs_insstr.3 curs_instr.3 
 curs_inwstr.3 curs_kernel.3 curs_legacy.3 
 curs_mouse.3 curs_move.3 curs_opaque.3 
 curs_outopts.3 curs_overlay.3 curs_pad.3 
 curs_print.3 curs_printw.3 curs_refresh.3 
 curs_scanw.3 curs_scr_dump.3 curs_scroll.3 
 curs_slk.3 curs_termattrs.3 curs_touch.3 
 curs_util.3 curs_window.3 curses.3 curses.h 
 curses.priv.h default_colors.3 define_key.3 
 fifo_defs.h hashed_db.h key_defined.3 
 keybound.3 keyok.3 legacy_coding.3 nc_alloc.h 
 nc_panel.h nc_tparm.h ncurses_cfg.h 
 ncurses_def.h parametrized.h resizeterm.3 
 shlib_version term.5 term.7 term.h term_entry.h 
 termcap.3 termcap.h terminfo.3 terminfo.5 tic.h 
 unctrl.h wresize.3 
lib/libcurses/base: MKkeyname.awk MKlib_gen.sh MKunctrl.awk 
define_key.c key_defined.c keybound.c 
keyok.c legacy_coding.c lib_addch.c 
lib_addstr.c lib_beep.c lib_bkgd.c lib_box.c 
lib_chgat.c lib_clear.c lib_clearok.c 
lib_clrbot.c lib_clreol.c lib_color.c 
lib_colorset.c lib_delch.c lib_delwin.c 
lib_dft_fgbg.c lib_echo.c lib_endwin.c 
lib_erase.c lib_flash.c lib_freeall.c 
lib_getch.c lib_getstr.c lib_hline.c 
lib_immedok.c lib_inchstr.c lib_initscr.c 
lib_insch.c lib_insdel.c lib_insnstr.c 
lib_instr.c lib_isendwin.c lib_leaveok.c 
lib_mouse.c lib_move.c lib_mvwin.c 
lib_newterm.c lib_newwin.c lib_nl.c 
lib_overlay.c lib_pad.c lib_printw.c 
lib_redrawln.c lib_refresh.c lib_restart.c 
lib_scanw.c lib_screen.c lib_scroll.c 
lib_scrollok.c lib_scrreg.c lib_set_term.c 
lib_slk.c lib_slkatr_set.c lib_slkatrof.c 
lib_slkatron.c lib_slkatrset.c lib_slkattr.c 
lib_slkclear.c lib_slkcolor.c lib_slkinit.c 
lib_slklab.c lib_slkrefr.c lib_slkset.c 
lib_slktouch.c lib_touch.c lib_ungetch.c 
lib_vline.c lib_wattroff.c lib_wattron.c 
lib_winch.c lib_window.c nc_panel.c 
resizeterm.c safe_sprintf.c tries.c 
use_window.c version.c vsscanf.c wresize.c 
lib/libcurses/tinfo: MKcaptab.awk MKcaptab.sh MKcodes.awk 
 MKfallback.sh MKkeys_list.sh MKnames.awk 
 access.c add_tries.c alloc_entry.c 
 alloc_ttype.c captoinfo.c comp_error.c 
 comp_expand.c comp_hash.c comp_parse.c 
 comp_scan.c db_iterator.c doalloc.c 
 entries.c free_ttype.c getenv_num.c 
 hashed_db.c home_terminfo.c init_keytry.c 
 lib_acs.c lib_baudrate.c lib_cur_term.c 
 lib_data.c lib_has_cap.c lib_kernel.c 
 lib_longname.c lib_napms.c lib_options.c 
 lib_print.c lib_raw.c lib_setup.c 
 lib_termcap.c lib_termname.c lib_tgoto.c 
 lib_ti.c lib_tparm.c lib_tputs.c 
 lib_ttyflags.c make_keys.c name_match.c 
 parse_entry.c read_entry.c read_termc

CVS: cvs.openbsd.org: src

2023-09-19 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/19 02:35:44

Modified files:
usr.bin/tmux   : screen.c 

Log message:
Fix a couple of mouse mode flag names.



CVS: cvs.openbsd.org: src

2023-09-16 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/16 10:18:29

Modified files:
usr.bin/tmux   : tmux.1 

Log message:
Remove next- and previous-prompt added in error. GitHub issue 3696.



CVS: cvs.openbsd.org: src

2023-09-15 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/15 09:49:05

Modified files:
usr.bin/tmux   : screen-write.c server.c tmux.h tty.c 
 utf8-combined.c utf8.c 

Log message:
Change UTF-8 combining to inspect the previous character at the cursor
position rather than keeping the last character from the input stream,
this is how most terminals work and fixes problems with displaying these
characters in vim. GitHub issue 3600.



CVS: cvs.openbsd.org: src

2023-09-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/15 00:31:49

Modified files:
usr.bin/tmux   : cfg.c cmd-queue.c cmd-source-file.c input.c 
 tmux.1 tmux.h 

Log message:
Add -t to source-file, GitHub issue 3473.



CVS: cvs.openbsd.org: src

2023-09-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/15 00:28:15

Modified files:
usr.bin/tmux   : input.c 

Log message:
Add some more WINOPS and a placeholder for SMGRAPHICS.



CVS: cvs.openbsd.org: src

2023-09-14 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/14 07:01:35

Modified files:
usr.bin/tmux   : screen-write.c 

Log message:
Reset combine flag only if text is actually processed.



CVS: cvs.openbsd.org: src

2023-09-08 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/08 01:05:06

Modified files:
usr.bin/tmux   : tty-keys.c 

Log message:
On second thoughts, do check DA2 for DECFRA and DECSLRM since that will
catch terminals that say they are VT520 even if we can't use DA1
(because of VTE).



CVS: cvs.openbsd.org: src

2023-09-07 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/08 00:52:31

Modified files:
usr.bin/tmux   : format.c tty-keys.c 

Log message:
Use DECSLRM and DECFRA only at level 4 rather than checking the terminal
id.



CVS: cvs.openbsd.org: src

2023-09-07 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/07 04:21:46

Modified files:
usr.bin/tmux   : tty-keys.c 

Log message:
Use DECSLRM and DECFRA on terminals pretending to be VT520 or VT525 as
well as VT420.



CVS: cvs.openbsd.org: src

2023-09-07 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/07 01:19:21

Modified files:
usr.bin/tmux   : tty-keys.c 

Log message:
Accept 65 for VT525 as well.



CVS: cvs.openbsd.org: src

2023-09-04 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/04 02:01:43

Modified files:
usr.bin/tmux   : window-copy.c 

Log message:
Skip wrapped lines in top level search loop because they will be
combined in the inner loop (in window_copy_search_rl_regex and the
others), avoids searching the same text multiple times. Also add a line
length limit for regex searches. GitHub issue 3675.



CVS: cvs.openbsd.org: src

2023-09-03 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/03 04:22:03

Modified files:
usr.sbin/relayd: relay.c 

Log message:
Use EVBUFFER_DATA instead of reaching into struct evbuffer. ok tb



CVS: cvs.openbsd.org: src

2023-09-03 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/03 04:18:18

Modified files:
usr.sbin/httpd : server.c 

Log message:
Use EVBUFFER_DATA instead of reaching into struct evbuffer. ok tb



CVS: cvs.openbsd.org: src

2023-09-02 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/02 14:03:10

Modified files:
usr.bin/tmux   : server-client.c tmux.h tty-keys.c tty.c 

Log message:
Request terminal colours again on SIGWINCH but at most once every 30
seconds, GitHub issue 3582.



CVS: cvs.openbsd.org: src

2023-09-02 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/02 03:17:23

Modified files:
usr.bin/tmux   : tmux.1 tmux.h tty-features.c tty-term.c tty.c 

Log message:
Setulc only does RGB colour so add Setulc1 to do non-RGB colours, GitHub
issue 3627.



CVS: cvs.openbsd.org: src

2023-09-02 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/02 02:38:38

Modified files:
usr.bin/tmux   : session.c 

Log message:
Set visited flag on last windows when linking session.



CVS: cvs.openbsd.org: src

2023-09-01 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/01 12:43:54

Modified files:
usr.bin/tmux   : utf8-combined.c 

Log message:
Only compare the actual size of the UTF-8 character, not all of it.



CVS: cvs.openbsd.org: src

2023-09-01 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/01 10:40:38

Modified files:
usr.bin/tmux   : cmd-capture-pane.c 

Log message:
Add missing -T to getopt string.



CVS: cvs.openbsd.org: src

2023-09-01 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/01 10:01:55

Modified files:
usr.bin/tmux   : screen-write.c 

Log message:
Clear combine flag when a non-UTF-8 set of characters is encountered.



CVS: cvs.openbsd.org: src

2023-09-01 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/09/01 08:29:11

Modified files:
usr.bin/tmux   : Makefile screen-write.c server.c tmux.h utf8.c 
 window-copy.c 
Added files:
usr.bin/tmux   : utf8-combined.c 

Log message:
Rewrite combined character handling to be more consistent and to support
newer Unicode combined characters (which we have to "know" are combined
since they are not width zero). GitHub issue 3600.



  1   2   3   4   5   6   7   8   9   10   >