Support for line draw Graphic escape codes #182
sswazey
started this conversation in
VT132 terminal emulation
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could you add support for Geoff's graphic escape commands to VT-132 as described in this document?
https://geoffg.net/Downloads/Terminal/TerminalEscapeCodes.pdf
They are non-standard, but they shouldn't break anything. The Altair-Duino folks are writing BASIC programs and it would be nice if they would work on the VT-132.
If you do decide to implement it, please add the Graphics Patch 2022 from John Galt:
void cmd_Draw(void) {
// if(Display24Lines) {
// arg[2] = (arg[2]/3)*2;
// arg[4] = (arg[4]/3)*2;
// }
if(arg[0] == 1) DrawLine(arg[1], arg[2], arg[3], arg[4], 1);
if(arg[0] == 2) DrawBox(arg[1], arg[2], arg[3], arg[4], 0, 1);
if(arg[0] == 3) DrawBox(arg[1], arg[2], arg[3], arg[4], 1, 1);
if(arg[0] == 4) DrawCircle(arg[1], arg[2], arg[3], 0, 1, vga ? 1.14 : 1.0);
if(arg[0] == 5) DrawCircle(arg[1], arg[2], arg[3], 1, 1, vga ? 1.14 : 1.0);
if(arg[0] == 6) DrawLine(arg[1], arg[2], arg[3], arg[4], 0);
if(arg[0] == 7) DrawBox(arg[1], arg[2], arg[3], arg[4], 0, 0);
if(arg[0] == 8) DrawBox(arg[1], arg[2], arg[3], arg[4], 1, 0);
if(arg[0] == 9) DrawCircle(arg[1], arg[2], arg[3], 0, 0, vga ? 1.14 : 1.0);
if(arg[0] == 10) DrawCircle(arg[1], arg[2], arg[3], 1, 0, vga ? 1.14 : 1.0);
}
Beta Was this translation helpful? Give feedback.
All reactions