LocalProcessTerminalView
public class LocalProcessTerminalView : TerminalView, LocalProcessDelegate, TerminalViewDelegate
Undocumented
-
Declaration
Swift
public func bell(source: TerminalView)
-
Declaration
Swift
public func scrolled(source: TerminalView, position: Double)
-
Declaration
Swift
public func setTerminalTitle(source: TerminalView, title: String)
-
Undocumented
Declaration
Swift
public init(delegate: LocalProcessTerminalViewDelegate? = nil)
-
Launches a child process inside a pseudo-terminal.
Declaration
Swift
public func startProcess(executable: String = "/bin/bash", args: [String] = [], environment: [String]? = nil, execName: String? = nil)
Parameters
executable
The executable to launch inside the pseudo terminal, defaults to /bin/bash
args
an array of strings that is passed as the arguments to the underlying process
environment
an array of environment variables to pass to the child process, if this is null, this picks a good set of defaults from
Terminal.getEnvironmentVariables
. -
This method is invoked when input from the user needs to be sent to the client
Declaration
Swift
public func send(source: TerminalView, data: ArraySlice<UInt8>)
-
Declaration
Swift
public func processTerminated(_ source: LocalProcess, exitCode: Int32?)
-
Declaration
Swift
public func dataReceived(slice: ArraySlice<UInt8>)
-
Declaration
Swift
public override var frame: Rect { get set }
-
Declaration
Swift
public func getWindowSize() -> winsize
-
Declaration
Swift
public func sizeChanged(source: TerminalView, newCols: Int, newRows: Int)
-
Declaration
Swift
public func hostCurrentDirectoryUpdate(source: TerminalView, directory: String?)
-
Declaration
Swift
public func requestOpenLink(source: TerminalView, link: String, params: [String : String])