change prompt display

This commit is contained in:
Diogo Sousa
2023-02-09 10:49:21 +00:00
parent c855374e6f
commit 11ee026f80
2 changed files with 7 additions and 4 deletions

View File

@@ -152,8 +152,7 @@ class AccountController(BaseController):
configs_diff = get_diff(configs=json.loads(response.content))
if configs_diff:
i = console.input(
"\nDo you want to overwrite your local configurations "
"with the above? (y/n): "
"\nDo you want to load the configurations above? (y/n): "
)
if i.lower() in ["y", "yes"]:
Local.apply_configs(configs=configs_diff)

View File

@@ -16,7 +16,9 @@ from openbb_terminal.session.session_model import (
def display_welcome_message():
"""Display welcome message"""
with open(PACKAGE_DIRECTORY / "session" / "banner.txt") as f:
console.print(f"[menu]{f.read()}[/menu]")
console.print(f"[menu]{f.read()}[/menu]\n")
console.print("Register : [cmds]https://my.openbb.co/register[/cmds]")
console.print("Ask support : [cmds]https://openbb.co/support[/cmds]")
def get_user_input() -> Tuple[str, str, bool]:
@@ -27,7 +29,9 @@ def get_user_input() -> Tuple[str, str, bool]:
Tuple[str, str, bool]
The user email, password and save login option.
"""
console.print("[info]\nPlease enter your credentials:[/info]")
console.print(
"[info]\nPlease enter your credentials or press enter for guest mode:[/info]"
)
s: PromptSession = PromptSession()