Add documentation for the new redraw option.
This commit is contained in:
parent
a5599b4610
commit
c869233b97
42
dtach.1
42
dtach.1
|
|
@ -110,6 +110,7 @@ When the detach character is pressed,
|
|||
detaches itself from the current session and exits. The process running in
|
||||
the session is unaffected by the detach. By default, the detach character is
|
||||
set to ^\\ (Ctrl-\\).
|
||||
|
||||
.TP
|
||||
.B \-E
|
||||
Disables the detach character.
|
||||
|
|
@ -117,6 +118,30 @@ Disables the detach character.
|
|||
does not try to scan input from the terminal for a detach character. The only
|
||||
way to detach from the session is then by sending the attaching process an
|
||||
appropriate signal.
|
||||
|
||||
.TP
|
||||
.BI "\-r " "<method>"
|
||||
Sets the redraw method to
|
||||
.IR <method> .
|
||||
The valid methods are
|
||||
.IR none ,
|
||||
.IR ctrl_l ,
|
||||
or
|
||||
.IR winch .
|
||||
|
||||
.I none
|
||||
disables redrawing completely,
|
||||
.I ctrl_l
|
||||
sends a Ctrl L character to the program if the terminal is in
|
||||
character-at-a-time and no-echo mode, and
|
||||
.I winch
|
||||
forces a WINCH signal to be sent to the program.
|
||||
|
||||
When creating a new session, the specified method is used as the default
|
||||
redraw method for the session. If not specified, the
|
||||
.I ctrl_l
|
||||
method is used.
|
||||
|
||||
.TP
|
||||
.B \-z
|
||||
Disables processing of the suspend key.
|
||||
|
|
@ -145,6 +170,23 @@ Processing of the suspend character is also disabled for the attach instance.
|
|||
$ dtach -A /tmp/foozle -z bash
|
||||
.fi
|
||||
|
||||
The following example attaches to the /tmp/foozle session, using the
|
||||
.I winch
|
||||
redraw method to redraw the screen.
|
||||
|
||||
.nf
|
||||
$ dtach -a /tmp/foozle -r winch
|
||||
.fi
|
||||
|
||||
The following example creates a new session and sets the default redraw method
|
||||
for the session to the
|
||||
.I winch
|
||||
redraw method.
|
||||
|
||||
.nf
|
||||
$ dtach -c /tmp/foozle -r winch bash
|
||||
.fi
|
||||
|
||||
.PP
|
||||
.SH AUTHOR
|
||||
Ned T. Crigler <crigler@users.sourceforge.net>.
|
||||
|
|
|
|||
3
main.c
3
main.c
|
|
@ -65,7 +65,8 @@ usage()
|
|||
" -e <char>\tSet the detach character to <char>, defaults "
|
||||
"to ^\\.\n"
|
||||
" -E\t\tDisable the detach character.\n"
|
||||
" -r <method>\tUse the specified redraw method when redrawing:\n"
|
||||
" -r <method>\tSet the redraw method to <method>. The "
|
||||
"valid methods are:\n"
|
||||
"\t\t none: Don't redraw at all.\n"
|
||||
"\t\t ctrl_l: Send a Ctrl L character to the program.\n"
|
||||
"\t\t winch: Send a WINCH signal to the program.\n"
|
||||
|
|
|
|||
Loading…
Reference in New Issue