Commit Graph

83 Commits

Author SHA1 Message Date
Kevin Lange
84f44336d5 sb should be unsigned 2015-11-24 00:02:04 -05:00
Frederic Cambus
07975b873a Adding support for the rxvt-256color terminal 2015-10-31 22:44:30 +01:00
Frederic Cambus
65bbd3a951 Added _BSD_SOURCE define to allow compiling on OpenBSD 2015-10-30 21:02:10 +01:00
annonymouse
1d8a582ebd Added __BSD_VISIBLE 1 to allow compiling on FreeBSD. This includes SIGWINCH on FreeBSD. Still compiles succesfully on OSX (Mavericks) and Ubuntu 12.04 LTS 2014-09-17 18:52:18 +01:00
Jacob
bcc69a9e3b Add _DARWIN_C_SOURCE to allow compiling on OSX
This allows OSX to get declarations for readlink(), setegid(), seteuid() etc when compiling 

Allows successful compile on OSX 10.9.4
Didn't break the build on Linux (tested on Ubuntu Server 12.04 LTS & Centos 6.5
2014-07-24 14:19:49 +10:00
Kevin Lange
eef505b957 Fix a calculation resulting in a bad color index 2014-05-01 11:14:27 -07:00
Kevin Lange
1e50a21706 Reset sigwinch after handler 2014-05-01 11:14:07 -07:00
Kevin Lange
9ccd2f8523 Also -Wwrite-string 2014-04-30 16:33:52 -07:00
Kevin Lange
20b9bf5adc Pedantic too, and bump version 2014-04-30 16:31:10 -07:00
Kevin Lange
7ad46735c1 kill warnings, c99 up in this 2014-04-30 16:30:30 -07:00
Jonathan McCrohan
fffcb12d1b Allow build flags to be overridden by make process
Required to enable Debian buildi hardening:
https://wiki.debian.org/Hardening

Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
2014-02-20 02:19:57 +00:00
Kevin Lange
d9d0d5e3cc Fix telnet size negotiation 2014-02-14 00:58:56 -08:00
Kevin Lange
441e61ce2d Some major improvements here. 2014-02-14 00:43:43 -08:00
Kevin Lange
64d29067a0 Long-form option for skip-intro and update manpage 2014-02-09 00:37:51 -08:00
Kevin Lange
3c2f770be2 Add option to skip intro in telnet mode.
I am dropping the intro from my instance and also making it not run
permanently (sorry, limited bandwidth until I get this on a dedicated
cloud instance somewhere).
2014-02-09 00:32:35 -08:00
Cameron Ross
99e3d05139 Exit gracefully when stdout becomes invalid 2013-12-15 23:49:35 -04:00
Kevin Lange
fd2321630b Update links and MOTD text 2013-12-07 13:41:08 -08:00
Kevin Lange
fca462d02b Rename animation.h to animation.c
This fixes a meta-bug with github showing nyancat as being Objective C.
2013-05-20 16:49:53 -07:00
Kevin Lange
7822b31b35 Remove legacy toaruos compatibility 2013-03-26 23:19:14 -07:00
Kevin Lange
43097ebfc2 Ah, right, yes. 2013-03-07 19:54:32 -08:00
Kevin Lange
4960f3ff2f Hm, or not. 2013-03-07 19:48:47 -08:00
Kevin Lange
4f4d5d418a Reset alarm before setting to 2secs 2013-03-07 19:47:03 -08:00
Kevin Lange
634c7d3e97 Set alarm for extended options.
Instead of clearing the alarm, set it to two seconds;
Previously, this could, potentially, not finish at all on some telnet
clients, which is definitely bad. This is a reasonable workaround.
2013-03-07 19:43:48 -08:00
Kevin Lange
3b70f51377 Update src/nyancat.c
update copyright date, happy new year
2013-01-11 15:52:05 -08:00
Kevin Lange
3e1afbd2a6 Better white and black 2012-12-21 03:59:38 -08:00
Kevin Lange
1652cd3bd1 For the morons using solarized 2012-12-21 03:50:38 -08:00
Kevin Lange
e948abcb64 Support building and running on とあるOS 2012-12-13 19:58:37 -08:00
Kevin Lange
01f6c5ec53 Support the Suckless simple terminal
`st` supports xterm-256color escapes, so just treat
it the same as we treat xterm.
2012-09-12 17:42:27 -07:00
Kevin Lange
c035cf7f9b Fix type for sb_len 2012-07-03 15:24:58 -07:00
Sven Herzberg
fd6b3c6de2 do not hardcode sizes
This patch will fix the following warning I received from gcc:
> nyancat.c: In function ‘main’:
> nyancat.c:497: warning: comparison is always true due to limited range of data type

* src/nyancat.c: adjust the size of the array and update the references
  to its size
2012-07-03 18:12:07 +02:00
Jonathan McCrohan
10869208d2 Fix useless build flags
Pass CPPFLAGS and CFLAGS to the compiler. I assume LFLAGS was a typo
and should be LDFLAGS instead.

Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
2012-05-20 01:18:46 +01:00
Kevin Lange
5a88b86b6a :set spell ... I'm a bloody moron. 2012-04-01 16:07:35 -05:00
Kevin Lange
0e34917dd9 Long options, help text for previous 2012-04-01 15:32:58 -05:00
Kevin Lange
ed320b7e75 Add options to not clear display and not set title
`nyancat -esnf 1` will (quite nicely) display a single frame and
then terminate, in a matter that is perfect for generate MOTDs.
`nyancat -esnf 10` (for example) will run through the animation
(though it may not work perfectly, depending on the size of your
terminal and various other things)
2012-04-01 15:16:05 -05:00
Kevin Lange
022fed78f0 Remove debug output that I completely forgot about 2012-03-26 18:22:24 -05:00
Kevin Lange
415f8251d9 Added extra display options 2012-03-25 19:32:39 -05:00
Kevin Lange
ed21034c7b (style) 2012-03-23 18:08:37 -05:00
Kevin Lange
672b3abae0 Command line options with getopt_long 2012-03-23 17:55:13 -05:00
Tay Ray Chuan
3fccb064bd include ctype.h for tolower() 2012-03-19 21:06:12 +08:00
Tay Ray Chuan
d8455890b8 provide struct winsize and TIOCGWINSZ on Solaris 2012-03-19 21:05:01 +08:00
Kevin Lange
004e132ace Amended license header. 2012-02-22 20:53:39 -06:00
Alexander Frolov
45856e02ed Fixed SegFault if TERM variable is not set 2012-02-21 15:04:05 +04:00
Peetz0r
187a214e50 Clear the screen when done (standalone, not telnet). 2011-12-06 10:54:48 +01:00
Peter
4f158ad930 Oops... 2011-12-05 19:50:52 +01:00
Peetz0r
5cc51e5021 Actually limit the terminal width in the right place 2011-12-05 19:37:50 +01:00
Peetz0r
616b5189fa Added my name in the comments ;) 2011-12-05 18:25:53 +01:00
Peetz0r
8fbebea71e I already removed the goto's, so let's remove the label as well. 2011-12-05 18:22:58 +01:00
Peetz0r
f36609e9b6 terminal_width now also working over telnet. 2011-12-05 17:54:26 +01:00
Peetz0r
d3104d6d78 Add Apple ][ support 2011-12-05 07:10:56 +01:00
Kevin Lange
9404128709 [minor] Typo 2011-12-04 17:01:18 -06:00