Set the terminal title (xterm, gnome-terminal, screen...)

This commit is contained in:
Kevin Lange 2011-12-04 02:27:06 -06:00
parent 06ee9592e3
commit f841e5fe16

View File

@ -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");