LocalProcessDelegate

public protocol LocalProcessDelegate : AnyObject

Undocumented

  • This method is invoked on the delegate when the process has exited

    Declaration

    Swift

    func processTerminated(_ source: LocalProcess, exitCode: Int32?)

    Parameters

    source

    the local process that terminated

    exitCode

    the exit code returned by the process, or nil if this was an error caused during the IO reading/writing

  • This method is invoked when data has been received from the local process that should be send to the terminal for processing.

    Declaration

    Swift

    func dataReceived(slice: ArraySlice<UInt8>)
  • This method should return the window size to report to the local process.

    Declaration

    Swift

    func getWindowSize() -> winsize