changeset 3705:691dbd78981c

cli (debug/theme): display currently used background
author Goffi <goffi@goffi.org>
date Sat, 06 Nov 2021 17:09:28 +0100
parents c143e7f35074
children 5131ed9163c0
files sat_frontends/jp/base.py sat_frontends/jp/cmd_debug.py
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/jp/base.py	Sat Nov 06 17:08:50 2021 +0100
+++ b/sat_frontends/jp/base.py	Sat Nov 06 17:09:28 2021 +0100
@@ -189,6 +189,7 @@
                 'your settings in libervia.conf').format(
                     background=repr(background)
                 ))
+        self.background = background
         if background == 'light':
             C.A_HEADER = A.FG_MAGENTA
             C.A_SUBHEADER = A.BOLD + A.FG_RED
--- a/sat_frontends/jp/cmd_debug.py	Sat Nov 06 17:08:50 2021 +0100
+++ b/sat_frontends/jp/cmd_debug.py	Sat Nov 06 17:09:28 2021 +0100
@@ -199,6 +199,7 @@
         pass
 
     async def start(self):
+        print(f"background currently used: {A.BOLD}{self.host.background}{A.RESET}\n")
         for attr in dir(C):
             if not attr.startswith("A_"):
                 continue