diff options
author | June McEnroe <june@causal.agency> | 2021-01-29 16:42:22 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-29 16:43:25 -0500 |
commit | 83b912f463461541eaa8a04badbb9c43b7943da2 (patch) | |
tree | 337ecd3ded403f7525e5c841e2d803a3cd947319 | |
parent | Add pause to snake (diff) | |
download | play-83b912f463461541eaa8a04badbb9c43b7943da2.tar.gz play-83b912f463461541eaa8a04badbb9c43b7943da2.zip |
Set process title to chosen game
I just like to see :)
-rw-r--r-- | play.c | 3 |
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); |