Add a utmp option if built with utempter, GitHub issue 5657 from Damian Nowak.

This commit is contained in:
Nicholas Marriott
2026-10-09 13:18:05 +01:00
parent 10c744038f
commit b7fd92b782
7 changed files with 81 additions and 17 deletions

17
tmux.1
View File

@@ -5262,6 +5262,23 @@ For example:
set \-s user\-keys[0] "\ee[5;30012\[ti]"
bind User0 resize\-pane \-L 3
.Ed
.It Xo Ic utmp
.Op Ic on | off
.Xc
Maintain utmp records for panes using
.Xr utempter 3 .
The default is on.
Turning this option off asks utempter to remove existing records and prevents
new records from being added.
Turning it on asks utempter to add records for existing panes with running
commands.
Empty panes are not recorded.
Updates to wtmp are performed by
.Xr utempter 3
according to the system configuration; existing history is not erased.
This option has no effect if
.Nm
was built without utempter support.
.It Xo Ic variation\-selector\-always\-wide
.Op Cm on | off
.Xc