Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_debug.py @ 3705:691dbd78981c
cli (debug/theme): display currently used background
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 06 Nov 2021 17:09:28 +0100 |
parents | 04283582966f |
children | 524856bd7b19 |
comparison
equal
deleted
inserted
replaced
3704:c143e7f35074 | 3705:691dbd78981c |
---|---|
197 | 197 |
198 def add_parser_options(self): | 198 def add_parser_options(self): |
199 pass | 199 pass |
200 | 200 |
201 async def start(self): | 201 async def start(self): |
202 print(f"background currently used: {A.BOLD}{self.host.background}{A.RESET}\n") | |
202 for attr in dir(C): | 203 for attr in dir(C): |
203 if not attr.startswith("A_"): | 204 if not attr.startswith("A_"): |
204 continue | 205 continue |
205 color = getattr(C, attr) | 206 color = getattr(C, attr) |
206 if attr == "A_LEVEL_COLORS": | 207 if attr == "A_LEVEL_COLORS": |