You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenOS's vt100 emulator behaves incorrectly when these are run as \27[{A,B,C,D} but works correctly when run as \27[<n>{A,B,C,D} - my understanding is that, when no number is provided, it should default to 1. It does not appear to do this.
I have verified these in both the actual PUC REPL running on Konsole, and Monolith's Lua prompt, neither of which behaves in the way that OpenOS does.
Reproductions:
open the Lua REPL and run... \27[A: io.write("\n") for i=32, 126, 1 do io.write("\27[A" .. string.char(i) .. "\n") end vs io.write("\n") for i=32, 126, 1 do io.write("\27[1A" .. string.char(i) .. "\n") end \27[B: io.write("\n") for i=32, 126, 1 do io.write("\27[B" .. string.char(i) .. "\27[1A") end vs io.write("\n") for i=32, 126, 1 do io.write("\27[1B" .. string.char(i) .. "\27[1A") end \27[C: io.write("\n") for i=32, 126, 1 do io.write("\27[C" .. string.char(i) .. "\27[1D") end vs io.write("\n") for i=32, 126, 1 do io.write("\27[1C" .. string.char(i) .. "\27[1D") end \27[D: io.write("test... ") for i=32, 126, 1 do io.write("\27[D" .. string.char(i)) end vs io.write("test... ") for i=32, 126, 1 do io.write("\27[1D" .. string.char(i)) end
The text was updated successfully, but these errors were encountered:
OpenOS's vt100 emulator behaves incorrectly when these are run as
\27[{A,B,C,D}
but works correctly when run as\27[<n>{A,B,C,D}
- my understanding is that, when no number is provided, it should default to 1. It does not appear to do this.I have verified these in both the actual PUC REPL running on Konsole, and Monolith's Lua prompt, neither of which behaves in the way that OpenOS does.
Reproductions:
open the Lua REPL and run...
\27[A
:io.write("\n") for i=32, 126, 1 do io.write("\27[A" .. string.char(i) .. "\n") end
vsio.write("\n") for i=32, 126, 1 do io.write("\27[1A" .. string.char(i) .. "\n") end
\27[B
:io.write("\n") for i=32, 126, 1 do io.write("\27[B" .. string.char(i) .. "\27[1A") end
vsio.write("\n") for i=32, 126, 1 do io.write("\27[1B" .. string.char(i) .. "\27[1A") end
\27[C
:io.write("\n") for i=32, 126, 1 do io.write("\27[C" .. string.char(i) .. "\27[1D") end
vsio.write("\n") for i=32, 126, 1 do io.write("\27[1C" .. string.char(i) .. "\27[1D") end
\27[D
:io.write("test... ") for i=32, 126, 1 do io.write("\27[D" .. string.char(i)) end
vsio.write("test... ") for i=32, 126, 1 do io.write("\27[1D" .. string.char(i)) end
The text was updated successfully, but these errors were encountered: