claude-statusline-powerline
Version:
Beautiful powerline-style statusline for Claude Code with git integration, session tracking, and cost monitoring
110 lines • 3.21 kB
TypeScript
/**
* Shared ANSI color constants and utilities
*/
export declare const ANSI_RESET = "\u001B[0m";
export declare const ANSI_BG: {
readonly red: "\u001B[41m";
readonly green: "\u001B[42m";
readonly yellow: "\u001B[43m";
readonly blue: "\u001B[44m";
readonly purple: "\u001B[45m";
readonly cyan: "\u001B[46m";
readonly white: "\u001B[47m";
readonly gray: "\u001B[100m";
readonly bright_black: "\u001B[100m";
};
export declare const ANSI_FG: {
readonly black: "\u001B[30m";
readonly red: "\u001B[31m";
readonly green: "\u001B[32m";
readonly yellow: "\u001B[33m";
readonly blue: "\u001B[34m";
readonly purple: "\u001B[35m";
readonly cyan: "\u001B[36m";
readonly white: "\u001B[37m";
readonly bright_white: "\u001B[97m";
readonly gray: "\u001B[90m";
};
export declare const FALLBACK_COLORS: {
readonly model: {
readonly bg: "\u001B[44m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[34m";
};
readonly directory: {
readonly bg: "\u001B[100m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[90m";
};
readonly git_clean: {
readonly bg: "\u001B[42m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[32m";
};
readonly git_dirty: {
readonly bg: "\u001B[43m";
readonly fg: "\u001B[30m";
readonly separator: "\u001B[33m";
};
readonly session: {
readonly bg: "\u001B[45m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[35m";
};
readonly context: {
readonly bg: "\u001B[46m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[36m";
};
readonly usage: {
readonly bg: "\u001B[45m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[35m";
};
readonly error: {
readonly bg: "\u001B[41m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[31m";
};
};
/**
* Create a styled text with foreground and background colors
*/
export declare function create_styled_text(text: string, fg_color: string, bg_color?: string): string;
/**
* Get fallback colors for a segment type
*/
export declare function get_fallback_colors(segment_type: keyof typeof FALLBACK_COLORS): {
readonly bg: "\u001B[44m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[34m";
} | {
readonly bg: "\u001B[100m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[90m";
} | {
readonly bg: "\u001B[42m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[32m";
} | {
readonly bg: "\u001B[43m";
readonly fg: "\u001B[30m";
readonly separator: "\u001B[33m";
} | {
readonly bg: "\u001B[45m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[35m";
} | {
readonly bg: "\u001B[46m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[36m";
} | {
readonly bg: "\u001B[45m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[35m";
} | {
readonly bg: "\u001B[41m";
readonly fg: "\u001B[97m";
readonly separator: "\u001B[31m";
};
//# sourceMappingURL=ansi.d.ts.map