Define the prompt after the init is complete

This commit is contained in:
amcmanu3 2022-06-12 20:09:46 -04:00
parent 0dc513297c
commit 1655818afc
2 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class MainPrompt(cmd.Cmd):
self.import3: Import3 = import3
# overrides the default Prompt
self.prompt = f"Crafty Controller v{self.helper.get_version_string()} > "
self.prompt = ""
def emptyline(self):
pass

View File

@ -226,6 +226,9 @@ if __name__ == "__main__":
if not args.daemon:
# Put the prompt under the cursor
crafty_prompt.prompt = (
f"Crafty Controller v{helper.get_version_string()} > "
)
crafty_prompt.print_prompt()
Thread(target=setup_starter, name="setup_starter").start()