def register_palette_entry( self, name, foreground, background, 
        mono=None):
        if foreground == "default":
            foreground = "black"
        if background == "default":
            background = "light gray"
        self.palette[name] = (foreground, background, mono)
Tests sync token / sync mode support
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/web_display.py/Screen.register_palette_entry--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/casexml/apps/phone/tests/test_ota_restore.py/OtaRestoreTest._test_sync_token