commit 97021c1c489bdb0aa9b91ab8d894f5719af36b78
parent 47a1f9b6097bebcdfe9af64fee0f347da8ab4af9
Author: Claudio Alessi <smoppy@gmail.com>
Date: Tue, 17 Apr 2018 21:32:45 +0200
Set terminal title to the current server.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/circo.c b/circo.c
@@ -328,6 +328,7 @@ cmd_server(char *cmd, char *s) {
bprintf(status, "Cannot connect to %s on port %s\n", h, p);
return;
}
+ printf(TTLSET, h);
setbuf(srv, NULL);
sout("NICK %s", nick);
sout("USER %s localhost %s :%s", nick, h, nick);
@@ -1145,5 +1146,6 @@ main(int argc, char *argv[]) {
}
mvprintf(1, rows, "\n");
cleanup();
+ printf(TTLSET, "");
return 0;
}