-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Zig no longer resets horizontal position in cmd.exe
for compile error messages
#20188
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
Comments
My guess is that this is caused by #20172, specifically with it enabling I was a bit iffy on whether or not Some other relevant info:
|
Can confirm the problem.
In Windows Terminal, this works fine:
In the old Windows console, it does not:
When removing the setting of
Very strange/unfortunate difference, but I think the fix should probably be just removing the attempt to set |
…INE_AUTO_RETURN Follow up to ziglang#20172. Fixes ziglang#20188
…INE_AUTO_RETURN Follow up to ziglang#20172. Fixes ziglang#20188
…INE_AUTO_RETURN Follow up to ziglang#20172. Fixes ziglang#20188
Zig Version
0.13.0-dev.365+332fbb4b0
Steps to Reproduce and Observed Behavior
Tested on
Microsoft Windows 11 Home
, version10.0.22000 Build 22000
.I just updated from
0.13.0-dev.211+6a65561e3
and noticed a difference in compile error output incmd.exe
.To me it looks like the horizontal position isn't reset; my guess would be that Zig is no longer outputting
\r
, and whatever else it is doing isn't working correctly for mycmd.exe
.For the record, on Windows Terminal (which I think is the same as PowerShell?) the output looks correct in both versions.
Expected Behavior
Correctly resetting the horizontal position on line breaks.
I'm not sure whether this is directly caused by #20172 - I tried manually reverting the change in
lib/std/io/tty.zig
, however the output of neitherzig test
nor of the on-demand-compiledzig fmt
changed.However, it's also possible that this error displaying logic is pre-compiled in both cases and so expectedly isn't affected by a change in userland
std
.The text was updated successfully, but these errors were encountered: