Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCtrl+Z and Ctrl+C don't exit GPython on Windows 10 #80
Comments
|
Does CTRL-D exit the REPL under Windows? I think this might be a bug in https://github.com/peterh/liner/ which gpython uses. |
|
That's interesting. Ctrl+D does work perfect. Then this can get closed for now, I think. |
In windows the exit sequence is CTRL-Z RETURN. It may be possible to emulate that as well in gpython. What happens is this This appears when you press CTRL-Z
And only when you press RETURN after that does the interpreter exit. So we could emulate this just by looking for a string with CTRL-Z in it maybe.. Not sure exactly how liner would deal with that though. I'll leave this open as an enhancement if someone wants to have a go at it. |


Currently it's hard to close the REPL on Windows using standard terminal.
On WSL Ubuntu it works with Ctrl+Z, in Windows nothing happens.