icoa-cli 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ ${B} ${B}
36
36
  ${B} ${chalk.white('Sydney, Australia')} ${chalk.gray('Jun 27 - Jul 2, 2026')} ${B}
37
37
  ${B} ${chalk.cyan.underline('https://icoa2026.au')} ${B}
38
38
  ${B} ${B}
39
- ${B} ${chalk.gray('CLI-Native Competition Terminal v1.4.0')} ${B}
39
+ ${B} ${chalk.gray('CLI-Native Competition Terminal v1.4.2')} ${B}
40
40
  ${B} ${B}
41
41
  ${chalk.cyan('╚══════════════════════════════════════════════════════════╝')}
42
42
  `;
@@ -61,6 +61,8 @@ program
61
61
  .description('ICOA CLI — CLI-Native CTF Competition Terminal')
62
62
  .option('--resume', 'Resume previous session')
63
63
  .action((opts) => {
64
+ // Force black background, bright white text across all platforms
65
+ process.stdout.write('\x1b[40m\x1b[97m\x1b[2J\x1b[H');
64
66
  console.log(BANNER);
65
67
  checkTerminal();
66
68
  // If running interactively (no extra args or --resume), start REPL
package/dist/repl.js CHANGED
@@ -64,10 +64,11 @@ export function startRepl(program, resumeMode) {
64
64
  rl.prompt();
65
65
  return;
66
66
  }
67
- // Exit — record and quit
67
+ // Exit — record, reset terminal colors, and quit
68
68
  if (input === 'exit' || input === 'quit' || input === 'q') {
69
69
  recordExit();
70
70
  console.log(chalk.gray(' Session saved. Use ') + chalk.white('icoa --resume') + chalk.gray(' to continue.'));
71
+ process.stdout.write('\x1b[0m\x1b[2J\x1b[H'); // Reset colors, clear screen
71
72
  realExit(0);
72
73
  return;
73
74
  }
@@ -167,6 +168,7 @@ export function startRepl(program, resumeMode) {
167
168
  });
168
169
  rl.on('close', () => {
169
170
  recordExit();
171
+ process.stdout.write('\x1b[0m\x1b[2J\x1b[H');
170
172
  realExit(0);
171
173
  });
172
174
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {