3 ms·
Many CLI tools will detect if they are running in an interactive shell and change their output accordingly. Git for example will colourise terminal output if i
by Cogito 8y ago
Many CLI tools will detect if they are running in an interactive shell and change their output accordingly.
Git for example will colourise terminal output if it can tell a person is interacting with it, but if a script is calling then the colour markers won't be added (and there are many many other examples of similar behaviour).