Document show-options.

This commit is contained in:
Nicholas Marriott 2008-06-16 06:33:50 +00:00
parent 1d0810547f
commit a8e3e989dd
4 changed files with 21 additions and 7 deletions

1
TODO
View File

@ -75,7 +75,6 @@
- activity/bell should be per-window not per-link? what if it is cur win in
session not being watched?
- man page:
show-options
set-window-option
show-window-options
explanation of -t format

View File

@ -1,4 +1,4 @@
/* $Id: cmd-set-option.c,v 1.27 2008-06-15 08:01:54 nicm Exp $ */
/* $Id: cmd-set-option.c,v 1.28 2008-06-16 06:33:50 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -44,7 +44,7 @@ struct cmd_set_option_data {
const struct cmd_entry cmd_set_option_entry = {
"set-option", "set",
"[-t target-window] option value",
"[-t target-session] option value",
0,
NULL,
cmd_set_option_parse,

View File

@ -1,4 +1,4 @@
/* $Id: cmd-show-options.c,v 1.1 2008-06-15 08:01:54 nicm Exp $ */
/* $Id: cmd-show-options.c,v 1.2 2008-06-16 06:33:50 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -46,7 +46,7 @@ struct cmd_show_options_data {
*/
const struct cmd_entry cmd_show_options_entry = {
"show-options", "show",
"[-t target-window]",
"[-t target-session]",
0,
NULL,
cmd_show_options_parse,

19
tmux.1
View File

@ -1,4 +1,4 @@
.\" $Id: tmux.1,v 1.33 2008-06-15 08:01:54 nicm Exp $
.\" $Id: tmux.1,v 1.34 2008-06-16 06:33:50 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
.\"
@ -477,11 +477,16 @@ All arguments are sent sequentially from first to last.
.Xc
Send the prefix key to a window as if it was pressed.
.It Xo Ic set-option
.Op Fl t Ar target-window
.Op Fl t Ar target-session
.Ar option Ar value
.Xc
.D1 (alias: Ic set )
Set an option.
If
.Ar target-session
is specified, the option is set for that session; otherwise, the global option
is set.
A global option is used by all sessions which lack an option overriding it.
Possible options are:
.Bl -tag -width Ds
.It Xo Ic bell-action
@ -528,6 +533,16 @@ or
.It Ic status-fg Ar colour
Set status line foreground colour.
.El
.It Xo Ic show-options
.Op Fl t Ar target-session
.Ar option Ar value
.Xc
.D1 (alias: Ic show )
Show the currently set options.
If a
.Ar target-session
is specified, the options for that session are shown; otherwise, the global
options are listed.
.It Xo Ic start-server
.Xc
Start the