From 7822b31b35a3195be30cbfebe0646376b666763c Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Tue, 26 Mar 2013 23:19:14 -0700 Subject: Remove legacy toaruos compatibility --- src/nyancat.c | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'src/nyancat.c') diff --git a/src/nyancat.c b/src/nyancat.c index 44bdf06..040e9fd 100644 --- a/src/nyancat.c +++ b/src/nyancat.c @@ -60,26 +60,15 @@ #include #include -#ifdef __toaru__ - -#include - -DEFN_SYSCALL2(nanosleep, 46, unsigned long, unsigned long); - -int usleep(useconds_t time) { - syscall_nanosleep(0, time / 10000); -} - -#else #include -#endif #ifndef TIOCGWINSZ #include +#endif + #ifdef ECHO #undef ECHO #endif -#endif /* * telnet.h contains some #defines for the various @@ -531,20 +520,9 @@ int main(int argc, char ** argv) { } /* Also get the number of columns */ -#ifdef __toaru__ - if (strstr(term, "toaru")) { - printf("\033[1003z"); - fflush(stdout); - int height; - scanf("%d,%d", &terminal_width, &height); - } else { - terminal_width = 80; /* better safe than sorry */ - } -#else struct winsize w; ioctl(0, TIOCGWINSZ, &w); terminal_width = w.ws_col; -#endif } /* Convert the entire terminal string to lower case */ -- cgit v1.2.3 From fca462d02b8e6a366b4080843d9e23d23fc510f5 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Mon, 20 May 2013 16:46:59 -0700 Subject: Rename animation.h to animation.c This fixes a meta-bug with github showing nyancat as being Objective C. --- src/nyancat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nyancat.c') diff --git a/src/nyancat.c b/src/nyancat.c index 040e9fd..dd3288f 100644 --- a/src/nyancat.c +++ b/src/nyancat.c @@ -82,7 +82,7 @@ * The animation frames are stored separately in * this header so they don't clutter the core source */ -#include "animation.h" +#include "animation.c" /* * Color palette to use for final output -- cgit v1.2.3