-
-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running the hello.com tutorial compiled in WSL2 in a CMD.exe prompt on Windows 10 corrupts it #60
Comments
same issue on my machine. build on WSL2, run in WSL2 - OK, run in win32 CMD.exe - as above. |
A temporary workaround for this is to run in a Powershell console, where this doesn't happen, or just run See also https://ss64.com/nt/chcp.html for more on Edit to add: actually, it seems you can just run |
It looks like we ought to grab the codepage at the beginning and then restore it on exit. I'll take a look at doing that and see if that is what is causing it. It worries me that it got fixed without resetting the codepage. Maybe there is something else that needs to be reset. |
Thanks for the report. It seems what was happening is that the virtual processing terminal mode was persisting across processes. I've now fixed things so that exit() will restore the console mode. You can download the latest binaries here: https://justine.lol/redbean/index.html and https://justine.lol/cosmopolitan/download.html |
After you run it, you can no longer use the arrow keys to go to the previous command, instead it prints the control characters: ^[[A
The text was updated successfully, but these errors were encountered: