roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.03k stars 205 forks source link

Support NO_COLOR and FORCE_COLOR env variables #564

Closed gavv closed 6 months ago

gavv commented 9 months ago

Upgrade CLI tools (roc-send, roc-recv, roc-copy) to take into account two environment variables when color mode is auto:

See https://no-color.org/

It should be implemented here: https://github.com/roc-streaming/roc-toolkit/blob/develop/src/internal_modules/roc_core/target_posix_pc/roc_core/console.cpp

Also add "ENVIRONMENT VARIABLES" section to manual pages and document these variables: https://github.com/roc-streaming/roc-toolkit/tree/develop/docs%2Fsphinx%2Fmanuals

Like here: https://man7.org/linux/man-pages/man1/less.1.html

After updating rst files, please regenerate manual pages as described here: https://roc-streaming.org/toolkit/docs/building/developer_cookbook.html#building-documentation

And add generated pages to commit.

nolan-veed commented 6 months ago

This is cool. I'll do.

gavv commented 6 months ago

Thanks, landed.