aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Lange <kevin.lange@dakko.us>2013-03-07 19:54:32 -0800
committerKevin Lange <kevin.lange@dakko.us>2013-03-07 19:54:32 -0800
commit43097ebfc2bc9bc0f721f5f80dc1aede1f7e10d7 (patch)
tree29e996abea4e5e8475513ee2c1ef089ac9384a95
parent4960f3ff2fc7c4313df1980d5c4f0a3c5fec48aa (diff)
downloadnyancat-43097ebfc2bc9bc0f721f5f80dc1aede1f7e10d7.tar.gz
Ah, right, yes.
Diffstat (limited to '')
-rw-r--r--src/nyancat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nyancat.c b/src/nyancat.c
index e7d3f38..44bdf06 100644
--- a/src/nyancat.c
+++ b/src/nyancat.c
@@ -443,14 +443,14 @@ int main(int argc, char ** argv) {
if (sb[0] == TTYPE) {
/* This was a response to the TTYPE command, meaning
* that this should be a terminal type */
- alarm(0);
+ alarm(2);
strcpy(term, &sb[2]);
done++;
}
else if (sb[0] == NAWS) {
/* This was a response to the NAWS command, meaning
* that this should be a window size */
- alarm(0);
+ alarm(2);
terminal_width = sb[2];
done++;
}
@@ -521,6 +521,7 @@ int main(int argc, char ** argv) {
}
}
}
+ alarm(0);
} else {
/* We are running standalone, retrieve the
* terminal type from the environment. */