From 16479c8d863922d579ef42b4e7f089ae3ac336d9 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Sun, 11 Sep 2022 11:54:27 +0200 Subject: [PATCH] Cleanup --- README.md | 2 +- man/tio.1.in | 10 ++++++---- src/options.c | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6f7916e..505b75a 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ The command-line interface is straightforward as reflected in the output from --log-strip Strip control characters and escape sequences -m, --map Map characters -c, --color 0..255|bold|none|list Colorize tio text (default: bold) - -S, --socket Redirect I/O to file or network socket + -S, --socket Redirect I/O to socket -x, --hexadecimal Enable hexadecimal mode -r, --response-wait Wait for line response then quit --response-timeout Response timeout (default: 100) diff --git a/man/tio.1.in b/man/tio.1.in index 52005a9..de87ea3 100644 --- a/man/tio.1.in +++ b/man/tio.1.in @@ -190,10 +190,12 @@ Default value is "bold". .TP .BR \-S ", " "\-\-socket \fI\fR\fB -Redirect I/O to socket. Any input from clients connected to the socket is sent -on the serial port as if entered at the terminal where tio is running (except -that \fBctrl-t\fR sequences are not recognized), and any input from the serial -port is multiplexed to the terminal and all connected clients. +Redirect I/O to socket. + +Any input from clients connected to the socket is sent on the serial port as if +entered at the terminal where tio is running (except that \fBctrl-t\fR sequences +are not recognized), and any input from the serial port is multiplexed to the +terminal and all connected clients. Sockets remain open while the serial port is disconnected, and writes will block. diff --git a/src/options.c b/src/options.c index 9d4b2e3..d21ed87 100644 --- a/src/options.c +++ b/src/options.c @@ -116,7 +116,7 @@ void print_help(char *argv[]) printf(" --log-strip Strip control characters and escape sequences\n"); printf(" -m, --map Map characters\n"); printf(" -c, --color 0..255|bold|none|list Colorize tio text (default: bold)\n"); - printf(" -S, --socket Redirect I/O to file or network socket\n"); + printf(" -S, --socket Redirect I/O to socket\n"); printf(" -x, --hexadecimal Enable hexadecimal mode\n"); printf(" -r, --response-wait Wait for line response then quit\n"); printf(" --response-timeout Response timeout (default: 100)\n");