[syslinux:master] Updated

syslinux-bot for Marcel Ritter unrzl1 at linux.rrze.uni-erlangen.de
Mon Jul 5 14:27:18 PDT 2010


Commit-ID:  3121db785f0b290b40f3b9315ab3843c76e53542
Gitweb:     http://syslinux.zytor.com/commit/3121db785f0b290b40f3b9315ab3843c76e53542
Author:     Marcel Ritter <unrzl1 at linux.rrze.uni-erlangen.de>
AuthorDate: Mon, 12 Oct 2009 11:43:33 +0200
Committer:  Marcel Ritter <unrzl1 at linux.rrze.uni-erlangen.de>
CommitDate: Mon, 12 Oct 2009 11:43:33 +0200

Updated



---
 com32/lua/test/vesa.lua |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/com32/lua/test/vesa.lua b/com32/lua/test/vesa.lua
index 4bc41fb..7f35e5b 100644
--- a/com32/lua/test/vesa.lua
+++ b/com32/lua/test/vesa.lua
@@ -3,9 +3,53 @@ printf = function(s,...)
            return io.write(s:format(...))
          end
 
+-- list available vesa modes
+-- only one supported right now, not of much use
 modes = vesa.getmodes()
 
 for mind,mode in pairs(modes) do
    printf("%04x: %dx%dx%d\n", mode['mode'], mode['hres'], mode['vres'], mode['bpp'])
 end
 
+printf("Hello World! - text mode")
+
+-- lets go to graphics land
+vesa.setmode()
+
+printf("Hello World! - VESA mode")
+
+syslinux.sleep(1000)
+
+-- some text to display "typing style"
+textline=[[
+
+From syslinux GSOC 2009 home page:
+
+Finish the Lua engine
+
+We already have a Lua interpreter integrated with the Syslinux build. However, right now it is not very useful. We need to create a set of bindings to the Syslinux functionality, and have an array of documentation and examples so users can use them.
+
+This is not a documentation project, but the documentation deliverable will be particularly important for this one, since the intended target is system administrators, not developers. 
+]]
+
+
+-- do display loop
+-- keep in mind: background change will not erase text!
+while ( true ) do
+
+vesa.load_background("/PXE-RRZE_small.jpg")
+
+syslinux.sleep(1000)
+
+for i = 1, #textline do
+    local c = textline:sub(i,i)
+    printf("%s", c)
+    syslinux.sleep(200)
+end
+
+syslinux.sleep(10000)
+
+vesa.load_background("/sample2.jpg")
+syslinux.sleep(10000)
+
+end



More information about the Syslinux-commits mailing list