From 59006d18bb3119a3cdf6ff1494aebaf8bdc82dd9 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Mon, 12 Oct 2020 19:25:08 -0400 Subject: Avoid eating C-c while connecting Split UI initialization into two steps either side of the call to connect, so that C-c works as interrupt while it's blocked. --- chat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chat.c') diff --git a/chat.c b/chat.c index 6befdde..223583e 100644 --- a/chat.c +++ b/chat.c @@ -222,7 +222,7 @@ int main(int argc, char *argv[]) { ircConfig(insecure, cert, priv); - uiInit(); + uiInitEarly(); if (save) { uiLoad(save); atexit(exitSave); @@ -244,6 +244,7 @@ int main(int argc, char *argv[]) { ircFormat("NICK :%s\r\n", nick); ircFormat("USER %s 0 * :%s\r\n", user, real); + uiInitLate(); signal(SIGHUP, signalHandler); signal(SIGINT, signalHandler); signal(SIGTERM, signalHandler); -- cgit 1.4.1-2-gfad0