README: mention SDL2 backend
[rofl0r-concol.git] / luatest.lua
blobe216f0ec74709c1cd18761b803f5cd0a7886ca7f
1 local con = require("libconcol")
3 con.init()
4 -- init a resolution and font in case sdl backend is used
5 con.init_graphics(800, 600)
7 -- foreground white, bg red
8 con.setcolor(1, con.rgb(255,255,255))
9 con.setcolor(0, con.rgb(255,0,0))
11 con.goto(10, 20)
12 con.putchar("x", 1)
14 con.getkey()
16 con.cleanup()