Expand description
The interface between the Hexicon VM and the system it runs on.
The VM has no direct access to terminals, files, clocks, or randomness.
Everything outside the VM goes through a Host, which keeps the VM
portable to WebAssembly and makes runs reproducible under test.
Modules§
- entities
- Named character entities the console understands in program output,
such as
&and—. - file_
attr - Attributes of a file. The values are the ones programs see.
- file_
type - What kind of thing a file name refers to. The values are the ones programs see, and can be combined.
- pane
- Panes: the panes a program can divide the screen into, such as a status line across the top.
- rich
- The rich display’s checker: turns what a program writes into a document within Hexicon’s profile of HTML and CSS.
Structs§
- Buffer
Host - A host that collects console output in memory.
- File
Info - What the host knows about a file.
- Time
- The time on the host’s clock.
Enums§
- File
Choice - What the player did with a file dialog.
- File
Dialog - Which file dialog a program asks for.
- File
Error - Why a file could not be read or written.
- File
Kind - What kind of file a program asks for, so that a dialog can show files of that kind and name a new one as they are named.
- Input
- What a host has when it is asked for input.
- Sandbox
- Where a file is in relation to the folder a program’s file access is confined to.
Traits§
- Host
- The services a VM needs from the system it runs on.