From 9566a3c74ee52e67d879bb88f47ecbe1c32e884f Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 8 Jul 2021 19:14:45 +0200 Subject: [PATCH] getch() ! --- src/cli.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli.c b/src/cli.c index e31f662..f489a5b 100644 --- a/src/cli.c +++ b/src/cli.c @@ -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