summaryrefslogtreecommitdiff
path: root/lolcat.c
AgeCommit message (Collapse)AuthorFilesLines
2024-07-04Make lolcat interleave nicely with non-colored stderrjaseg1-0/+3
This works by making lolcat always reset the color at the end of a line on its input, and only setting a new color immediately before printing the first character on the next line. This way, assuming that whatever process is piped into lolcat follow the standard convention where stdout is buffered line-wise, and only writes full lines to stderr, a process that outputs to both stdout and stderr but that has only stdout piped through lolcat (as most people would do) would have it's stderr output interleave nicely uncolored with the lolcat-colored stdout output. This won't always work, but it gets us most of the way there with little effort and negligible (2 extra escape sequences per line of output) performance overhead. Thanks to github user @kolayne for reporting this as an issue!
2023-02-26Bump version to v1.4v1.4jaseg1-1/+1
2023-02-26Fix handling of repeated escape sequences and certain XTERM title sequencesjaseg1-16/+46
2022-11-19Bump version to v1.3v1.3jaseg1-1/+1
2022-11-19Extend escape sequence parser to support various ST-terminated sequencesjaseg1-10/+48
This improves interactions with programs using them to set the terminal window title or display images among other things. Closes #42.
2022-11-19Remove redundant codejaseg1-70/+0
2022-11-19Add --gradient option, allow specification of custom gradients.jaseg1-14/+193
Closes #47
2022-11-19Add new option `--invert`.Nor Khasyatillah1-3/+18
2022-11-19Add new option `--seed`Nor Khasyatillah1-1/+13
2022-11-19Add 16-color mode for limited terminalsjaseg1-1/+16
closes #43
2021-07-28Add manual start color offsetThomas Friese1-3/+13
2021-01-16Bump version to v1.2v1.2jaseg1-1/+1
2020-12-25Bump version to v1.1v1.1jaseg1-1/+1
2020-12-25Add fallback for locale-setting on systems without C.UTF-8 localejaseg1-4/+7
2020-12-25Add random support for rgb modejaseg1-1/+1
2020-12-25Update help string for long optionsjaseg1-9/+10
2020-12-25Add long option namesjaseg1-6/+6
2020-12-25Add daytime offset to 24-bit rgb color option toojaseg1-1/+1
2020-12-25Add help string for -b 24-bit rgb color optionjaseg1-0/+2
2020-12-25Make rgb rainbow match xterm palette more closelyjaseg1-5/+9
2020-12-25Make rgb support off-by-defaultjaseg1-3/+3
2020-12-25add RGB 24bits color support (default)Remy Noulin1-3/+16
Option -8bits is for 256 colors lolcat.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-)
2020-12-25Fix incorrect usage of ferror after fclosejaseg1-3/+7
Closes #35
2019-11-10https instead of httpjosef radinger1-3/+3
2019-11-10Fix compiler warning about missing time headerjaseg1-0/+1
2019-11-10Add random optionEdgar Fouillet1-2/+11
2019-11-10lolcat: Fix segfault on launch when LANG is undefinedEdgar Fouillet1-1/+2
Closes #27
2019-06-17Fix project url and bump version to v1.0jaseg1-4/+4
Thanks @bratkartoffel . Closes #23
2019-06-17Don't force C.UTF-8 when locale is UTF-8 alreadym3tav3rse1-1/+1
closes #21
2019-06-16lolcat: Remove redundant newline at end of outputjaseg1-1/+1
2018-12-02Pull out inline function to make clang happyv1.0jaseg1-11/+11
Thanks @Janfel and @dosentmatter for reporting this. Fixes #14.
2018-12-02Make functions staticjaseg1-3/+3
2018-12-02Force encoding to utf8 by default, allow override via -l switchjaseg1-1/+8
2018-12-02Fix TTY check for color outputjaseg1-2/+5
Thanks @BourgeoisBear!
2018-12-02Use wprintf and putwchar instead of printfjaseg1-7/+7
Thanks @BourgeoisBear
2018-12-02Use wint_t for find_escape_sequencesjaseg1-1/+1
Thanks @BourgeoisBear
2018-07-22Fix color array typejaseg1-1/+1
2018-07-22auto-format c sourcesjaseg1-80/+84
2018-07-22Fix variable scope bugjaseg1-2/+2
2018-07-22Remove fmemopen altogether since it just doesn't work.jaseg1-22/+38
Closes #9.
2016-04-28Compile dynamically linked executables on MacOSjaseg1-2/+6
2016-04-27Formatting fixesjaseg1-105/+105
2015-07-07Link statically against musljaseg1-4/+2
2014-10-26Fixed mulit-column character handlingjaseg1-2/+2
2014-10-26Removed an obsolete commentjaseg1-1/+0
2014-10-25Made lolcat clean up after itself by resetting the term colorjaseg1-1/+2
2014-10-25Made the newline behavior compliant with the one of cat(1)jaseg1-0/+1
2014-10-25Fixed --help, also added some randomness.jaseg1-18/+70
2014-10-24Fixed escape sequence pass-throughjaseg1-15/+34
2014-10-24Added a LICENSEjaseg1-0/+15