RFC: Support arbitrary Cursor Positioning on VGA console? #77
netzerohero
started this conversation in
RFCs
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
If you want a mode 1 terminal emulator, write it on the 6502 side. Adding mode 0 ANSI sequences has been low priority because there hasn't been a need. There's also a feature hold until picocomputer/rp6502#51 gets fixed. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
VGA (ver-0.6) console supports ansi colors (select-graphic-rendition SGR) and cursor forward and backward (CUF and CUB).
Consider similar support for arbitrary Cursor Positioning (via ANSI escape codes).
Cursor Position == (ESC [ n ; m H) == CUP == Moves the cursor to row n, column m.
This could provide additional capability for the VGA-console; e.g., eventual support within C- and BASIC- environments in a user-friendly way.
For example (in BASIC dialects): VTAB n : HTAB m (Applesoft) or LOCATE n,m (GW-BASIC). The same feature would also be available in C via existing stdio printf(). This would open-up additional support to heritage BASIC code-bases and allow a c-programmer to use higher-level ansi standard stdio printfs without using lower-level calls to the VGA-graphics-pico directly (xreg calls).
Beta Was this translation helpful? Give feedback.
All reactions