Bean wrote:
> 2009/4/8 Vesa Jääskeläinen <ch...@nic.fi>:
> > Bean wrote:
> >> Hi,
> >>
> >> This patch integrate the LUA script engine to grub2

Cool!

> I add a grub library to lua, now it only contain grub.run, but it
> would be easy to add more function. I think it would be useful to add
> function to interface with the video subsystem directly, so that lua
> can be used to control the dynamic drawing of ui components.

I actually did some preliminary work to make this possible.  I made a demo 
where text is painted by a Lua script and it animates “flying by” on the 
screen.   (http://grub.gibibit.com/files/gfxmenu-lua-1.iso.gz for a demo ISO.)

Besides making the GRUB video API accessible (partially, so far) to Lua, I 
also made Lua able to implement GUI components in the graphical menu 
interface.  This is limited at this point and only paint() and destroy() 
methods can be implemented in Lua.  However, I think being able to implement 
new GUI components in Lua would be really great.

If my code would be any help to you, I can send it to you.

Regards,
Colin

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to