diff options
| author | Scott Gasch <[email protected]> | 2021-09-15 16:08:50 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-09-15 16:08:50 -0700 |
| commit | d92df9c03f8510042ee1f8949d0786761f01d35e (patch) | |
| tree | e449a72ab193f895cd4df612628080d940279712 /ansi.py | |
| parent | 4c315e387f18010ba0b5661744ad3c792f21d2d1 (diff) | |
Logging + documentation.
Diffstat (limited to 'ansi.py')
| -rwxr-xr-x | ansi.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8,6 +8,8 @@ import re import sys from typing import Any, Callable, Dict, Iterable, Optional, Tuple +import logging_utils + logger = logging.getLogger(__name__) # https://en.wikipedia.org/wiki/ANSI_escape_code @@ -1726,6 +1728,7 @@ def _find_color_by_name(name: str) -> Tuple[int, int, int]: return rgb +@logging_utils.squelch_repeated_log_messages(1) def fg(name: Optional[str] = "", red: Optional[int] = None, green: Optional[int] = None, |
