aboutsummaryrefslogtreecommitdiffhomepage
path: root/man
diff options
context:
space:
mode:
authorGravatar john hood <cgull@glup.org>2015-05-20 09:34:23 -0400
committerGravatar John Hood <cgull@glup.org>2015-05-25 03:41:31 -0400
commite0138bdb2b48f509260e349ca6c7ef3065cd1f00 (patch)
tree0ec69edd5f02226c578c81638d4a3437aa73a901 /man
parent2ea844e54a298565f18025b6cbe39e3a75974f78 (diff)
Better document mosh envars and escape-key machinery.
Diffstat (limited to 'man')
-rw-r--r--man/mosh-client.125
-rw-r--r--man/mosh.145
2 files changed, 64 insertions, 6 deletions
diff --git a/man/mosh-client.1 b/man/mosh-client.1
index 89a37e1..f1a832f 100644
--- a/man/mosh-client.1
+++ b/man/mosh-client.1
@@ -27,7 +27,7 @@ IP PORT
.br
.SH DESCRIPTION
\fBmosh-client\fP is a helper program for the
-.BR mosh(1)
+.BR mosh (1)
remote terminal application.
\fBmosh\fP itself is a setup script that establishes an SSH
@@ -49,6 +49,29 @@ directly.
With the \-c option, \fBmosh-client\fP instead prints the number of colors
of the terminal given by the TERM environment variable.
+.SH ENVIRONMENT VARIABLES
+
+.TP
+.B MOSH_KEY
+This variable must be set, and must contain a Base64-encoded cryptographic key from
+.BR mosh-server (1).
+
+.TP
+.B MOSH_ESCAPE_KEY
+See
+.BR mosh (1).
+
+.TP
+.B MOSH_PREDICTION_DISPLAY
+Controls local echo as described in
+.BR mosh (1).
+
+.TP
+.B MOSH_TITLE_NOPREFIX
+See
+.BR mosh (1).
+
+
.SH SEE ALSO
.BR mosh (1),
.BR mosh-server (1).
diff --git a/man/mosh.1 b/man/mosh.1
index 3a4fdec..1e6a6a2 100644
--- a/man/mosh.1
+++ b/man/mosh.1
@@ -166,16 +166,51 @@ this disables alternate screen mode.
.SH ESCAPE SEQUENCES
-The escape sequence to shut down the connection is \fBCtrl-^ .\fP
-(typically typed with Ctrl-Shift-6, then a period). To send a literal
-Ctrl-^, type \fBCtrl-^ ^\fP. The sequence \fBCtrl-^ Ctrl-Z\fP suspends the
-client.
+The default escape character used by Mosh is ASCII RS (decimal 30).
+This is typically typed as \fBCtrl-^\fP or \fBCtrl-Shift-6\fP, on US
+English keyboards. Users of non-English keyboards may find it
+difficult or impossible to type the default escape character, and may
+need to change the escape character. See the description of
+MOSH_ESCAPE_KEY, below. In this description, the configured escape
+character is represented as \fBEsc\fP.
+
+There are two slightly different modes for escape sequences, depending
+whether the escape character is printable or not.
+
+If the escape character is a printable character, it must be prefixed
+with a newline, similar to \fBOpenSSH\fP. To send the escape character
+itself, type it twice. If the escape character is set to \fB~\fP,
+\fBmosh\fP will behave much like \fBOpenSSH\fP.
+
+If the escape character is a non-printable control character, no
+prefix is used and the escape character is recognized at any time. To
+send the escape character itself, type the escape character, then its
+corresponding ASCII character (for \fBCtrl-^\fP you would type \fB^\fP,
+for \fBCtrl-B\fP you would type \fBB\fP).
+
+The escape sequence to shut down the connection is
+\fBEsc .\fP. The sequence \fBEsc Ctrl-Z\fP suspends the client.
+Any other sequence passes both characters through to the server.
.SH ENVIRONMENT VARIABLES
+These variables are not actually interpreted by
+.BR mosh (1)
+itself, but are passed through to
+.BR mosh-server (1).
+They are described here for ease of use.
+
+.TP
+.B MOSH_ESCAPE_KEY
+When set, this configures the escape character used for local
+commands. The escape character may be set to any ASCII character in
+the range 1-127. The variable must be set with a single literal ASCII
+character. Control characters are set with the actual ASCII
+control character, not with a printable representation such as "^B".
.TP
.B MOSH_PREDICTION_DISPLAY
-Controls local echo as described above.
+Controls local echo as described above. The command-line flag
+overrides this variable.
.TP
.B MOSH_TITLE_NOPREFIX