# VT23 -- integrated VT22 viewer and RS232C page transport
Status: **r001 source candidate**, 2026-11-03; PB-2000C, OM52C backend. Native HD61 and emulator qualification pending. Not a replacement for either library.
## Purpose
VT22 recognizes `:t` / `:T` and returns semantic event 8 without serial I/O. VT23 composes VT22 with the existing RS232C library to consume event 8 and transfer the currently bound document. All other VT22 events (Q/MENU/BRK/other commands) pass unchanged to the caller. The application neither implements a UART send loop nor handles event 8.
## API
- `VT23_INIT`: calls `RS_INIT`, default 4800 baud, 8N1, no flow.
- `VT23_CONFIG`: passes $10 baud selector 0=4800/1=9600 and $11 flow 0=none/1=XON/XOFF to `RS_CONFIG`.
- `VT23_BIND_RAM`, `VT23_BIND_RO`, `VT23_BIND_ROM`: direct wrappers for VT22 binding (`$10/$11` base address).
- `VT23_CLEAR`, `VT23_WRITE`: pass through to VT22, preserving the original ABI.
- `VT23_VIEW`: starts at top; handles `:t` automatically; returns non-send VT22 event unchanged in `$0`.
- `VT23_OPEN`: reopens saved viewport; same `:t` handling, other events returned as-is.
- `VT23_OPEN_AT`: uses VT22 focus-row API, same `:t` handling. Invalid focus returns 10 without sending.
One `:t` sends 24 source rows, 80 bytes each, followed by `0D 0A` per row, exactly **1968 bytes**. Spaces and embedded NULs are transferred byte-exactly. No EOF is appended. RAM and read-only RAM bind types use `RS_WRRAM`; ROM uses `RS_WRITE`. The original canvas and viewer location are not changed. After transmission, VT23 reopens the bound VT22 viewer.
## Dependencies and ownership
- Include **one** `lib/vt22/vt22_candidate.inc`, `lib/vt23/vt23.inc`, `lib/rs232c/rs232c.inc`, `lib/rs232c/rs232c_code.inc`, and `lib/rs232c/om52c.inc` in the root, together with the platform keyboard, screen and cursor services. Never mix VT21 and VT22 generation sources.
- VT23 private UA14 RAM: `27F9..27FB` (two-byte row pointer plus one-byte rows count). RS232C private state remains `27F0..27F8`, VT22 state remains `2F68..2F6F` and `2FA0..2FA2`. No application-owned UART transfer state.
- `VT23_INIT` does not initialize keyboard: the owning application's standard `KBD_INIT` remains in startup. VT23 resets/releases the keyboard only during transmission, matching the prior B9 transport boundary.
- Non-reentrant. The RS232C backend does not currently return dependable transmission-error status; VT23 cannot prove delivery. The runtime `:t` regression reported after r006 remains a separate historical investigation, not a proved repair.
## B9 client transition r008
`src/b9-test01.s` includes VT23 once and retains VT22/RS232C as underlying libraries. `src/apps/b9-test01-app.s` uses VT23 initialization, binding, clear/view/open; no direct RS calls, no `B9T_SEND`, no F2 `[send]`. Test1=50 (7 pages), Test2=12 (2 pages), no change to mathematical vectors. Source and static tests pass; owner native results pending.
*Praeteritum ad futurum servamus.*