LIB2 / FILE VIEW

USER_MANUAL.md

DOWNLOAD ORIGINAL ↓

# VT / generation 26 — User manual

**Library:** `src/lib2/vt/26/`  
**Edition:** 2026-11-18, source/document review (documentation only)  
**Qualification:** Source-exact accepted Chapter 02 donor (bounded PB-2000C emulator evidence). New consumer, physical, AI-1000 and receiver capture remain unqualified.

## What this member does

Stateful 24x80 viewer on 4x32 LCD with inverse mode, read-only/writable views and transport-neutral export.

## Public interfaces

| Entry point or group | Inputs, outputs and behavior |
|---|---|
| `VT_BIND_RAM / VT_BIND_RO / VT_BIND_ROM / VT_BIND_RSEL` | `$10/$11` points to a 1,920-byte document; kind 0 writable RAM, 2 read-only RAM, 1 ROM, 3 selectable-ROM. |
| `VT_VIEW / VT_OPEN / VT_OPEN_AT` | Open/reset or resume viewport; OPEN_AT accepts `$8` 1..24 or returns `$0=10`. |
| `VT_GET_CHAR / VT_CLEAR / VT_WRITE` | Read a bound document byte; clear/write only eligible writable RAM kind; method-specific `$0` status. |
| `VT_EXPORT` | 24 x (80 text bytes + CRLF) = 1,968 bytes to caller-provided sink; no UART ownership. |
| `VT_TX_ERROR / VT_CONFIG / VT_INIT` | Diagnostics / stub configuration behavior; API.md lists exact return status. |
| `VT26_PUTC / VT26_LCD_PUTZ / VT26_LCD_ROM32 / VT26_GFX_PUTC` | Renderer helpers using LCD and inverse glyph path. |

## How to integrate

Include all three exact versioned files. Bind document with `$10/$11` then `CAL VT_BIND_RO` (or selected kind), `CAL VT_VIEW`. Handle semantic `$0` events: 0 Q, 1 MENU, 2 BRK, 3 EXE, 4 `:c`, 8 SEND, 9 COMM; supply transport for SEND and optionally resume with VT_OPEN.

**Composition sketch (not an independently assembled client):**

```asm
        LDW     $10,MY_DOC_BASE
        CAL     VT_BIND_RO
        CAL     VT_VIEW           ; $0 is semantic event
```

## Environment, dependencies and memory

Caller allocates VT state (`VT_SELECTED`, `_VT_DOC_*`, viewport and export scratch), 1,920-byte canvas, keyboard/LCD callbacks and `VT_SEND_CAP`, `VT_TX_DETAIL`, `VT_OUTBYTE` (`$16` byte, `$0` status), `VT_HOST_RAM`. No general register preservation promised. Non-reentrant.

## Limits and evidence

Existing VT26 R003 guide describes user navigation, not arbitrary application event behavior. `:t` is a request; physical UART receipt is external. DejaVu-derived inverse glyph attribution must be preserved.

**This documentation does not introduce a new build or runtime PASS.** Source equivalence, native assembler parity, emulator execution and physical-machine evidence remain distinct.

## Actual source and further reference

- [This exact member folder in Google Drive](https://drive.google.com/drive/folders/1_tAfWwwVy3GduvsMwYqhzCu6vN23FUaY)
- Source modules: `vt26.inc`, `vt26_lcd.inc`, `export.inc`.
- Further contracts/source notes: API.md, API.json, VT_Virtual_Terminal_User_Guide_R003.md, README.md. These may include dated donor paths or older acceptance statements.
- For a new consumer, pin exact source files and hashes, verify full include closure, inspect register/bank/resource conflicts and test the resulting application on each claimed target.

*Praeteritum ad futurum servamus.*