Closed C-BJ closed 1 year ago
It is common for the cursor shape to be Line in input mode, etc Perhaps that was the intent of the implementation Since you can change the shape, why don't you change it back to the Block shape at the end of the REPL?
pub fn read(&mut self) -> String {
...
execute!(output, MoveToColumn(0), SetCursorShape(CursorShape::Block)).unwrap();
...
}
If not, please remove the following code that changes the shape of the cursor
pub fn read(&mut self) -> String {
...
execute!(output, SetCursorShape(CursorShape::Line)).unwrap();
...
}
I think I was thinking the same thing at first, but it's possible that the terminal cursor wasn't block to begin with.
Does it compile successfully?
cargo run --features full
BTW, Ctrl+Z
seems to have a different meaning than normal exit (Ctrl+D, exit()
); a command entered with Ctrl+Z
is "paused" by Linux convention. A paused command becomes a background process and can be resumed with the fg
command.
Erg should do the same.
I did this because, on Windows, Python prompts you to exit with Ctrl + Z instead of D Maybe we should do different things for different system
Fixes #429 Fixes #428
@mtshiba