X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=ansi.py;fp=ansi.py;h=628fed7144442cd5b7d13b7d136ac0fc66532d7f;hb=a1d5f347e978bdb62666a90f55c36047e82ed5cf;hp=a8b84fc0c2dd0acce18e96d21d86eb2b2da409b7;hpb=3ca9b4d16433af8da5d2de7f4a2338b56b5428d5;p=python_utils.git 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 ""