From bf327798d51d1afd853cd8b64c7e3501e2ac538d Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 4 Apr 2026 11:48:00 +0000 Subject: [PATCH] Document control ranges, from Dane Jensen. --- usr.bin/tmux/tmux.1 | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index 67ad444a0fc..de23b3396c6 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.1044 2026/04/03 09:14:27 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.1045 2026/04/04 11:48:00 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 3 2026 $ +.Dd $Mdocdate: April 4 2026 $ .Dt TMUX 1 .Os .Sh NAME @@ -5795,8 +5795,13 @@ and a location suffix, one of the following: .It Li "ScrollbarSlider" Ta "the scrollbar slider" .It Li "ScrollbarUp" Ta "above the scrollbar slider" .It Li "ScrollbarDown" Ta "below the scrollbar slider" +.It Li "ControlN" Ta "on control range N" .El .Pp +See the +.Sx STYLES +section for information on control ranges. +.Pp The following mouse events are available: .Bl -column "MouseDown1" "MouseDrag1" "WheelDown" -offset indent .It Li "WheelUp" Ta "WheelDown" Ta "" @@ -6609,6 +6614,7 @@ replaces the previous saved default). .Ic range=window|X , .Ic range=pane|X , .Ic range=user|X , +.Ic range=control|N , .Ic norange .Xc Mark a range for mouse events in the @@ -6655,6 +6661,19 @@ will be available in the format variable. .Ql X must be at most 15 bytes in length. +.Pp +.Ic range=control|N +is a set of ranges for users to define custom behavior. +.Ql N +can be 0 through 9. +When a mouse event occurs in the +.Ic range=control|N +range, the +.Ql ControlN +key binding is triggered. +See +.Sx MOUSE SUPPORT +for details. .It Ic set\-default Set the current colours and attributes as the default, overwriting any previous default.