clauth 0.1.3

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