6. Integration with SPECTRE Spec 1
D3-TUI will use SPECTRE’s VMU Interface specification (Spec 1) as the foundation:
/* From SHACHI_INTERFACE_SPECS.md */
maple_device_t *sh_vmu_at(sh_vmu_addr_t addr);
maple_device_t *sh_vmu_first(void);
int sh_vmu_count(void);
void sh_vmu_each(int (*cb)(sh_vmu_addr_t, maple_device_t*, void*), void *ctx);
/* Display */
void sh_vmu_clear(vmufb_t *fb);
void sh_vmu_blit(vmufb_t *fb, int x, int y, int w, int h, const uint8_t *data);
void sh_vmu_print(vmufb_t *fb, int x, int y, const char *text);
void sh_vmu_present(const vmufb_t *fb, sh_vmu_addr_t addr);
D3-TUI will wrap these functions with terminal-specific functionality.
7. Terminal on VMU
7.1 Character Display
The VMU’s 48x32 monochrome display can show: - Text: 6x8 pixel font = 8x4 characters (32 characters total) - Graphics: Custom bitmaps