Skip to content

[OpenOS] VT100 does not behave properly with \27[ABCD #3320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Ocawesome101 opened this issue Jun 7, 2020 · 1 comment
Closed

[OpenOS] VT100 does not behave properly with \27[ABCD #3320

Ocawesome101 opened this issue Jun 7, 2020 · 1 comment

Comments

@Ocawesome101
Copy link
Contributor

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

@Ocawesome101
Copy link
Contributor Author

Looking at the VT code, it appears to default to moving 0 characters. As far as I can tell this is incorrect behavior.

@payonel payonel closed this as completed in a84506b Jun 7, 2020
Dream-Master pushed a commit to GTNewHorizons/OpenComputers that referenced this issue Jul 18, 2020
closes MightyPirates#3320

(cherry picked from commit a84506b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant