Skip to content

Commit

Permalink
Remove a temporary workaround that's no longer needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Apr 7, 2023
1 parent e96d323 commit 7280dcd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ use windows_sys::Win32::System::Console::{

use crate::{AsHandleRef, HandleRef};

// TODO: windows-sys declares these types with `u32` but we need them to be
// `u16`, so we cast them ourselves. Filed upstream:
// <https://github.com/microsoft/windows-rs/issues/1824>
const FG_BLUE: u16 = FOREGROUND_BLUE as u16;
const FG_GREEN: u16 = FOREGROUND_GREEN as u16;
const FG_INTENSITY: u16 = FOREGROUND_INTENSITY as u16;
const FG_RED: u16 = FOREGROUND_RED as u16;
use FOREGROUND_BLUE as FG_BLUE;
use FOREGROUND_GREEN as FG_GREEN;
use FOREGROUND_INTENSITY as FG_INTENSITY;
use FOREGROUND_RED as FG_RED;

const FG_CYAN: u16 = FG_BLUE | FG_GREEN;
const FG_MAGENTA: u16 = FG_BLUE | FG_RED;
Expand Down

0 comments on commit 7280dcd

Please sign in to comment.