modus
Menu
On this page

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

FactValue
KindModules with no entry
Sourcesrc/modules/libraries/ghostty_vt
Boot imageyes: in the boot image, 12288 bytes in this build
Build settingsnone: the defaults of the source
Importsnone
Imported bynone

Neighbours

It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.

Exports

ExportWhat it does
vt_arena_bytes(cols: Integer, rows: Integer, scrollback: Integer) -> Integerreturns 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) -> Integerexercises 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.

Parameters
  • cols:
  • rows:
  • scrollback:
Result
When it fails
a negative result, and the error record
Source
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.

Parameters
  • request_bytes:
Result
When it fails
a negative result, and the error record
Source
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 bytes
  • uniti6488 bytes
  • operationi64168 bytes
  • argumenti64248 bytes
  • valuei64328 bytes
  • limiti64408 bytes
  • foundi64488 bytes