web-serial-rxjs API Documentation
    Preparing search index...

    Interface TerminalBufferOptions

    Options for createTerminalBuffer memory limits.

    Character counts use UTF-16 string length (JavaScript .length). Pass 0 for maxLines or maxChars to disable that limit (unlimited).

    interface TerminalBufferOptions {
        maxChars?: number;
        maxLines?: number;
        stripAnsi?: boolean;
    }
    Index
    maxChars?: number

    Maximum total characters in the cumulative display text (completed + currentLine). Oldest content is dropped first. 0 means unlimited. Must be a safe integer >= 0 when validated.

    1048576
    
    maxLines?: number

    Maximum number of completed lines to retain in the display buffer. 0 means unlimited. Must be a safe integer >= 0 when validated.

    10000
    
    stripAnsi?: boolean

    When true, strips ANSI escape sequences from incoming chunks before folding carriage-return redraws. Use false to preserve raw escape codes in TerminalBuffer.text$.

    true