Skip to content

LogView

widgetsdisplay

LogView: scrollable, highlighted log output

Installation

$ bunx termuijs add log-view

Copies the source into src/components/log-view/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { LogView } from '@termuijs/widgets'
ts
new LogView(style: Partial<Style> = {}, opts: LogViewOptions = {})

API Reference

LogView

PropTypeRequiredDescription
highlightRecord<string, Color>optionalHighlight rules: keyword → color
autoScrollbooleanoptionalAuto-scroll to bottom
maxLinesnumberoptionalMaximum lines to retain (0 = unlimited)
#display#log-view