Terminal

public final class Terminal

Undocumented

  • Undocumented

    Declaration

    Swift

    public typealias WindowSizeDidChangeHandler = (_ rows: Int, _ columns: Int) -> Void
  • Closure that is invoked whenever the size of the terminal window changes. Invocations are done on the main thread. The first argument represents the row count and the second argument the column count.

    Declaration

    Swift

    public static var windowSizeDidChange: Terminal.WindowSizeDidChangeHandler? { get set }
  • The current size of the terminal window.

    Declaration

    Swift

    public static var windowSize: (rows: Int, columns: Int) { get }
  • The detected terminal type for the specified file handle.

    Declaration

    Swift

    public static func type(fileHandle: FileHandle) -> TerminalType