Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
djcopley committed May 7, 2024
1 parent f3398e0 commit 73330fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/shelloracle/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from collections.abc import Mapping, Iterator
from pathlib import Path
from typing import Any

from yaspin.spinners import SPINNERS_DATA

if sys.version_info < (3, 11):
Expand Down
2 changes: 0 additions & 2 deletions src/shelloracle/shelloracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ async def prompt_user(default_prompt: str | None = None) -> str:
with create_app_session_from_tty(), patch_stdout():
history_file = Path.home() / ".shelloracle_history"
prompt_session: PromptSession = PromptSession(history=FileHistory(str(history_file)))
# Can I do this with one of the builtin methods?
# I tried a few (including cursor_down) with limited success
prompt_session.output.write_raw("\033[E")
return await prompt_session.prompt_async("> ", default=default_prompt or "")

Expand Down

0 comments on commit 73330fc

Please sign in to comment.