1
1
зеркало из https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-09-28 15:12:45 -04:00

fixed the backspacing past the start bug mostly

Этот коммит содержится в:
XeonSquared 2019-01-09 16:16:53 +11:00
родитель 64e4229c42
Коммит 6b62292dd1

Просмотреть файл

@ -12,9 +12,11 @@ function vtemu(gpua,scra)
local ty,ka,ch = coroutine.yield()
if ty == "key_down" and kba[ka] then
if ch == 13 then ch = 10 end
if ch == 8 and buf:len() > 0 then
write("\8 \8")
buf = buf:sub(1,-2)
if ch == 8 then
if buf:len() > 0 then
write("\8 \8")
buf = buf:sub(1,-2)
end
elseif ch > 0 then
write(string.char(ch))
buf = buf .. string.char(ch)