FD_ZERO(&errorfds);
FD_SET(0, &readfds); // stdin
+ fflush(stdout);
+
// Fill server FDs in fd_set
for( srv = gpServers; srv; srv = srv->Next )
{
free(cmd);
// Prompt
SetCursorPos(giTerminal_Height-1, 0);
- printf("\x1B[K"); // Clear line
+ printf("\x1B[2K"); // Clear line
if( gpCurrentWindow->Name[0] )
printf("[%s:%s] ", gpCurrentWindow->Server->Name, gpCurrentWindow->Name);
else
printf("[(status)] ");
- fflush(stdout);
}
}
win = &gWindow_Status;
}
+ // Set source to the server name (instead of the hostname)
+ Source = Server->Name;
}
// Private message
else
Message += avail;
printf("\x1b""D");
SetCursorPos(giTerminal_Height-2, prefixlen);
- printf("%.*s\n", avail, Message);
+ printf("%.*s", avail, Message);
}
printf("\x1b[u");
}
}
else
{
- Message_AppendF(Server, MSG_TYPE_SERVER, "", "", "Unknown message %s (%s)\n", cmd, Line+pos);
+ Message_AppendF(Server, MSG_TYPE_SERVER, "", "", "Unknown message %s (%s)", cmd, Line+pos);
}
}
else {