1
0
mirror of https://github.com/mobile-shell/mosh.git synced 2025-12-16 12:00:15 +01:00

Rename and document --predict-overwrite.

This commit is contained in:
John Hood
2017-08-02 21:29:20 -04:00
parent c49c67cecf
commit c8580d1fb6
3 changed files with 19 additions and 2 deletions

View File

@@ -72,6 +72,11 @@ See
Controls local echo as described in
.BR mosh (1).
.TP
.B MOSH_PREDICTION_OVERWRITE
Controls local echo insert/overwrite as described in
.BR mosh (1).
.TP
.B MOSH_TITLE_NOPREFIX
See

View File

@@ -142,6 +142,18 @@ Synonym for \-\-predict=always
.B \-n
Synonym for \-\-predict=never
.TP
.B \-\-predict\-overwrite\fP
When prediction is enabled, do not insert speculative local echo
before existing text, but overwrite it instead.
The MOSH_PREDICTION_OVERWRITE environment variable also enables this
if its value is 'yes'.
.TP
.B \-o
Synonym for \-\-predict\-overwrite
.TP
.B \-\-family=inet
Only use IPv4 for the SSH connection and Mosh session.

View File

@@ -99,7 +99,7 @@ qq{Usage: $0 [options] [--] [user@]host [command...]
-n --predict=never never use local echo
--predict=experimental aggressively echo even when incorrect
-o --overwrite prediction overwrites instead of inserting
-o --predict-overwrite prediction overwrites instead of inserting
-4 --family=inet use IPv4 only
-6 --family=inet6 use IPv6 only
@@ -154,7 +154,7 @@ sub predict_check {
GetOptions( 'client=s' => \$client,
'server=s' => \$server,
'predict=s' => \$predict,
'overwrite|o!' => \$overwrite,
'predict-overwrite|o!' => \$overwrite,
'port=s' => \$port_request,
'a' => sub { $predict = 'always' },
'n' => sub { $predict = 'never' },