Cleanup.
This commit is contained in:
parent
7192506ed5
commit
20d3155eb1
5
ldt.lua
5
ldt.lua
@ -659,13 +659,10 @@ ldb = {
|
||||
select_pad(pads.src)
|
||||
while true do
|
||||
for _, p in pairs(pads) do
|
||||
if p.dirty then
|
||||
p:refresh()
|
||||
end
|
||||
p:refresh()
|
||||
end
|
||||
local s = " press 'q' to quit "
|
||||
stdscr:mvaddstr(math.floor(SCREEN_H - 1), math.floor((SCREEN_W - #s)), s)
|
||||
C.doupdate()
|
||||
local c = stdscr:getch()
|
||||
local _exp_0 = c
|
||||
if C.KEY_DOWN == _exp_0 or C.KEY_SR == _exp_0 or ("j"):byte() == _exp_0 then
|
||||
|
5
ldt.moon
5
ldt.moon
@ -460,11 +460,10 @@ ldb = {
|
||||
|
||||
while true
|
||||
for _,p in pairs(pads)
|
||||
if p.dirty
|
||||
p\refresh!
|
||||
p\refresh!
|
||||
s = " press 'q' to quit "
|
||||
stdscr\mvaddstr(math.floor(SCREEN_H - 1), math.floor((SCREEN_W-#s)), s)
|
||||
C.doupdate!
|
||||
--C.doupdate!
|
||||
c = stdscr\getch!
|
||||
switch c
|
||||
when C.KEY_DOWN, C.KEY_SR, ("j")\byte!
|
||||
|
Loading…
Reference in New Issue
Block a user