From 92da77ff3e2cf128da57c7e004972e29156f87db Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 12 Mar 2023 12:24:56 +0100 Subject: [PATCH] fixed "local" message formatting yeeees babyyyyyyyyyyyyy --- src/chat/main/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat/main/client.c b/src/chat/main/client.c index 6c8dff7..4482fd7 100644 --- a/src/chat/main/client.c +++ b/src/chat/main/client.c @@ -40,7 +40,7 @@ int main(void) server_addr.sin_addr.s_addr = inet_addr(line); - printf("###################\n\n"); + printf("###################\n\n\n"); int connectStatus = connect(listen_socket, (SA *) &server_addr, sizeof(server_addr)); //CONNECT @@ -51,6 +51,7 @@ int main(void) for (;;) { getline(&line, &line_length, stdin); + printf("\33[2K\r\033[A"); why2_send_socket(line, listen_socket);