fix: fixing the exit message service to use constants

- Avoiding mouse events for exit messages on terminal on stop process
This commit is contained in:
2026-02-06 11:49:23 -05:00
parent d1b00a2115
commit f767987a42
4 changed files with 98 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
/**
* Exit message constants for the post-exit banner
*
* Displayed after the TUI exits to show session info
* and the resume command.
*/
/** Small block art logo (3 rows) used as visual marker */
export const EXIT_LOGO = [
"█▀▀█",
"█ █",
"▀▀▀▀",
] as const;
/** ANSI style codes for exit message */
export const EXIT_STYLES = {
RESET: "\x1b[0m",
DIM: "\x1b[90m",
HIGHLIGHT: "\x1b[96m",
BOLD: "\x1b[1m",
LOGO_COLOR: "\x1b[36m",
} as const;
/** Maximum width for the session description before truncation */
export const EXIT_DESCRIPTION_MAX_WIDTH = 50;
/** Padding before each exit message line */
export const EXIT_LINE_PADDING = " ";
/** Gap between logo and text */
export const EXIT_LOGO_GAP = " ";
/** Truncation indicator */
export const EXIT_TRUNCATION_MARKER = "\u2026";