U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v3] common: cli_readline: Improve command line editing
Date: Sun, 21 Aug 2016 11:08:50 -0400	[thread overview]
Message-ID: <20160821150850.GM5342@bill-the-cat> (raw)
In-Reply-To: <1471367788-17795-1-git-send-email-james.byrne@origamienergy.com>

On Tue, Aug 16, 2016 at 06:16:28PM +0100, James Byrne wrote:

> This improves the cread_line() function so that it will correctly
> process the 'Home', 'End', 'Delete' and arrow key escape sequences
> produced by various terminal emulators. This makes command line editing
> a more pleasant experience.
> 
> The previous code only supported the cursor keys and the 'Home' key, and
> only for certain terminal emulator configurations. This adds support for
> the 'End and 'Delete' keys, and recognises a wider range of escape
> sequences. For example, the left arrow key can be 'ESC O D' instead of
> 'ESC [ D', and the 'Home' key can be 'ESC [ H', 'ESC O H', 'ESC 1 ~' or
> 'ESC 7 ~', depending on what terminal emulator you use and how it is
> configured.
> 
> Signed-off-by: James Byrne <james.byrne@origamienergy.com>
> Changes for v2
>    - Explicitly initialize variable to avoid spurious compiler warning.
> Changes for v3
>    - Remove unnecessary setting of 'act' to ESC_REJECT (now its default
>      value).

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160821/292ce255/attachment.sig>

      reply	other threads:[~2016-08-21 15:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-08 12:49 [U-Boot] [PATCH] common: cli_readline: Improve command line editing James Byrne
2016-07-14 22:32 ` [U-Boot] " Tom Rini
2016-07-31 21:58   ` [U-Boot] [PATCH v2] " James Byrne
2016-07-31 23:20     ` Tom Rini
2016-08-16 17:16       ` [U-Boot] [PATCH v3] " James Byrne
2016-08-21 15:08         ` Tom Rini [this message]

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=20160821150850.GM5342@bill-the-cat \
    --to=trini@konsulko.com \
    --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