From 0d35fa613c83cc459d4859d9b402b593aa147523 Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Tue, 13 Nov 2018 14:00:43 +0000 Subject: [PATCH] core: special case s390x vt220 console on /dev/ttysclp0, as it supports colors. --- subiquitycore/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subiquitycore/core.py b/subiquitycore/core.py index 87594adb..91e2834e 100644 --- a/subiquitycore/core.py +++ b/subiquitycore/core.py @@ -398,7 +398,8 @@ class Application: def run(self): if not hasattr(self, 'loop'): - if self.common['opts'].run_on_serial: + if (self.common['opts'].run_on_serial and + os.ttyname(0) != "/dev/ttysclp0"): palette = self.STYLES_MONO screen = urwid.raw_display.Screen() else: