Ctrl+Z and Ctrl+C don't exit GPython on Windows 10
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.
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.
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
>>> ^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.