summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-04-19 18:41:26 -0400
committerJune McEnroe <june@causal.agency>2021-04-19 18:41:26 -0400
commita6b1913b342a83f32acbcc03ab71cb93ea89366e (patch)
tree3b071a121637af07e998235acfa0164e9d8691f3
parentOnly use cells for moveColumn (diff)
downloadplay-a6b1913b342a83f32acbcc03ab71cb93ea89366e.tar.gz
play-a6b1913b342a83f32acbcc03ab71cb93ea89366e.zip
Only print info atexit without -t
Diffstat (limited to '')
-rw-r--r--play.c2
1 files changed, 1 insertions, 1 deletions
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;