HeadlessTerminal
public class HeadlessTerminal : TerminalDelegate, LocalProcessDelegate
A HeadlessTerminal
provides a terminal emulator that runs a local process, but the output does not go
anywhere. You can use this to script applications and screen scrape the output for example, by accessing the
terminal
from this class.
-
Undocumented
Declaration
Swift
public private(set) var terminal: Terminal! { get }
-
Undocumented
Declaration
Swift
public init(queue: DispatchQueue? = nil, options: TerminalOptions = TerminalOptions.default, onEnd: @escaping (_ exitCode: Int32?) -> ())
-
Declaration
Swift
public func processTerminated(_ source: LocalProcess, exitCode: Int32?)
-
Declaration
Swift
public func dataReceived(slice: ArraySlice<UInt8>)
-
Declaration
Swift
public func send(source: Terminal, data: ArraySlice<UInt8>)
-
Declaration
Swift
public func getWindowSize() -> winsize
-
Declaration
Swift
public func mouseModeChanged(source: Terminal)
-
Declaration
Swift
public func hostCurrentDirectoryUpdated(source: Terminal)
-
Undocumented
Declaration
Swift
public func colorChanged(source: Terminal, idx: Int)