Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OSCProcessor

Hierarchy

Index

Constructors

Properties

copyRequested: Subject<string> = ...
cwdReported: Subject<string> = ...
escapeHeld: boolean = false

The ESC that put the parser into the escape state ended the previous chunk and hasn't been passed on yet

lastProgressValue: number = 0
notificationCloseRequested: Subject<string> = ...
notificationRequested: Subject<TerminalNotification> = ...
oscChunks: Buffer[] = []
oscCode: null | number = null
oscCodeDigits: string = ''
oscLength: number = 0
outputToSession: Subject<Buffer> = ...
outputToTerminal: Subject<Buffer> = ...
pendingKittyNotifications: Map<string, TerminalNotification> = ...
progressReported: Subject<null | TerminalProgress> = ...
state: ParserState = 'ground'
swallowST: boolean = false

A handled OSC ended with ESC, so a following \ completes its ST and is dropped too

Accessors

  • get copyRequested$(): Observable<string>
  • get cwdReported$(): Observable<string>
  • get notificationCloseRequested$(): Observable<string>
  • get outputToSession$(): Observable<Buffer>
  • get outputToTerminal$(): Observable<Buffer>

Methods

  • close(): void
  • collectOSC(chunk: Buffer): void
  • endOSC(terminator: number, output: Buffer[]): void
  • feedFromSession(data: Buffer): void
  • feedFromTerminal(data: Buffer): void
  • handleKittyNotification(metadata: string, payload: string): void
  • handleOSC(oscString: string): boolean
  • handleOSC9(params: string[]): boolean
  • OSC 9 is overloaded: ConEmu uses 9;<n>;... subcommands, iTerm2 uses 9;<message>. Returns false for ConEmu subcommands that aren't handled here so they reach the frontend.

    Parameters

    • params: string[]

    Returns boolean

  • handleProgress(stateParam: undefined | string, progressParam: undefined | string): void
  • 9;4;; - state 0: clear, 1: set, 2: error, 3: indeterminate, 4: paused. Error and paused keep the last percentage if they don't come with one.

    Parameters

    • stateParam: undefined | string
    • progressParam: undefined | string

    Returns void

  • reportNotificationClick(id: undefined | string): void
  • shouldHandleOSC(ended: boolean): boolean

Generated using TypeDoc