diff --git a/sat_frontends/jp/base.py b/sat_frontends/jp/base.py index b8a30183..e113b2f1 100644 --- a/sat_frontends/jp/base.py +++ b/sat_frontends/jp/base.py @@ -120,6 +120,8 @@ class Jp(object): return config.getConfig(self.sat_conf, section, name, default=default) def guess_background(self): + if not sys.stdout.isatty(): + return 'dark' stdin_fd = sys.stdin.fileno() old_settings = termios.tcgetattr(stdin_fd) try: