mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 18:15:08 +00:00

This changes the default behavior, so that, by default, color codes, hyperlinks and additional spacing are only emitted when standard output is connected to a terminal. The default coloring behavior can be overridden with the `--color` option. Valid arguments for this option are: 'always', 'never' and 'auto' (default).
474 B
474 B
Name
fortune
Synopsis
$ fortune [--color when] [path]
Description
Open a fortune cookie, receive a free quote for the day!
Options
--color when
: Chose when to color the output. Valid options are always, never and auto (default). When color is set to auto, color codes will be emitted when stdout is a terminal
Arguments
path
: Path to JSON file with quotes (/res/fortunes.json by default)