-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
A-streamArea: anstreamArea: anstreamC-bugCategory: Things not working as expectedCategory: Things not working as expected
Description
Cargo.toml
[package]
name = "anstream-test"
version = "0.1.0"
edition = "2021"
[dependencies]
anstream = "0.6.18"src/main.rs
use anstream::{print, println};
fn main() {
print!("\x1b[90m(print!) This text is displayed in gray.\n");
print!("(print!) This text should also be displayed in gray.\n");
println!("\x1b[90m(println!) This text is displayed in gray.");
println!("(println!) This text should also be displayed in gray.\x1b[0m");
}Steps to reproduce
Run cargo run in CMD/PowerShell with 'Legacy Console mode' enabled.
Expected result
All the lines should be displayed in gray, just like in the non-legacy Windows Console.
Actual result
Only the lines that output \x1b[90m are displayed in gray (1st and 3rd lines).
Environment
- Windows 10 22H2 Home x64
10.0.19045.5011 - Visual Studio Community 2022
17.11.5/ Windows 11 SDK10.0.26100.0 - Default host:
x86_64-pc-windows-msvc - Active toolchain:
stable-x86_64-pc-windows-msvc(default) / rustc1.82.0(f6e511eec 2024-10-15)
Metadata
Metadata
Assignees
Labels
A-streamArea: anstreamArea: anstreamC-bugCategory: Things not working as expectedCategory: Things not working as expected