[BRLTTY] BRLTTY in GRUB2

Dave Mielke dave at mielke.cc
Thu Mar 29 18:45:39 EDT 2012


[quoted lines by Vladimir 'φ-coder/phcoder' Serbinenko on 2012/03/29 at 18:35 +0200]

Is there a way I can know which headers Grub has in addition to <grub/*.h>?

At the moment, I'm specifically curious about <time.h>.

>I've added a layer to have fopen/fread/fclose (preferred) and
>open/read/close.

So it's okay if we just continue to use those.

I understand that writing isn't supported, and shall probably be introducing 
HAVE_WRITE shortly.

>int grub_getkey_noblock (void);
>Returns GRUB_TERM_NO_KEY if no key is available.

Am I correct that this is specifically for the console? I think it'd be best if 
we don't try to do any keyboard monitoring in grub.

>grub_serial_port *port);

I'm curious: In grub_serial_port, why is it "*next" but "**prev"?

Is there a function which takes a name and returns a grub_serial_port*, or 
should we just search the list? If the latter, where's the head of the list, 
and what's in *next of the last element?

What do serial port names look like?

Am I correct that we should maintain the serial attributes in our copy of a 
grub_serial_config, and then call grub_serial_port_configure to flush them?

>Note that both grub_getkey_noblock and grub_serial_port_fetch consume
>the character/key if one is available but don't wait if none is.

Does grub_serial_port_fetch need to do the read to discover that no data is 
pending, or is it possible for that condition to be tested without doing an 
actual read? If it's possible to just to the test, is there already a way to do 
it or could one be added?

-- 
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | 2011 May 21 is the End of Salvation.
EMail: dave at mielke.cc | Canada  K2A 1H7   | http://Mielke.cc/now.html
http://FamilyRadio.com/                   | http://Mielke.cc/bible/


More information about the BRLTTY mailing list