watson.console.styles

watson.console.styles.bold(string, terminate=True)[source]

Bolds text within the terminal.

Example:

Parameters:
  • string (string) – The string to wrap
  • terminate (boolean) – Whether or not to terminate the styling
watson.console.styles.format_style(string, start, end='\x1b[0m')[source]

Formats text for usage within the terminal.

Example:

Parameters:
  • string (string) – The string to wrap
  • terminate (boolean) – Whether or not to terminate the styling
watson.console.styles.underline(string, terminate=True)[source]

Underlines text within the terminal.

Example:

Parameters:
  • string (string) – The string to wrap
  • terminate (boolean) – Whether or not to terminate the styling