mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
On Windows, the console mode flag `ENABLE_VIRTUAL_TERMINAL_PROCESSING` determines whether or not ANSI escape codes are parsed/acted on. On the newer Windows Terminal, this flag is set by default, but on the older Windows Console, it is not set by default, but *can* be enabled (since Windows 10 RS1 from June 2016). The new `File.getOrEnableAnsiEscapeSupport` function will get the current status of ANSI escape code support, but will also attempt to enable `ENABLE_VIRTUAL_TERMINAL_PROCESSING` on Windows if necessary which will provide better/more consistent results for things like `std.Progress` and `std.io.tty`. This type of change was not done previously due to a mistaken assumption (on my part) that the console mode would persist after the run of a program. However, it turns out that the console mode is always reset to the default for each program run in a console session. |
||
|---|---|---|
| .. | ||
| Reader | ||
| bit_reader.zig | ||
| bit_writer.zig | ||
| buffered_atomic_file.zig | ||
| buffered_reader.zig | ||
| buffered_writer.zig | ||
| c_writer.zig | ||
| change_detection_stream.zig | ||
| counting_reader.zig | ||
| counting_writer.zig | ||
| find_byte_writer.zig | ||
| fixed_buffer_stream.zig | ||
| limited_reader.zig | ||
| multi_writer.zig | ||
| Reader.zig | ||
| seekable_stream.zig | ||
| stream_source.zig | ||
| test.zig | ||
| tty.zig | ||
| Writer.zig | ||