touche suppr essai 2

This commit is contained in:
Jean Sirmai 2021-07-21 20:58:14 +02:00
parent 97114192d5
commit 26e93c2f04
Signed by untrusted user who does not match committer: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 5 additions and 2 deletions

View File

@ -360,7 +360,7 @@ void connectedCommandLine(int sockfd)
break;
// Delete next char
sendBuff[++curPosition] = 0;
sendBuff[curPosition] = 0;
curLineLength--;
if (curLineLength >= 0) {
@ -379,7 +379,10 @@ void connectedCommandLine(int sockfd)
);
printf("%s", C_RESTORE_CURSORPOS);
printf("%s", C_CURSORRIGHT);
// printf("%s", C_CURSORRIGHT);
}
else {
printf("%s", C_CURSORRIGHT); // pas sûr que ce soit utile...
}
}
break;