Ignore workspaces and improve prompt after Ctrl-C

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
This commit is contained in:
Víctor Mayoral Vilches 2025-05-09 17:50:49 +02:00
parent 0c2cae2066
commit 5186800397
2 changed files with 6 additions and 3 deletions

5
.gitignore vendored
View File

@ -146,4 +146,7 @@ cython_debug/
# CAI files
.cai/
.vscode/
.vscode/
# workspaces
workspaces/

View File

@ -96,7 +96,7 @@ def get_user_input(
# Get user input with all features
return prompt(
[('class:prompt', 'CAI> ')],
[('class:prompt', '\nCAI> ')],
completer=command_completer,
style=create_prompt_style(),
history=FileHistory(str(history_file)),
@ -110,6 +110,6 @@ def get_user_input(
enable_suspend=True, # Allow suspending with Ctrl+Z
enable_open_in_editor=True, # Allow editing with Ctrl+X Ctrl+E
multiline=False, # Enable multiline input
rprompt=get_rprompt, # Missing comma here
rprompt=get_rprompt,
color_depth=None, # Auto-detect color support
)