hoffa : you should create a screen class. That way you don't have to do like that
win_2 = hyena:createWindow("FEELS GOOD MAN", 80, 40, 100, 100)
hyena:setWindowContentFunction(win_2, win_2_f)
but like that :
screen = class()
function screen:init()
...
end
function screen:paint(gc) --> here gc is hyena for more "confort"
...
end
...
textBox = class(screen)
function textBox:init(txt)
...
end
-- override screen:paint(gc) function
function screen:paint(gc) --> here gc is hyena for more "confort"
...
end
...
win_2 = textBox("FEELS GOOD MAN")
hyena:setWindowContentFunction(win_2)