# HG changeset patch # User Goffi # Date 1636214968 -3600 # Node ID 691dbd78981c1a2ec973f66c107eaae5a016d83a # Parent c143e7f35074f4ee64e1e02652e8c3e4b788160e cli (debug/theme): display currently used background diff -r c143e7f35074 -r 691dbd78981c sat_frontends/jp/base.py --- 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 diff -r c143e7f35074 -r 691dbd78981c sat_frontends/jp/cmd_debug.py --- 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