From a1d5f347e978bdb62666a90f55c36047e82ed5cf Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Fri, 3 Jun 2022 08:21:52 -0700 Subject: Add --all and cleanup clear_line(). --- ansi.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ansi.py') diff --git a/ansi.py b/ansi.py index a8b84fc..628fed7 100755 --- a/ansi.py +++ b/ansi.py @@ -1619,6 +1619,11 @@ def clear_screen() -> str: return "" +def clear_line() -> str: + """Clear the current line ANSI escape sequence""" + return "\r" + + def reset() -> str: """Reset text attributes to 'normal'""" return "" -- cgit v1.3