diff options
Diffstat (limited to 'cmd2/ansi.py')
-rw-r--r-- | cmd2/ansi.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py index fbe51b9a..27c9e87a 100644 --- a/cmd2/ansi.py +++ b/cmd2/ansi.py @@ -282,22 +282,13 @@ def style(text: Any, *, fg: Union[str, fg] = '', bg: Union[str, bg] = '', bold: # These can be altered to suit an application's needs and only need to be a # function with the following structure: func(str) -> str style_success = functools.partial(style, fg=fg.green) -""" -Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors -text green to signify success. -""" +"""Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors text to signify success""" style_warning = functools.partial(style, fg=fg.bright_yellow) -""" -Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors -text yellow to signify a warning. -""" +"""Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors text to signify a warning""" style_error = functools.partial(style, fg=fg.bright_red) -""" -Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors -text red to signify an error. -""" +"""Partial function supplying arguments to :meth:`cmd2.ansi.style()` which colors text to signify an error""" def async_alert_str(*, terminal_columns: int, prompt: str, line: str, cursor_offset: int, alert_msg: str) -> str: |