improve program

This commit is contained in:
ruki
2020-11-21 00:47:10 +08:00
parent ef250e66d0
commit bbcfc4b1bd

View File

@@ -46,7 +46,7 @@ function program:init(name, argv)
curses.nl(false) curses.nl(false)
-- init mouse support -- init mouse support
if curses.KEY_MOUSE then if curses.has_mouse() then
-- curses.ALL_MOUSE_EVENTS may be set to mask unused events -- curses.ALL_MOUSE_EVENTS may be set to mask unused events
curses.mousemask(curses.ALL_MOUSE_EVENTS) curses.mousemask(curses.ALL_MOUSE_EVENTS)
end end