bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH][RFC] forward/backward a word facility


From: Marco Gerards
Subject: Re: [PATCH][RFC] forward/backward a word facility
Date: 29 Sep 2003 23:57:05 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

(I think I accidently send a reply some minutes ago, please ignore
it.  I suck in using keybindings when sleepy :))
Daniele Bellucci <address@hidden> writes:

> Hi Chaac, and tnx for your review
> 
> On Mon, Sep 29, 2003 at 11:29:20PM +0300, chaac wrote:
> |29.9.2003 23:17:14, Marco Gerards <address@hidden> wrote:
> |
> |>Daniele Bellucci <address@hidden> writes:
> |>
> |>> Hi All,
> |>> 
> |>> this is a little patch for grub-0.93 to add te following
> |>> cmdline features:
> |>> - C-g: move backward a word 
> |>> - C-l: move forward  a word
> |>
> |>I really like these features, but why don't you use Emacs like key
> |>bindings?  Read "info readline" if you want to know the key binding,
> |>if you don't know this already.
> 
> i'm going to read info readline, but i still haven't found a way
> to read "ALT-<x>" from grub shell

There is a BIOS function that can read the keyboard.  I think you can
use this.

You have to use softint 0x16, sub function 2.  You can check if Alt is
pressed by checking bit 4 of the AL register.

Please look for Ralph Browns interrupt list for more information about
software interrupts.

I didn't look at the GRUB code so I don't know if this is usable.
Perhaps GRUB uses another way to read the keyboard, if it doesn't work
just ask me and I will have a look at the code. :)

Thanks,
Marco





reply via email to

[Prev in Thread] Current Thread [Next in Thread]