def init_theme(self, colors=None, glyphs=None): """ Set color and bordering glyphs theme. """ AnsiWindow.init_theme(self, colors, glyphs) if 'highlight' not in self.colors: self.colors['highlight'] = self._term.yellow_reverse if 'strip' not in self.glyphs: self.glyphs['strip'] = u'$ '
def init_theme(self): """ Initialize color['highlight']. """ from x84.bbs.session import getterminal self.colors['highlight'] = getterminal().reverse_green self.glyphs['strip'] = u' $' # indicates content was stripped AnsiWindow.init_theme(self)
def init_theme(self, colors=None, glyphs=None): from x84.bbs.session import getterminal term = getterminal() colors = colors or { 'selected': term.reverse_yellow, 'unselected': term.bold_black, } AnsiWindow.init_theme(self, colors=colors, glyphs=glyphs)
def init_theme(self, colors=None, glyphs=None): AnsiWindow.init_theme(self, colors, glyphs) if 'highlight' not in self.colors: from x84.bbs.session import getterminal term = getterminal() self.colors['highlight'] = term.yellow_reverse if 'strip' not in self.glyphs: self.glyphs['strip'] = u'$ '
def init_theme(self, colors=None, glyphs=None): """ Initialize color['highlight']. """ from x84.bbs.session import getterminal colors = colors or {'highlight': getterminal().reverse_yellow} glyphs = glyphs or {'strip': u' $'} AnsiWindow.init_theme(self, colors, glyphs)
def init_theme(self): """ Initialize colors['selected'] and colors['unselected']. """ from x84.bbs.session import getterminal term = getterminal() AnsiWindow.init_theme(self) self.colors['selected'] = term.reverse self.colors['unselected'] = term.normal
def init_theme(self): """ Initialize colors['highlight'] as REVERSE and glyphs['strip'] as '$ '. """ import x84.bbs.session term = x84.bbs.session.getterminal() AnsiWindow.init_theme(self) self.colors['highlight'] = term.yellow_reverse self.glyphs['strip'] = '$ '
def init_theme(self): """ Initialize colors['highlight'] as REVERSE and glyphs['strip'] as '$ '. """ import x84.bbs.session term = x84.bbs.session.getterminal() AnsiWindow.init_theme(self) self.colors["highlight"] = term.yellow_reverse self.glyphs["strip"] = "$ "
def init_theme(self, colors=None, glyphs=None): """ Set color and bordering glyphs theme. """ colors = colors or {'highlight': getterminal().reverse_yellow} glyphs = glyphs or {'strip': u' $'} AnsiWindow.init_theme(self, colors, glyphs)