term bugs + kiosk config
This commit is contained in:
@@ -132,7 +132,7 @@ function Entry:process(ie)
|
||||
|
||||
elseif ie.code == 'mouse_click' then
|
||||
-- need starting x passed in instead of hardcoding 3
|
||||
self.pos = math.min(ie.x - 3 + self.scroll, #self.value)
|
||||
self.pos = math.max(0, math.min(ie.x - 3 + self.scroll, #self.value))
|
||||
updated = true
|
||||
|
||||
elseif ie.code == 'mouse_rightclick' then
|
||||
|
||||
@@ -323,8 +323,9 @@ function Terminal.copy(it, ot)
|
||||
end
|
||||
|
||||
function Terminal.mirror(ct, dt)
|
||||
local t = { }
|
||||
for k,f in pairs(ct) do
|
||||
ct[k] = function(...)
|
||||
t[k] = function(...)
|
||||
local ret = { f(...) }
|
||||
if dt[k] then
|
||||
dt[k](...)
|
||||
@@ -332,6 +333,7 @@ function Terminal.mirror(ct, dt)
|
||||
return table.unpack(ret)
|
||||
end
|
||||
end
|
||||
return t
|
||||
end
|
||||
|
||||
function Terminal.readPassword(prompt)
|
||||
|
||||
Reference in New Issue
Block a user