summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-29 16:42:22 -0500
committerJune McEnroe <june@causal.agency>2021-01-29 16:43:25 -0500
commit83b912f463461541eaa8a04badbb9c43b7943da2 (patch)
tree337ecd3ded403f7525e5c841e2d803a3cd947319
parentAdd pause to snake (diff)
downloadplay-83b912f463461541eaa8a04badbb9c43b7943da2.tar.gz
play-83b912f463461541eaa8a04badbb9c43b7943da2.zip
Set process title to chosen game
I just like to see :)
-rw-r--r--play.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/play.c b/play.c
index 96961a1..84fac37 100644
--- a/play.c
+++ b/play.c
@@ -247,6 +247,9 @@ int main(int argc, char *argv[]) {
 	const struct Game *game = menu();
 	if (!game) goto done;
 	erase();
+#ifdef __FreeBSD__
+	setproctitle("%s", game->name);
+#endif
 
 	char buf[256];
 	snprintf(buf, sizeof(buf), "%s.scores", game->name);