From f841e5fe165614e6f5eefb51fd1605aa55ad1c04 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Sun, 4 Dec 2011 02:27:06 -0600 Subject: Set the terminal title (xterm, gnome-terminal, screen...) --- src/nyancat.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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"); -- cgit v1.2.3