Skip to content

Commit

Permalink
Colorize prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 14, 2024
1 parent 140209a commit bffaa3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions r2ai/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ def r2ai_repl(ai):
ai.env["chat.live"] = "true"
while True:
prompt = "[r2ai:" + oldoff + "]> "
if os.name != "nt":
prompt = f"\x1b[33m{prompt}\x1b[0m"
if r2 is not None:
off = r2_cmd("s").strip()
if off == "":
Expand Down

0 comments on commit bffaa3a

Please sign in to comment.