소스 검색

reduced redraw to two draw calls, four colour calls, and one get call: draw line, get character, invert colours for cell

master
XeonSquared 4 년 전
부모
커밋
642eb9adf1
1개의 변경된 파일1개의 추가작업 그리고 8개의 파일을 삭제
  1. +1
    -8
      module/buffer.lua

+ 1
- 8
module/buffer.lua 파일 보기

@@ -261,14 +261,7 @@ function buffer:read(...)
io.write("\27[s\27[8m")
local pos, buffer = 1, ""
local function redraw()
io.write("\27[u")
io.write(buffer.." ")
if pos < 1 then
io.write("\28[D")
else
io.write("\27[u")
io.write(buffer:sub(1,(#buffer-pos)+1))
end
io.write("\27[u"..buffer.." \27[u\27["..tostring((#buffer-pos)+1).."C")
end
while true do
char = readBytesOrChars(1)


불러오는 중...
취소
저장