LocalProcessTerminalViewDelegate

public protocol LocalProcessTerminalViewDelegate

Undocumented

  • This method is invoked to notify that the terminal has been resized to the specified number of columns and rows the user interface code might try to adjut the containing scroll view, or if it is a toplevel window, the window itself

    Declaration

    Swift

    func sizeChanged(source: LocalProcessTerminalView, newCols: Int, newRows: Int)

    Parameters

    source

    the sending instance

    newCols

    the new number of columns that should be shown

    newRow

    the new number of rows that should be shown

  • This method is invoked when the title of the terminal window should be updated to the provided title

    Declaration

    Swift

    func setTerminalTitle(source: LocalProcessTerminalView, title: String)

    Parameters

    source

    the sending instance

    title

    the desired title

  • Invoked when the OSC command 7 for “current directory has changed” command is sent

    Declaration

    Swift

    func hostCurrentDirectoryUpdate(source: TerminalView, directory: String?)

    Parameters

    source

    the sending instance

    directory

    the new working directory

  • This method will be invoked when the child process started by startProcess has terminated.

    Declaration

    Swift

    func processTerminated(source: TerminalView, 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