summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-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;