diff options
author | Kevin Lange <k@dakko.us> | 2011-12-04 02:27:06 -0600 |
---|---|---|
committer | Kevin Lange <k@dakko.us> | 2011-12-04 02:27:06 -0600 |
commit | f841e5fe165614e6f5eefb51fd1605aa55ad1c04 (patch) | |
tree | 75a85b5b40314e1d808bee1a30622cf764fa88e7 | |
parent | 06ee9592e39271ada0958f326c8250e32cd8f0ff (diff) | |
download | nyancat-f841e5fe165614e6f5eefb51fd1605aa55ad1c04.tar.gz |
Set the terminal title (xterm, gnome-terminal, screen...)
Diffstat (limited to '')
-rw-r--r-- | src/nyancat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nyancat.c b/src/nyancat.c index 2a82b83..21abfa8 100644 --- a/src/nyancat.c +++ b/src/nyancat.c @@ -413,6 +413,11 @@ ready: break; } + /* Attempt to set terminal title */ + printf("\033kNyanyanyanyanyanyanya...\033\134"); + printf("\033]1;Nyanyanyanyanyanyanya...\007"); + printf("\033]2;Nyanyanyanyanyanyanya...\007"); + /* Clear the screen */ printf("\033[H\033[2J\033[?25l"); |