Mercurial > libervia-backend
diff sat_frontends/jp/base.py @ 3051:ee2654308a57
jp: default to "dark" if background is not set and can't be detected
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 03 Oct 2019 22:17:19 +0200 |
parents | 9839ce068140 |
children | 9d0df638c8b4 |
line wrap: on
line diff
--- a/sat_frontends/jp/base.py Tue Oct 01 22:54:18 2019 +0200 +++ b/sat_frontends/jp/base.py Thu Oct 03 22:17:19 2019 +0200 @@ -131,9 +131,9 @@ for c in expected: ch = sys.stdin.read(1) if ch != c: - # background id is not supported + # background id is not supported, we default to "dark" # TODO: log something? - return + return 'dark' red, green, blue = [int(c, 16)/65535 for c in sys.stdin.read(14).split('/')] # '\a' is the last character sys.stdin.read(1)