fleetbo-cockpit-cli 1.0.126 → 1.0.128
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/cli.js +4 -7
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -691,14 +691,11 @@ if (command === 'alex') {
|
|
|
691
691
|
// Hint déjà visible → 2ème Entrée → soumet
|
|
692
692
|
doSubmit();
|
|
693
693
|
} else {
|
|
694
|
-
// 1ère ligne vide :
|
|
695
|
-
//
|
|
696
|
-
//
|
|
694
|
+
// 1ère ligne vide : écrit le hint directement dans stdout
|
|
695
|
+
// process.stdout.write est visible immédiatement dans le terminal
|
|
696
|
+
// même si Xterm affiche "running" par-dessus
|
|
697
697
|
hintShown = true;
|
|
698
|
-
|
|
699
|
-
rl.prompt();
|
|
700
|
-
// Sécurité anti-paste : si une ligne non-vide arrive dans les 400ms,
|
|
701
|
-
// hintShown repasse à false dans le bloc trimmedLine !== ""
|
|
698
|
+
process.stdout.write("\x1b[90m ↵ to confirm & send\x1b[0m\n");
|
|
702
699
|
}
|
|
703
700
|
} else {
|
|
704
701
|
rl.setPrompt(`\x1b[34m${dynamicUsername} ❯ \x1b[0m`);
|