just like the question!! I always kill the progress by kill the main shell. I want to change this way.
The command ".exit" also will exit the console.
pressing ctrl+d will exit the console.
ctrl+d
press ctrl+c This will also exit the console.
Typing exit is ok. No need to kill the terminal.
exit