repo.or.cz
/
rofl0r-concol.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
README: mention SDL2 backend
[rofl0r-concol.git]
/
luatest.lua
blob
e216f0ec74709c1cd18761b803f5cd0a7886ca7f
1
local
con
=
require
(
"libconcol"
)
2
3
con
.
init
()
4
-- init a resolution and font in case sdl backend is used
5
con
.
init_graphics
(
800
,
600
)
6
7
-- foreground white, bg red
8
con
.
setcolor
(
1
,
con
.
rgb
(
255
,
255
,
255
))
9
con
.
setcolor
(
0
,
con
.
rgb
(
255
,
0
,
0
))
10
11
con
.
goto
(
10
,
20
)
12
con
.
putchar
(
"x"
,
1
)
13
14
con
.
getkey
()
15
16
con
.
cleanup
()