Skip to content

Commit

Permalink
Merge pull request #8 from Younis-Ahmed:feat.test-env
Browse files Browse the repository at this point in the history
Clear console after user input in panel.py
  • Loading branch information
TheAfroEngineer authored Mar 26, 2024
2 parents b29f005 + a339cc2 commit 3cc48e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions senior_swe_ai/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,14 @@ def size(self) -> int:

if __name__ == "__main__":
panel = PanelBase("Chat Panel", width=70)

while True:
user = panel.console.input("User: ")
panel.create_chatbox("User", user, is_ai=False)
panel.console.clear()
panel.print_stdout()
ai = panel.console.input("AI: ")
panel.create_chatbox("AI", ai)
panel.console.clear()

panel.print_stdout()

0 comments on commit 3cc48e5

Please sign in to comment.