diff --git a/man/tio.1.in b/man/tio.1.in index 46bf144..83cf6b1 100644 --- a/man/tio.1.in +++ b/man/tio.1.in @@ -220,8 +220,8 @@ At present there is a hardcoded limit of 16 clients connected at one time. .TP .BR \-r ", " \-\-response-wait -Wait for line response then quit. A line is considered any string ending with -either CR or NL character. If no line is received tio will quit after response +Wait for line response then quit. A line is considered any string terminated +with a NL character. If no line is received tio will quit after response timeout. Any tio text is automatically muted when piping a string to tio while in diff --git a/src/tty.c b/src/tty.c index 54ea980..186fa77 100644 --- a/src/tty.c +++ b/src/tty.c @@ -1426,7 +1426,7 @@ int tty_connect(void) if (option.response_wait) { - if ((input_char == '\r') || (input_char == '\n')) + if (input_char == '\n') { tty_sync(fd); exit(EXIT_SUCCESS);