termux-dev 1.2.0 → 1.2.1

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.
Files changed (2) hide show
  1. package/dist/cli/index.js +13 -4
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -351,6 +351,10 @@ function resetTerminalTheme() {
351
351
  }
352
352
  let activeAbortHandler = null;
353
353
  process.on('exit', () => {
354
+ if (process.stdin.isTTY) {
355
+ process.stdin.setRawMode(false);
356
+ }
357
+ process.stdout.write('\x1B[?25h');
354
358
  resetTerminalTheme();
355
359
  });
356
360
  process.on('SIGINT', () => {
@@ -358,6 +362,11 @@ process.on('SIGINT', () => {
358
362
  activeAbortHandler();
359
363
  }
360
364
  else {
365
+ if (process.stdin.isTTY) {
366
+ process.stdin.setRawMode(false);
367
+ process.stdin.pause();
368
+ }
369
+ process.stdout.write('\x1B[?25h'); // restore cursor
361
370
  resetTerminalTheme();
362
371
  process.exit(0);
363
372
  }
@@ -540,11 +549,11 @@ export async function main() {
540
549
  };
541
550
  });
542
551
  try {
543
- console.clear();
544
- const selected = await select({
552
+ clearTerminalScreen();
553
+ const selected = await search({
545
554
  message: `${pc.bold('🎨 Pick a theme to personalize your workspace:')}`,
546
- choices: themeChoices,
547
- pageSize: 10
555
+ source: async () => themeChoices,
556
+ pageSize: 6
548
557
  });
549
558
  if (selected) {
550
559
  config.theme = selected;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-dev",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Ultra-fast, terminal-native AI coding assistant and agent built for Android Termux, Windows, macOS, and Linux.",
5
5
  "main": "dist/cli/index.js",
6
6
  "type": "module",