1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-20 18:27:40 +00:00

redo input translation -round 2

This commit is contained in:
kepler155c@gmail.com
2017-10-16 00:02:42 -04:00
parent 2721840596
commit fe0ca72b8b
2 changed files with 58 additions and 71 deletions

View File

@@ -329,30 +329,6 @@ function multishell.getCount()
return Util.size(tabs)
end
function multishell.showMessage(text)
parentTerm.setCursorPos(3, 1)
parentTerm.setTextColor(_colors.textColor)
parentTerm.setBackgroundColor(_colors.backgroundColor)
if #text + 3 < w then
text = text .. string.rep(' ', w - #text - 3)
end
parentTerm.write(text)
if currentTab then
currentTab.window.restoreCursor()
end
local redrawTimer = os.startTimer(2)
local redraw
function redraw(event, eventData)
if eventData[1] == redrawTimer then
redrawMenu()
multishell.unhook(event, redraw)
return true
end
end
multishell.hook('timer', redraw)
end
function multishell.hook(event, fn)
if type(event) == 'table' then
for _,v in pairs(event) do