Commit Graph

61 Commits

Author SHA1 Message Date
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
Kevin Lange 387400bbbd Wow, that was dumb 2011-12-04 14:06:35 -06:00
Kevin Lange 48ec643ed1 Reset colors when exited from standalone mode 2011-12-04 13:48:33 -06:00
Kevin Lange 18d47f079e Tell people how to exit in the MOTD 2011-12-04 12:30:24 -06:00
Kevin Lange 6ec206094e Fix up the MOTD a bit 2011-12-04 04:16:31 -06:00
Kevin Lange bbeebb1208 Um, derp 2011-12-04 04:06:30 -06:00
Kevin Lange ab1fc8c49a [minor] 2011-12-04 04:05:52 -06:00
Kevin Lange 0efd68d3f0 Document, document, document. 2011-12-04 04:03:30 -06:00
Kevin Lange 24575e61ec comments; do not break out of options on a non-IAC 2011-12-04 03:47:20 -06:00
Kevin Lange f18f1e401a Use setjmp and alarm to break out of options handling 2011-12-04 03:43:33 -06:00
Kevin Lange f841e5fe16 Set the terminal title (xterm, gnome-terminal, screen...) 2011-12-04 02:27:06 -06:00
Kevin Lange 06ee9592e3 Fix colors for text 2011-12-04 01:19:16 -06:00
Kevin Lange 8653b2f538 You have nyaned for (way too long) 2011-12-04 01:12:11 -06:00
Kevin Lange affb94d97a Add a workaround for netcat 2011-12-03 20:02:47 -06:00
Kevin Lange db216877b8 Fix linefeeds 2011-12-03 19:57:59 -06:00
Kevin Lange cedbee69a2 Comments? In /my/ code? It's more likely than you think. 2011-12-03 19:49:30 -06:00
Kevin Lange c556b4ec19 Restore updated VT220 palette 2011-12-03 19:27:36 -06:00
Kevin Lange 8f120c4db3 Fix merge conflict 2011-12-03 19:09:38 -06:00
Kevin Lange ed1684e64e Get rid of all of that nasty python 2011-12-03 19:00:34 -06:00
Kevin Lange d2a07f7e5a Perhaps better characters for a VT220 2011-12-03 01:06:08 -06:00
Kevin Lange 843ffa271a Fix string literal warning 2011-12-03 00:34:07 -06:00
Kevin Lange 29e3645b84 Make the eyes uniform 2011-12-03 00:32:39 -06:00
Kevin Lange 4c5daecb46 Use the flat mouth 2011-12-03 00:30:49 -06:00