Skip to content

Commit 2a36d64

Browse files
Rexclaude
andcommitted
fix(tui-ink): add startup banner with REXCLI ASCII art logo
- Print cyan-colored ASCII art banner on TUI startup - Add printBanner() function and REX_CLI_BANNER constant - Fixes missing "Hello, Rex CLI!" welcome message Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8f0cf29 commit 2a36d64

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

scripts/lib/tui-ink/cli.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,26 @@ import { render } from 'ink';
88
import { App } from './App';
99
import type { CatalogSkill, InstalledSkills, Client } from './types';
1010

11+
// ASCII art banner
12+
const REX_CLI_BANNER = `
13+
╔══════════════════════════════════════════╗
14+
║ ║
15+
║ ██████╗ ██╗ ██╗██╗██████╗ ██████╗ ║
16+
║ ██╔══██╗██║ ██╔╝██║██╔══██╗██╔════╝ ║
17+
║ ██████╔╝█████╔╝ ██║██████╔╝██║ ║
18+
║ ██╔══██╗██╔═██╗ ██║██╔══██╗██║ ║
19+
║ ██║ ██║██║ ██╗██║██║ ██║╚██████╗ ║
20+
║ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═════╝ ║
21+
║ ║
22+
║ Hello, Rex CLI! ║
23+
║ ║
24+
╚══════════════════════════════════════════╝
25+
`;
26+
27+
function printBanner(): void {
28+
console.log('\x1b[36m' + REX_CLI_BANNER + '\x1b[0m'); // cyan color
29+
}
30+
1131
const rootDir = process.env.AIOS_ROOT_DIR || path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..');
1232
const projectRoot = process.env.AIOS_PROJECT_ROOT || process.cwd();
1333

@@ -111,6 +131,9 @@ export async function runInteractiveSession({
111131

112132
// Main entry point when run directly
113133
async function main() {
134+
// Print welcome banner first
135+
printBanner();
136+
114137
const onRun = async (action: string, options: unknown) => {
115138
// Import lifecycle modules
116139
if (action === 'setup') {

0 commit comments

Comments
 (0)