Skip to content

Commit

Permalink
Fix prompt glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 24, 2024
1 parent cec7735 commit 9a8996a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion r2ai/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,11 @@ def r2ai_repl(ai):
try:
usertext = input(prompt).strip()
if os.name != "nt":
print("\001\x1b[0m\002", end="")
builtins.print("\001\x1b[0m\002", end="")
except EOFError:
break
except:
traceback.print_exc()
break
try:
if ai.env["chat.bubble"] == "true":
Expand Down

0 comments on commit 9a8996a

Please sign in to comment.