mirror of
https://repo.or.cz/socat.git
synced 2025-07-15 15:43:24 +00:00
READLINE now prints newline on empty input line
This commit is contained in:
parent
920ed1f0a3
commit
68f0143f7b
2 changed files with 7 additions and 0 deletions
|
@ -204,6 +204,9 @@ ssize_t xioread_readline(struct single *pipe, void *buff, size_t bufsiz) {
|
|||
if (line == NULL) {
|
||||
return 0; /* EOF */
|
||||
}
|
||||
if (strlen(line) == 0) {
|
||||
Write(STDOUT_FILENO, "\n", 1);
|
||||
}
|
||||
#if _WITH_TERMIOS
|
||||
xiotermios_clrflag(pipe->fd, 3, ECHO);
|
||||
xiotermios_flush(pipe->fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue