aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeetz0r <peter@haas-en-berg.nl>2011-12-06 10:54:48 +0100
committerPeetz0r <peter@haas-en-berg.nl>2011-12-06 10:54:48 +0100
commit187a214e50f283eaf2f7dbe9985507a89b5a28b5 (patch)
treec21c39fb93656fa291fd6153f14847601b2cd173
parent322de459957620eef0cf8cf6d76c7bed4a63879b (diff)
downloadnyancat-187a214e50f283eaf2f7dbe9985507a89b5a28b5.tar.gz
Clear the screen when done (standalone, not telnet).
Diffstat (limited to '')
-rw-r--r--src/nyancat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nyancat.c b/src/nyancat.c
index e65576c..3cbca75 100644
--- a/src/nyancat.c
+++ b/src/nyancat.c
@@ -118,10 +118,10 @@ int digits(int val) {
/*
* In the standalone mode, we want to handle an interrupt signal
- * (^C) so that we can restore the cursor.
+ * (^C) so that we can restore the cursor and clear the terminal.
*/
void SIGINT_handler(int sig){
- printf("\033[?25h\033[0m");
+ printf("\033[?25h\033[0m\033[H\033[2J");
exit(0);
}
>michael3-10/+170 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@799 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2007-05-04typo in LUIse driver fixedmichael1-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@798 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2007-05-02some compiler warnings fixedmichael6-8/+14 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@797 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2007-04-30LCD4Linux-0.10.1-RC2michael1-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@796 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2007-04-30ChangeLog updatedmichael1-1782/+3099 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@795 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2007-04-30svn2cl moved and optimizedmichael1-6/+0 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@794 3ae390bd-cb1e-0410-b409-cd5a39f66f1f