Commit Graph

44 Commits

Author SHA1 Message Date
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
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 ed1684e64e Get rid of all of that nasty python 2011-12-03 19:00:34 -06:00
Myles Borins a51ae10140 Added include for signal.h 2011-12-02 01:52:30 -05:00
Myles Borins f95145fc4f Added SIGINT_handler to re-initialize cursor for reset on non-sane terminal emulators 2011-12-02 01:30:26 -05:00
Kevin Lange b2615aef00 Update everything 2011-12-01 19:15:38 -06:00
Kevin Lange 913af36dde Fixed fallback support to use bright foregrounds. Looks a lot better 2011-12-01 11:54:28 -06:00
Kevin Lange fbb9a73924 Add license header to c source 2011-12-01 02:29:45 -06:00
Aaron Peschel 900194edee Made project more in line with Autotools standard. 2011-11-30 21:46:00 -08:00