RFC: Support arbitrary Cursor Positioning on VGA console? #77
Replies: 3 comments 6 replies
-
Beta Was this translation helpful? Give feedback.
-
|
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.
-
|
RP6502 VGA (ver-0.12) adds additional CSI (Control Sequence Introducer) sequences to the VGA-console.
Note that beginning with RP6502 firmware versions (ver-0.10) requires upgrading the RP6502's picos from the original (RP2040-based) Picos to the newer (RP2350-based) Pico2s:
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
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