getch() !

This commit is contained in:
Adrien Bourmault 2021-07-08 19:14:45 +02:00
parent e5ba2b9303
commit 9566a3c74e
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ void connectedCommunication(int sockfd)
while (( curChar= getch()) != '\n') {
// XXX ARROWS
sendBuff[i++] = curChar;
printf("%c", curChar);
fflush(stdout);
}
// Do not send null-string