summary refs log tree commit diff homepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--play.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/play.c b/play.c
index e83ab7e..a9dcc34 100644
--- a/play.c
+++ b/play.c
@@ -248,7 +248,11 @@ int main(int argc, char *argv[]) {
 		return EX_OK;
 	}
 
+	if (!isatty(STDOUT_FILENO)) {
+		errx(EX_USAGE, "not a tty; use ssh -t");
+	}
 	curse();
+
 	const struct Game *game = menu();
 	if (!game) goto done;
 	erase();