1
1
镜像自地址 https://git.shadowkat.net/izaya/OC-PsychOS2.git 已同步 2024-09-27 14:45:18 -04:00

more draw call optimisation

这个提交包含在:
XeonSquared 2020-06-11 14:03:54 +10:00
父节点 642eb9adf1
当前提交 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