diff --git a/jrnl/output.py b/jrnl/output.py index 37caa24c..85e17a62 100644 --- a/jrnl/output.py +++ b/jrnl/output.py @@ -48,7 +48,7 @@ def print_msgs( delimiter: str = "\n", style: MsgStyle = MsgStyle.NORMAL, get_input: bool = False, - screen_input: bool = False, + hide_input: bool = False, ) -> Union[None, str]: # Same as print_msg, but for a list text = Text("", end="") @@ -72,7 +72,7 @@ def print_msgs( # Always print messages to stderr console = Console(stderr=True) if get_input: - return str(console.input(prompt=decorated_text, password=screen_input)) + return str(console.input(prompt=decorated_text, password=hide_input)) console.print(decorated_text, new_line_start=style.prepend_newline) diff --git a/jrnl/prompt.py b/jrnl/prompt.py index a0efd539..74f5f1fb 100644 --- a/jrnl/prompt.py +++ b/jrnl/prompt.py @@ -10,7 +10,7 @@ from jrnl.output import print_msgs def create_password(journal_name: str) -> str: kwargs = { "get_input": True, - "screen_input": True, + "hide_input": True, } while True: pw = print_msg(Message(MsgText.PasswordFirstEntry, MsgStyle.PROMPT), **kwargs) diff --git a/tests/unit/test_output.py b/tests/unit/test_output.py index 050375ff..0fa9f45b 100644 --- a/tests/unit/test_output.py +++ b/tests/unit/test_output.py @@ -20,7 +20,7 @@ def test_print_msg_calls_print_msgs_with_kwargs(print_msgs): kwargs = { "delimter": "test delimiter 🤡", "get_input": True, - "screen_input": True, + "hide_input": True, "some_rando_arg": "💩", } print_msg(test_msg, **kwargs)