aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin Lange <k@dakko.us>2011-12-04 02:27:06 -0600
committerKevin Lange <k@dakko.us>2011-12-04 02:27:06 -0600
commitf841e5fe165614e6f5eefb51fd1605aa55ad1c04 (patch)
tree75a85b5b40314e1d808bee1a30622cf764fa88e7 /src
parent06ee9592e39271ada0958f326c8250e32cd8f0ff (diff)
downloadnyancat-f841e5fe165614e6f5eefb51fd1605aa55ad1c04.tar.gz
Set the terminal title (xterm, gnome-terminal, screen...)
Diffstat (limited to 'src')
-rw-r--r--src/nyancat.c5
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");