summaryrefslogtreecommitdiff
path: root/ansi.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-06-03 08:21:52 -0700
committerScott Gasch <[email protected]>2022-06-03 08:21:52 -0700
commita1d5f347e978bdb62666a90f55c36047e82ed5cf (patch)
tree6d77af4917439e34663fc0f97062e78d294e15fb /ansi.py
parent3ca9b4d16433af8da5d2de7f4a2338b56b5428d5 (diff)
Add --all and cleanup clear_line().
Diffstat (limited to 'ansi.py')
-rwxr-xr-xansi.py5
1 files changed, 5 insertions, 0 deletions
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 ""