clauth 0.3.0

Simple Claude Code account switcher and usage monitor
1
2
3
4
5
6
7
8
9
10
11
12
/// Enable virtual-terminal processing on Windows so ANSI escapes in raw mode
/// render correctly even before ratatui's terminal takes over. No-op on
/// macOS and Linux where ANSI is always supported.
pub(crate) fn init() {
    #[cfg(windows)]
    {
        use ratatui::crossterm::execute;
        use std::io::stdout;
        // A no-op command is enough to trigger crossterm's ANSI-enable path.
        let _ = execute!(stdout(), ratatui::crossterm::style::ResetColor);
    }
}