Skip to content

Commit

Permalink
fix: no need for using line buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
efJerryYang committed Mar 27, 2023
1 parent 3deeb46 commit 0f13332
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys
import tempfile
import subprocess
import readline
from typing import Dict

from rich import print
Expand Down Expand Up @@ -120,7 +119,6 @@ def user_input(prompt="\nUser: ") -> str:
lines.append(line)
# Update the prompt using readline
prompt = "\r" + " " * len(prompt) + "\r" + " .... "
readline.get_line_buffer()
# Print a message indicating that the input has been submitted
msg = "\n".join(lines).strip()
if not msg:
Expand Down

0 comments on commit 0f13332

Please sign in to comment.