コード例 #1
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def bg_yellow(self, string):
   s = ''
   if self.colorize and self.colorize_bg:
     s = colorize(['BG_YELLOW'], str(string))
   else:
     s = string
     return s
コード例 #2
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def bg_red(self, string):
   s = ''
   if self.colorize and self.colorize_bg:
     s = colorize(['BG_RED'], str(string))
   else:
     s = string
     return s
コード例 #3
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def bg_green(self, string):
   s = ''
   if self.colorize and self.colorize_bg:
     s = colorize(['BG_GREEN'], str(string))
   else:
     s = string
     return s
コード例 #4
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def fg_black(self, string):
   s = ''
   if self.colorize and self.colorize_fg:
     s = colorize(['FG_BLACK'], str(string))
   else:
     s = string
     return s
コード例 #5
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def white(self, string):
   s = ''
   if self.colorize and self.colorize_fg:
     s = colorize(['FG_WHITE'], str(string))
   else:
     s = string
     return s
コード例 #6
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def cyan(self, string):
   s = ''
   if self.colorize and self.colorize_fg:
     s = colorize(['FG_CYAN'], str(string))
   else:
     s = string
     return s
コード例 #7
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def bg_blue(self, string):
   s = ''
   if self.colorize and self.colorize_bg:
     s = colorize(['BG_BLUE'], str(string))
   else:
     s = string
     return s
コード例 #8
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def bg_white(self, string):
   s = ''
   if self.colorize and self.colorize_bg:
     s = colorize(['BG_WHITE'], str(string))
   else:
     s = string
     return s
コード例 #9
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def red(self, string):
   s = ''
   if self.colorize and self.colorize_fg:
     s = colorize(['FG_RED'], str(string))
   else:
     s = string
     return s
コード例 #10
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def green(self, string):
   s = ''
   if self.colorize and self.colorize_fg:
     s = colorize(['FG_GREEN'], str(string))
   else:
     s = string
     return s
コード例 #11
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def bg_cyan(self, string):
   s = ''
   if self.colorize and self.colorize_bg:
     s = colorize(['BG_CYAN'], str(string))
   else:
     s = string
     return s
コード例 #12
0
ファイル: colors.py プロジェクト: nounch/brainbow
 def bg_magenta(self, string):
   s = ''
   if self.colorize and self.colorize_bg:
     s = colorize(['BG_MAGENTA'], str(string))
   else:
     s = string
     return s
コード例 #13
0
ファイル: colors.py プロジェクト: nounch/brainbow
def bg_yellow(string):
  return colorize(['BG_YELLOW'], str(string))
コード例 #14
0
ファイル: colors.py プロジェクト: nounch/brainbow
def bg_green(string):
  return colorize(['BG_GREEN'], str(string))
コード例 #15
0
ファイル: colors.py プロジェクト: nounch/brainbow
def bg_red(string):
  return colorize(['BG_RED'], str(string))
コード例 #16
0
ファイル: colors.py プロジェクト: nounch/brainbow
def bg_black(string):
  return colorize(['BG_BLACK'], str(string))
コード例 #17
0
ファイル: colors.py プロジェクト: nounch/brainbow
def fg_white(string):
  return colorize(['FG_WHITE'], str(string))
コード例 #18
0
ファイル: colors.py プロジェクト: nounch/brainbow
def fg_cyan(string):
  return colorize(['FG_CYAN'], str(string))
コード例 #19
0
ファイル: colors.py プロジェクト: nounch/brainbow
def fg_blue(string):
  return colorize(['FG_BLUE'], str(string))
コード例 #20
0
ファイル: colors.py プロジェクト: nounch/brainbow
def fg_yellow(string):
  return colorize(['FG_YELLOW'], str(string))
コード例 #21
0
ファイル: colors.py プロジェクト: nounch/brainbow
def fg_green(string):
  return colorize(['FG_GREEN'], str(string))
コード例 #22
0
ファイル: colors.py プロジェクト: nounch/brainbow
def bg_cyan(string):
  return colorize(['BG_CYAN'], str(string))
コード例 #23
0
ファイル: colors.py プロジェクト: nounch/brainbow
def bg_blue(string):
  return colorize(['BG_BLUE'], str(string))
コード例 #24
0
ファイル: colors.py プロジェクト: nounch/brainbow
def magenta(string):
  return colorize(['FG_MAGENTA'], str(string))
コード例 #25
0
ファイル: colors.py プロジェクト: nounch/brainbow
def bg_magenta(string):
  return colorize(['BG_MAGENTA'], str(string))
コード例 #26
0
ファイル: colors.py プロジェクト: nounch/brainbow
def fg_black(string):
  return colorize(['FG_BLACK'], str(string))
コード例 #27
0
ファイル: colors.py プロジェクト: nounch/brainbow
def bg_white(string):
  return colorize(['BG_WHITE'], str(string))
コード例 #28
0
ファイル: colors.py プロジェクト: nounch/brainbow
def fg_red(string):
  return colorize(['FG_RED'], str(string))