From: Pavel Machek <pavel@ucw.cz>
To: u-boot@lists.denx.de
Subject: [maemo-leste] [PATCH] bootmenu: Allow to quit it via CTRL+C
Date: Sat, 26 Dec 2020 23:32:27 +0100 [thread overview]
Message-ID: <20201226223227.GA7436@amd> (raw)
In-Reply-To: <20201226191540.cuajfctqfrmcp5l7@pali>
On Sat 2020-12-26 20:15:40, Pali Roh?r wrote:
> On Saturday 26 December 2020 20:10:10 Heinrich Schuchardt wrote:
> > Am 26. Dezember 2020 20:03:56 MEZ schrieb "Pali Roh?r" <pali@kernel.org>:
> > >On Saturday 26 December 2020 19:44:23 Heinrich Schuchardt wrote:
> > >> Am 26. Dezember 2020 19:02:25 MEZ schrieb "Pali Roh?r"
> > ><pali@kernel.org>:
> > >> >When 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 CTRL+C is pressed.
> > >> >
> > >> >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.
> > >>
> > >> Wouldn't the escape key be a better choice?
> > >
> > >I can add also escape key. But has escape key stable ANSI sequence
> > >which
> > >is needed to catch? If you tell me which bytes to catch (for escape
> > >key)
> > >I will add it.
> >
> > 0x1b is Escape
>
> Does not work. 0x1b is not escape key. It is start of the ANSI escape
> sequence which matches also existing keys up and down.
Unfortunately, 0x1b _is_ escape key. That is long standing bug of
vt100 terminal.
Usually timeout is used for detection. 0x1b followed by delay is
escape key; 0x1b followed by [ is some other key.
Best regards, Pavel
--
http://www.livejournal.com/~pavelmachek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201226/4bc41d97/attachment.sig>
next prev parent reply other threads:[~2020-12-26 22:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-26 18:02 [PATCH] bootmenu: Allow to quit it via CTRL+C Pali Rohár
2020-12-26 18:44 ` Heinrich Schuchardt
2020-12-26 19:03 ` Pali Rohár
2020-12-26 19:10 ` Heinrich Schuchardt
2020-12-26 19:15 ` Pali Rohár
2020-12-26 19:44 ` Heinrich Schuchardt
2020-12-26 19:50 ` Pali Rohár
2020-12-26 22:15 ` Heinrich Schuchardt
2020-12-26 22:35 ` Pali Rohár
2020-12-26 22:32 ` Pavel Machek [this message]
2020-12-26 22:42 ` [maemo-leste] " Pali Rohár
2020-12-26 22:48 ` Pavel Machek
2020-12-26 23:04 ` Heinrich Schuchardt
2020-12-26 23:16 ` Pali Rohár
2020-12-27 0:04 ` [PATCH v2] bootmenu: Allow to quit it via ESC/CTRL+C Pali Rohár
2020-12-29 3:32 ` Simon Glass
2021-01-18 13:01 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201226223227.GA7436@amd \
--to=pavel@ucw.cz \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox