[PATCH 1/2] ui/ncurses: define KEY_DC (delete key)
Antonio Ospite
ao2 at ao2.it
Tue Jul 12 17:35:16 AEST 2016
On Tue, 12 Jul 2016 17:03:38 +1000
Samuel Mendoza-Jonas <sam at mendozajonas.com> wrote:
> Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>
> ---
> ui/ncurses/nc-cui.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
> index bd727a5..0c355cc 100644
> --- a/ui/ncurses/nc-cui.c
> +++ b/ui/ncurses/nc-cui.c
> @@ -83,6 +83,7 @@ static void cui_start(void)
> define_key("OF", KEY_END);
> define_key("\x1b\x5b\x41", KEY_UP);
> define_key("\x1b\x5b\x42", KEY_DOWN);
> + define_key("\x1b\x5b\x33\x7e", KEY_DC);
>
Just curios, why KEY_DC and not KEY_DELETE like, for example, linux
does?
Ciao,
Antonio
--
Antonio Ospite
http://ao2.it
A: Because it messes up the order in which people normally read text.
See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
More information about the Petitboot
mailing list