summary refs log tree commit diff
path: root/config.c
diff options
context:
space:
mode:
authorKlemens Nanni <klemens@posteo.de>2021-05-23 17:26:19 +0000
committerJune McEnroe <june@causal.agency>2021-05-25 16:11:31 -0400
commit868c604a5548b19cb1678f686172978e3ba52b1a (patch)
tree761d5dcdded4ad653d7e414e3d1f60b2f405c64e /config.c
parentUse color enum instead of hardcoded value (diff)
downloadcatgirl-868c604a5548b19cb1678f686172978e3ba52b1a.tar.gz
catgirl-868c604a5548b19cb1678f686172978e3ba52b1a.zip
Use reverse video not colors for topic change when disabled
`-H 0,0`/"hash = 0,0" makes catgirl mostly colorless which is great,
but topic changes still hardcode brown/green colors to show differences
which is usually not desired by users (like me) disabling colors.

Go for a less eye stressing topic change message that shows both old
and new in reverse video with default terminal colors.

This isn't perfect, other parts of catgirl still hardcode colors and
`-H 0,0`/"hash = 0,0" was never meant to disable colors completely, but
topics change often enough that avoiding less readable^Waccessible topic
diffs seems sensible enough.

NB: parseHash() is brittle and "0,0" is not the only value disabling
colors...
Diffstat (limited to 'config.c')
0 files changed, 0 insertions, 0 deletions
a>June McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe 2019-09-08Set title User-AgentJune McEnroe 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe