mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-29 16:50:20 +12:00
Disable failed tty mode detection for OSX
This commit is contained in:
parent
4b7b98058d
commit
aee9179c0a
|
@ -771,10 +771,12 @@ int main(int argc, char **argv) {
|
||||||
Config::set("tty_mode", true);
|
Config::set("tty_mode", true);
|
||||||
Logger::info("Forcing tty mode: setting 16 color mode and using tty friendly graph symbols");
|
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")) {
|
else if (not Global::arg_tty and Term::current_tty.starts_with("/dev/tty")) {
|
||||||
Config::set("tty_mode", true);
|
Config::set("tty_mode", true);
|
||||||
Logger::info("Real tty detected: setting 16 color mode and using tty friendly graph symbols");
|
Logger::info("Real tty detected: setting 16 color mode and using tty friendly graph symbols");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//? Check for valid terminal dimensions
|
//? Check for valid terminal dimensions
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue