From a6b1913b342a83f32acbcc03ab71cb93ea89366e Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 19 Apr 2021 18:41:26 -0400 Subject: Only print info atexit without -t --- play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play.c b/play.c index 345dcd1..0400b85 100644 --- a/play.c +++ b/play.c @@ -267,7 +267,6 @@ static void info(void) { int main(int argc, char *argv[]) { setlocale(LC_CTYPE, "en_US.UTF-8"); - atexit(info); const char *path = NULL; for (int opt; 0 < (opt = getopt(argc, argv, "t:"));) { @@ -294,6 +293,7 @@ int main(int argc, char *argv[]) { errx(EX_USAGE, "not a tty; use ssh -t"); } curse(); + atexit(info); const struct Game *game = menu(); if (!game) return 0; -- cgit 1.4.1