The module ghostty_vt
Freestanding library module exposing the fixed-arena libghostty-vt C-ABI bridge and ANSI/VT100/xterm terminal grid exports.
See: Freestanding `libghostty-vt` terminal emulation in the repository
ghostty_vt module with no entry
- Hash
7fdc74e33b5c2094166d7a3f5835b2df56262af4d276f883a96e520f54eb34ad- Size
12288 bytes- Exports
2- Imports
0- Imported by
0- License
- MIT
Freestanding library module exposing the fixed-arena libghostty-vt C-ABI bridge and ANSI/VT100/xterm terminal grid exports
| Fact | Value |
|---|---|
| Kind | Modules with no entry |
| Source | src/modules/libraries/ghostty_vt |
| Boot image | yes: in the boot image, 12288 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | none |
| Imported by | none |
Neighbours
It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.
Exports
| Export | What it does |
|---|---|
vt_arena_bytes(cols: Integer, rows: Integer, scrollback: Integer) -> Integer | returns the fixed memory footprint required by one terminal instance for the requested (cols, rows, scrollback) grid, or an error record when dimensions exceed the bounded contract limits |
vt_allocator_smoke(request_bytes: Integer) -> Integer | exercises the freestanding C-ABI Ghostty_Allocator fixed arena (alloc -> free) and returns the number of bytes allocated, proving zero host dependencies inside the loaded library module |
vt_arena_bytes
vt_arena_bytes(cols: , rows: , scrollback: ) ->
vt_arena_bytes returns the fixed memory footprint required by one terminal instance for the requested (cols, rows, scrollback) grid, or an error record when dimensions exceed the bounded contract limits.
cols:rows:scrollback:
- When it fails
- a negative result, and the error record
src/modules/libraries/ghostty_vt/ghostty_vt.odin:14
vt_allocator_smoke
vt_allocator_smoke(request_bytes: ) ->
vt_allocator_smoke exercises the freestanding C-ABI Ghostty_Allocator fixed arena (alloc -> free) and returns the number of bytes allocated, proving zero host dependencies inside the loaded library module.
request_bytes:
- When it fails
- a negative result, and the error record
src/modules/libraries/ghostty_vt/ghostty_vt.odin:39
Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).
Integer wire form
A wire form of the module contract: one word of a call. A signed integer of 64 bits, in a register.
Error_Record record of a module
A record of the module ghostty_vt: 56 bytes, aligned on 8 bytes, 0 bytes of padding.
kindi6408 bytesuniti6488 bytesoperationi64168 bytesargumenti64248 bytesvaluei64328 byteslimiti64408 bytesfoundi64488 bytes
