From 16b8ab71224148b3ad1c71d6530d4ae653816958 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Mon, 10 Feb 2025 19:55:00 +0100 Subject: [PATCH] only show 'enter choice' when there's a choice --- com/isoterminal/feat/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com/isoterminal/feat/boot.js b/com/isoterminal/feat/boot.js index 0f5779d..3ce9a75 100644 --- a/com/isoterminal/feat/boot.js +++ b/com/isoterminal/feat/boot.js @@ -8,7 +8,7 @@ ISOTerminal.prototype.bootMenu = function(e){ this.boot.menu.map( (m) => { msg += `\r ${m.key}) ${m.title(this.opts)}\n` }) - msg += `\n\r enter choice> ` + if( this.boot.menu.length ) msg += `\n\r enter choice> ` this.send(msg) }