common : change --color to accept on/off/auto, default to auto (#17827)

This commit is contained in:
Sigbjørn Skjæret
2025-12-07 03:43:50 +01:00
committed by GitHub
parent d9e03db1e7
commit 22577583a3
4 changed files with 54 additions and 32 deletions
+7
View File
@@ -655,6 +655,13 @@ struct common_file_info {
};
std::vector<common_file_info> fs_list(const std::string & path, bool include_directories);
//
// TTY utils
//
// Auto-detect if colors can be enabled based on terminal and environment
bool tty_can_use_colors();
//
// Model utils
//