Add a \r chracter after receiving a \n

This commit is contained in:
Franck STAUFFER 2020-12-03 18:49:03 +01:00
parent 8c52be0ee8
commit 157862d467
Signed by: franck.stauffer
GPG Key ID: AAF5A94045CEC261

View File

@ -211,6 +211,8 @@ main(int argc, char** argv)
negotiate(buf);
} else {
putchar(buf[0]);
if (buf[0] == '\n')
putchar('\r');
fflush(stdin);
}
} else if (events[i].data.fd == 0) {