From 72e5cb236717e315094fff052285e9858b5053c7 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Fri, 31 Jul 2026 13:59:57 +0100 Subject: [PATCH] Use text in place of default enter glyph for terminals without that glyph --- index.js | 6 +++++- lib/cli/flowsImporter.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ac6dc51b..24e68e39 100755 --- a/index.js +++ b/index.js @@ -35,7 +35,11 @@ const defaultInquirerTheme = { prefix: '', style: { // Give some spacing to the messages - message: (text, status) => { return '\n' + chalk.bold(text) + '\n' } + message: (text, status) => { return '\n' + chalk.bold(text) + '\n' }, + // Avoid the '⏎' glyph - it renders as a missing-character box in some terminal fonts (displays the tofu character instead). Use instead. + keysHelpTip: (keys) => keys + .map(([key, action]) => `${chalk.bold(key === '⏎' ? '' : key)} ${chalk.dim(action)}`) + .join(chalk.dim(' • ')) } } diff --git a/lib/cli/flowsImporter.js b/lib/cli/flowsImporter.js index fde6fec0..92d26272 100644 --- a/lib/cli/flowsImporter.js +++ b/lib/cli/flowsImporter.js @@ -18,7 +18,11 @@ const defaultInquirerTheme = { prefix: '', style: { // Give some spacing to the messages - message: (text, status) => { return '\n' + chalk.bold(text) + '\n' } + message: (text, status) => { return '\n' + chalk.bold(text) + '\n' }, + // Avoid the '⏎' glyph - it renders as a missing-character box in some terminal fonts (displays the tofu character instead). Use instead. + keysHelpTip: (keys) => keys + .map(([key, action]) => `${chalk.bold(key === '⏎' ? '' : key)} ${chalk.dim(action)}`) + .join(chalk.dim(' • ')) } }