From: Tom Rini Date: Mon, 18 Jan 2021 08:01:35 -0500 Subject: [PATCH v2] bootmenu: Allow to quit it via ESC/CTRL+C In-Reply-To: <20201227000438.19133-1-pali@kernel.org> References: <20201226180225.17563-1-pali@kernel.org> <20201227000438.19133-1-pali@kernel.org> Message-ID: <20210118130135.GX9782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Dec 27, 2020 at 01:04:38AM +0100, Pali Roh?r wrote: > When ESC/CTRL+C is pressed interrupt bootmenu and jump into U-Boot console. > As the last entry in bootmenu is always U-Boot console just choose the last > entry when ESC or CTRL+C is pressed. > > ESC key is detected when either no other character appears after '\e' > within 10ms or when non-'[' appears after '\e'. > > It is useful when bootmenu is part of boot process and you want to > interrupt boot process by scripts which control U-Boot (serial) console. > > Signed-off-by: Pali Roh?r > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: