Esempio n. 1
0
 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'$ '
Esempio n. 2
0
 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'$ '
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)
Esempio n. 5
0
File: selector.py Progetto: hick/x84
 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)
Esempio n. 6
0
File: editor.py Progetto: hick/x84
 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'$ '
Esempio n. 7
0
File: editor.py Progetto: hick/x84
 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'$ '
Esempio n. 8
0
 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)
Esempio n. 9
0
File: lightbar.py Progetto: hick/x84
 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)
Esempio n. 10
0
 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)
Esempio n. 11
0
 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
Esempio n. 12
0
 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'] = '$ '
Esempio n. 13
0
    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"] = "$ "
Esempio n. 14
0
 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)
Esempio n. 15
0
 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)