Add a \r chracter after receiving a \n
This commit is contained in:
parent
8c52be0ee8
commit
157862d467
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user