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
sourcethe sending instance
newColsthe new number of columns that should be shown
newRowthe 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
sourcethe sending instance
titlethe 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
sourcethe sending instance
directorythe new working directory
-
This method will be invoked when the child process started by
startProcesshas terminated.Declaration
Swift
func processTerminated(source: TerminalView, exitCode: Int32?)Parameters
sourcethe local process that terminated
exitCodethe exit code returned by the process, or nil if this was an error caused during the IO reading/writing
View on GitHub
Install in Dash
LocalProcessTerminalViewDelegate Protocol Reference