Commit graph

76 commits

Author SHA1 Message Date
Nor Khasyatillah
37bb84e297 Add new option --seed 2022-11-19 12:49:46 +01:00
jaseg
2a23642da7 Add 16-color mode for limited terminals
closes #43
2022-11-19 12:41:00 +01:00
Daniel Santos
8173ed8cb6 build: Add autotools option for those who want it
Closes #40.
2021-10-14 23:11:20 +02:00
Thomas Friese
1d52554cb1 Add manual start color offset 2021-07-28 13:00:07 +02:00
jaseg
6a2ab611a7 Bump version to v1.2 2021-01-16 13:23:22 +01:00
jaseg
0039b3f832 Fix linker argument order (fixes #36)
Thanks @elig0n !
2021-01-16 13:21:53 +01:00
jaseg
a1dfac8cf4 Bump version to v1.1 2020-12-25 15:54:19 +01:00
jaseg
8d54f67f41 Fix variable scoping error 2020-12-25 15:54:09 +01:00
jaseg
b6480279fb Add fallback for locale-setting on systems without C.UTF-8 locale 2020-12-25 15:47:08 +01:00
jaseg
e6103e70be Add random support for rgb mode 2020-12-25 15:38:30 +01:00
jaseg
a924f2a523 Update help string for long options 2020-12-25 15:38:21 +01:00
jaseg
460259df6f Add long option names 2020-12-25 15:08:16 +01:00
jaseg
cac1312906 Add daytime offset to 24-bit rgb color option too 2020-12-25 15:08:06 +01:00
jaseg
861fc46bb3 Add help string for -b 24-bit rgb color option 2020-12-25 15:07:12 +01:00
jaseg
e6d4480145 Make rgb rainbow match xterm palette more closely 2020-12-25 14:47:15 +01:00
jaseg
2f5d7ab8c0 Make rgb support off-by-default 2020-12-25 14:47:00 +01:00
Remy Noulin
36cce5225b add RGB 24bits color support (default)
Option -8bits is for 256 colors

lolcat.c | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
2020-12-25 14:46:43 +01:00
jaseg
9efc71de4f Fix incorrect usage of ferror after fclose
Closes #35
2020-12-25 13:42:09 +01:00
ara.t.howard
5b97d040b3 Update Makefile
-Wno-sign-compare
2020-11-22 12:58:11 +01:00
Kian Kasad
931f28e08d set compiler optimization option 2020-11-22 12:55:57 +01:00
cheese1
9df2d9edef
Update README.md 2020-08-13 13:07:50 +02:00
josef radinger
a83e59dc25 https instead of http 2019-11-10 16:40:32 +01:00
jaseg
9beb9dbfc5 Fix compiler warning about missing time header 2019-11-10 16:38:35 +01:00
Edgar Fouillet
d92c9b91f7 Add random option 2019-11-10 16:36:39 +01:00
Edgar Fouillet
92831e54d8 Makefile: remove -g from default cc command 2019-11-10 16:36:39 +01:00
Edgar Fouillet
6e1caef075 lolcat: Fix segfault on launch when LANG is undefined
Closes #27
2019-11-10 16:36:39 +01:00
jaseg
35dca3d0a3 Fix project url and bump version to v1.0
Thanks @bratkartoffel . Closes #23
2019-06-17 11:07:07 +09:00
m3tav3rse
abe2bacbf9 Don't force C.UTF-8 when locale is UTF-8 already
closes #21
2019-06-17 11:07:07 +09:00
jaseg
9a928b9ff4 lolcat: Remove redundant newline at end of output 2019-06-16 21:26:00 +09:00
Ricardo Band
176478b36e README.md: Don't use yaourt on Arch (#17)
Removed the aur helper. The new guide works for everyone.
See https://wiki.archlinux.org/index.php/AUR_helpers#Discontinued_or_problematic
2019-03-19 08:48:25 +09:00
jaseg
a21247efe1 Pull out inline function to make clang happy
Thanks @Janfel and @dosentmatter for reporting this. Fixes #14.
2018-12-02 13:37:59 +09:00
jaseg
38db5de767 Make functions static 2018-12-02 13:37:31 +09:00
jaseg
da9174ed19 Force encoding to utf8 by default, allow override via -l switch 2018-12-02 13:37:31 +09:00
jaseg
27768b78a4 Fix TTY check for color output
Thanks @BourgeoisBear!
2018-12-02 13:37:51 +09:00
jaseg
e913f914c4 Use wprintf and putwchar instead of printf
Thanks @BourgeoisBear
2018-12-02 13:37:47 +09:00
jaseg
29bc06513d Use wint_t for find_escape_sequences
Thanks @BourgeoisBear
2018-12-02 13:37:31 +09:00
jaseg
ceb4d662f7 Fix color array type 2018-07-22 20:48:30 +02:00
jaseg
fd9436a7f0 auto-format c sources 2018-07-22 20:47:25 +02:00
jaseg
87248c46ff Fix variable scope bug 2018-07-22 20:43:56 +02:00
jaseg
32c34ab174 Remove fmemopen altogether since it just doesn't work.
Closes #9.
2018-07-22 18:39:01 +02:00
jaseg
e298c102bd README: Add Ubuntu/Snap installation. Thanks @simos ! 2017-03-20 18:06:54 +01:00
jaseg
eef0d5db58 Add Mac build instructions 2016-12-26 08:42:44 +01:00
jaseg
8e95919c9f Fix make rule order for system-musl builds 2016-11-19 10:28:45 +01:00
jaseg
55fe98e4d9 Add musl to the arch PKGBUILD dependency list 2016-11-18 10:31:14 +01:00
jaseg
ce0ee8d538 Fix musl build on various platforms 2016-11-18 10:31:10 +01:00
jaseg
f585abdc4f README: Add python-lolcat comparison 2016-10-27 12:51:33 +02:00
jaseg
695eb419ed Add Arch AUR installation instructions 2016-10-27 12:42:51 +02:00
jaseg
6a73fba1b7 Make static build default
The current glibc seems to have a bug in fmemopen leading to a segfault
on fgetwc. Right now, I don't care enough to fix that problem at the source.
2016-10-27 12:41:14 +02:00
Ricardo Band
89f47e6e60 Update README.md
You could also add comparision to [python-lolcat](https://pypi.python.org/pypi/lolcat):

```bash
$ dmesg > foo
$ time python-lolcat foo
real	0m1.503s
user	0m1.609s
sys	0m0.012s
$ time c-lolcat foo
real	0m0.055s
user	0m0.051s
sys	0m0.000s
```
2016-10-27 11:17:46 +02:00
jaseg
33ee440107 Add Arch linux PKGBUILD 2016-09-05 21:22:51 +02:00