Skip to content

@jsvision/ui / SurfaceOptions

Interface: SurfaceOptions ​

Defined in: ui/src/surface/surface.ts:33

Options for a Surface.

Properties ​

caps? ​

optional caps?: CapabilityProfile

Defined in: ui/src/surface/surface.ts:39

Default capabilities for the paint facade; defaults to a conservative ASCII-safe profile.


fill? ​

optional fill?: Style & object

Defined in: ui/src/surface/surface.ts:41

Initial cell fill; defaults to a space in terminal-default colours.

Type Declaration ​

char? ​

optional char?: string


size ​

size: Point

Defined in: ui/src/surface/surface.ts:35

Buffer size {x: width, y: height} (clamped to at least 1×1).


theme? ​

optional theme?: Theme

Defined in: ui/src/surface/surface.ts:37

Default theme for the paint facade; defaults to the built-in theme.