Gfx.sel

#!./Selene
-- Some graphical tests

Selene.UseCurses()

local pwnd = SelCurses.init()
local w,h = pwnd:GetSize()
local s = "Size w:".. w .. " h:" .. h

pwnd:PrintAt( math.floor( (w-s:len())/2 ), h/2, s )
pwnd:refresh()

pwnd:getch()

pwnd:Move( 5, h/2 )
pwnd:addch('X')
pwnd:AddchAt( w-5, h/2, 'Y')

pwnd:refresh()
pwnd:getch()

pwnd:PrintAt(0,h/2+1, "Beep\n")
SelCurses.beep()
pwnd:getch()

pwnd:print("Flash\n")
SelCurses.flash()
pwnd:getch()

pwnd:print("  Border & Lines\n")
pwnd:border()
pwnd:HLine(5)
pwnd:getch()
pwnd:HLine(5, '*')
pwnd:VLineAt(w/2,h/2+3, 5, '%')
pwnd:getch()
-- No need to destroy the primary window
SelCurses.endwin()
generated by LDoc 1.4.6 Last updated 2022-09-05 22:24:50