summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraristocratos <admin@qvantnet.com>2021-10-09 17:36:46 +0200
committeraristocratos <admin@qvantnet.com>2021-10-09 17:36:46 +0200
commitaee9179c0a98bce54b55c8bb8ebdc1ac99bad69e (patch)
tree7ee1d4b1a3a453b2554595c0e771cf00619cc268
parent4b7b98058d7190a494fa522834217d786d71e5fb (diff)
Disable failed tty mode detection for OSX
-rw-r--r--src/btop.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/btop.cpp b/src/btop.cpp
index 2e0b01b..793f40f 100644
--- a/src/btop.cpp
+++ b/src/btop.cpp
@@ -771,10 +771,12 @@ int main(int argc, char **argv) {
Config::set("tty_mode", true);
Logger::info("Forcing tty mode: setting 16 color mode and using tty friendly graph symbols");
}
+#ifndef __APPLE__
else if (not Global::arg_tty and Term::current_tty.starts_with("/dev/tty")) {
Config::set("tty_mode", true);
Logger::info("Real tty detected: setting 16 color mode and using tty friendly graph symbols");
}
+#endif
//? Check for valid terminal dimensions
{