Documentation / @ripl/terminal / TerminalContextOptions
Interface: TerminalContextOptions ​
Defined in: terminal/src/context.ts:97
Options for constructing a terminal rendering context.
Extends ​
Properties ​
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
dragThreshold? | number | Minimum pointer movement, in pixels, before a drag gesture is recognized. | ContextOptions.dragThreshold | core/src/context/types.ts:154 |
height? | number | Grid height in terminal rows. Defaults to the output adapter's rows. | - | terminal/src/context.ts:101 |
interactive? | boolean | Whether the context listens for and emits pointer and drag events. | ContextOptions.interactive | core/src/context/types.ts:152 |
logicalHeight? | number | Logical height counterpart to TerminalContextOptions.logicalWidth. | - | terminal/src/context.ts:113 |
logicalWidth? | number | Author the scene in this logical width (e.g. CSS pixels) instead of raw braille pixels. Rendering uniformly scales and letterboxes the logical space into the character grid, so a scene written for a canvas-sized viewport renders proportionally in any terminal. Requires logicalHeight. Text glyphs remain cell-sized (inherent to terminals); only their position (and maxWidth clipping) follows the logical space. | - | terminal/src/context.ts:111 |
meta? | Record<string, unknown> | Arbitrary metadata attached to the context. | ContextOptions.meta | core/src/context/types.ts:156 |
rasterizer? | Rasterizer | Custom rasterizer to use instead of the default BrailleRasterizer. | - | terminal/src/context.ts:103 |
width? | number | Grid width in terminal columns. Defaults to the output adapter's columns. | - | terminal/src/context.ts:99 |