tools/perf/core/cli_helpers.py
def Colored(message, color):
  """Wraps the message into ASCII color escape codes.

  Args:
    message: Message to be wrapped.
    color: See COLOR_ANSI_CODE_MAP.keys() for available choices.
  """
  # This only works on Linux and OS X. Windows users must install ANSICON or
  # use VT100 emulation on Windows 10.
  assert color in COLOR_ANSI_CODE_MAP, 'Unsupported color'
  return '\033[%dm%s\033[0m' % (COLOR_ANSI_CODE_MAP[color], message)
Wraps the message into ASCII color escape codes.

  Args:
    message: Message to be wrapped.
    color: See COLOR_ANSI_CODE_MAP.keys() for available choices.
  
Wraps the message into ASCII color escape codes.
Wraps the message into ASCII color escape codes .
def Colored(message, color):
  assert color in COLOR_ANSI_CODE_MAP, 'Unsupported color'
  return '\033[%dm%s\033[0m' % (COLOR_ANSI_CODE_MAP[color], message)
def Colored ( message , color ) : assert color in COLOR_ANSI_CODE_MAP , 'Unsupported color' return '\033[%dm%s\033[0m' % ( COLOR_ANSI_CODE_MAP [ color ] , message )
Wraps the message into ASCII color escape codes.
Wraps the message into ASCII color escape codes .
"""Wraps the message into ASCII color escape codes.

  Args:
    message: Message to be wrapped.
    color: See COLOR_ANSI_CODE_MAP.keys() for available choices.
  """ # This only works on Linux and OS X. Windows users must install ANSICON or # use VT100 emulation on Windows 10.
message
Message to be wrapped.
Message to be wrapped .
color
See COLOR_ANSI_CODE_MAP.keys() for available choices.
See COLOR_ANSI_CODE_MAP . keys () for available choices .