why do we refresh screen after reading keyboard?
This commit is contained in:
parent
dab2a1fbf3
commit
4914b5d08f
|
@ -74,10 +74,8 @@ end
|
|||
local function update(window)
|
||||
window:mvaddstr(lines(window)-2, 5, "tower to remove top disk from? ")
|
||||
local from = string.byte(curses.getch()) - 96
|
||||
curses.refresh()
|
||||
window:mvaddstr(lines(window)-1, 5, "tower to stack it on? ")
|
||||
local to = string.byte(curses.getch()) - 96
|
||||
curses.refresh()
|
||||
make_move(from, to)
|
||||
end
|
||||
|
||||
|
|
|
@ -74,10 +74,8 @@ end
|
|||
local function update(window)
|
||||
window:mvaddstr(lines(window)-2, 5, "tower to remove top disk from? ")
|
||||
local from = curses.getch() - 96
|
||||
curses.refresh()
|
||||
window:mvaddstr(lines(window)-1, 5, "tower to stack it on? ")
|
||||
local to = curses.getch() - 96
|
||||
curses.refresh()
|
||||
make_move(from, to)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue