From 0f13332e83d69ec7348e3804ee88bba32d4c748b Mon Sep 17 00:00:00 2001 From: Jerry Yang Date: Mon, 27 Mar 2023 16:13:41 +0800 Subject: [PATCH] fix: no need for using line buffer --- src/utils/io.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/utils/io.py b/src/utils/io.py index 38f4549..dd0e1d8 100644 --- a/src/utils/io.py +++ b/src/utils/io.py @@ -2,7 +2,6 @@ import sys import tempfile import subprocess -import readline from typing import Dict from rich import print @@ -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: