If I start the julia REPL on win10 and then use shell mode to run a cygwin program (e.g. bash or whatever) when I exit the cygwin program the REPL model prompt is messed up.
Is there a way to reset the REPL terminal (like ‘stty sane’ in POSIX)?
Here is an example session, starting with entering shell mode with “;” and then starting the cygwin bash.exe. The bash shell works but on exit the REPL terminal is corrupted.
julia>
shell> c:/cygwin64/bin/bash
me@mypc /cygdrive/c/Users/me/Desktop/projects $
exit
This should be the usual “julia>” prompt:
←[7C←[32m←[1mjulia> ←[0m←[0m
This should be a blank line since I just did a Enter by itself
←[?2004l
Here I’m typing “;” then “cmd”, then “Enter” which looks like this in the REPL terminal
←[10Cmd1m←[1mshell> ←[0m←[0m
←[?2004l←[0mMicrosoft Windows [Version 10.0.19041.572]
(c) 2020 Microsoft Corporation. All rights reserved.C:\Users\me\Desktop\projects>exit
The good news is that apparently CMD escape doesn’t confuse the REPL terminal mode so things get back to nominal:
julia>
For reference, this is what the above sequence entering the shell mode to run CMD should and does look like when the REPL terminal is not confused:
shell> cmd
Microsoft Windows [Version 10.0.19041.572]
(c) 2020 Microsoft Corporation. All rights reserved.C:\Users\chm\Desktop\projects>exit
julia>
This is of interest to me so that I can use cygwin functionality from the julia REPL and it seems that this may be the only issue with that capability working…