sort of fixed received message formatting
but actually not
This commit is contained in:
parent
3976c7e49c
commit
258222160e
@ -50,7 +50,6 @@ int main(void)
|
||||
|
||||
for (;;)
|
||||
{
|
||||
printf(">>> "); //TODO: Fix formatting
|
||||
getline(&line, &line_length, stdin);
|
||||
|
||||
why2_send_socket(line, listen_socket);
|
||||
|
@ -265,8 +265,18 @@ void why2_clean_threads(void)
|
||||
|
||||
void *why2_listen_server(void *socket)
|
||||
{
|
||||
char *read = NULL;
|
||||
|
||||
printf(">>> "); //TODO: Make this smart
|
||||
fflush(stdout);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
printf("%s\n", why2_read_socket(*((int*) socket)));
|
||||
read = why2_read_socket(*((int*) socket)); //TODO: Fix other user message formatting
|
||||
printf("\033[A\33[2K\r");
|
||||
printf("%s\n>>> ", read);
|
||||
fflush(stdout);
|
||||
|
||||
why2_deallocate(read);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user