Cotal TypeScript packages
    Preparing search index...

    Class ConnectorDiagnosticReader

    Keeps the diagnostic a pty child's exit reports: the runtime's own reason when it stopped the child itself, otherwise the last connector diagnostic the child printed, read across arbitrary output chunks. Both pty backends feed it, so a seat's exit reports the same diagnostic whichever one owned the child.

    Index
    • Parameters

      • chunk: string

      Returns void

    • The stop reason, or else the last diagnostic, counting a final line the child left unfinished.

      Returns string | undefined

    • Records why the runtime is stopping the child. A TUI may never display it where an operator looks, and it is the cause of the exit whatever the child prints next.

      Parameters

      • reason: string

      Returns void