mirror of
https://github.com/polybar/polybar.git
synced 2026-05-02 12:23:48 +00:00
fix(logger): Use correct fd when testing if it's a tty
This commit is contained in:
@ -38,7 +38,7 @@ class logger {
|
||||
* Construct logger
|
||||
*/
|
||||
explicit logger(loglevel level) : m_level(level) {
|
||||
if (isatty(STDOUT_FILENO)) {
|
||||
if (isatty(m_fd)) {
|
||||
// clang-format off
|
||||
m_prefixes[loglevel::TRACE] = "\r\033[0;90m- ";
|
||||
m_prefixes[loglevel::INFO] = "\r\033[1;32m* \033[0m";
|
||||
|
||||
Reference in New Issue
Block a user