mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
Add \v escape sequenz
This commit is contained in:
parent
170ce28ebe
commit
b1083980c4
@ -103,7 +103,7 @@ function tty.stream:write(value)
|
|||||||
|
|
||||||
local x, y = tty.getCursor()
|
local x, y = tty.getCursor()
|
||||||
|
|
||||||
local _, ei, delim = unicode.sub(window.output_buffer, 1, window.width):find("([\27\t\r\n\a\b\15])")
|
local _, ei, delim = unicode.sub(window.output_buffer, 1, window.width):find("([\27\t\r\n\a\b\v\15])")
|
||||||
local segment = ansi_print .. (ei and window.output_buffer:sub(1, ei - 1) or window.output_buffer)
|
local segment = ansi_print .. (ei and window.output_buffer:sub(1, ei - 1) or window.output_buffer)
|
||||||
|
|
||||||
if segment ~= "" then
|
if segment ~= "" then
|
||||||
@ -139,6 +139,8 @@ function tty.stream:write(value)
|
|||||||
y = y + 1
|
y = y + 1
|
||||||
elseif delim == "\b" then
|
elseif delim == "\b" then
|
||||||
x = x - 1
|
x = x - 1
|
||||||
|
elseif delim == "\v" then
|
||||||
|
y = y + 1
|
||||||
elseif delim == "\a" and not beeped then
|
elseif delim == "\a" and not beeped then
|
||||||
computer.beep()
|
computer.beep()
|
||||||
beeped = true
|
beeped = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user