mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-22 03:54:20 -05:00
more draw call optimisation
This commit is contained in:
parent
642eb9adf1
commit
f9749ac181
@ -261,7 +261,7 @@ function buffer:read(...)
|
||||
io.write("\27[s\27[8m")
|
||||
local pos, buffer = 1, ""
|
||||
local function redraw()
|
||||
io.write("\27[u"..buffer.." \27[u\27["..tostring((#buffer-pos)+1).."C")
|
||||
io.write(string.format("\27[u%s \27[u\27[%iC",buffer,(#buffer-pos)+1))
|
||||
end
|
||||
while true do
|
||||
char = readBytesOrChars(1)
|
||||
@ -270,14 +270,12 @@ function buffer:read(...)
|
||||
local args = {""}
|
||||
repeat
|
||||
char = readBytesOrChars(1)
|
||||
--[[
|
||||
if char:match("%d") then
|
||||
args[#args] = args[#args]..char
|
||||
else
|
||||
args[#args] = tonumber(args[#args])
|
||||
args[#args+1] = ""
|
||||
end
|
||||
]]
|
||||
until not char:match("[%d;]")
|
||||
if char == "C" then -- right
|
||||
if pos > 1 then
|
||||
|
Loading…
Reference in New Issue
Block a user