BLTerminal
public class BLTerminal : BLTerminalInterface
Concrete implementation of BLTerminalInterface. Refer to that protocol
for method details.
Use BLTerminal.main to get a terminal object instance.
-
Main instance of
BLTerminal. There isn’t any point in creating more than one instance unless you’re writing tests, since all the methods just call BearLibTerminal’s global-state functions.Declaration
Swift
public static var main: BLTerminalInterface -
Undocumented
Declaration
Swift
public init() -
Undocumented
Declaration
Swift
public func open() -
Undocumented
Declaration
Swift
public func close() -
Undocumented
Declaration
Swift
@discardableResult public func configure(_ config: String) -> Bool -
Undocumented
Declaration
Swift
public func refresh() -
Undocumented
Declaration
Swift
public func clear() -
Undocumented
Declaration
Swift
public func check(_ slot: Int32) -> Bool -
Undocumented
Declaration
Swift
public func state(_ slot: Int32) -> Int32 -
Undocumented
Declaration
Swift
public func clear(area: BLRect) -
Undocumented
Declaration
Swift
public func crop(area: BLRect) -
Undocumented
Declaration
Swift
public func delay(milliseconds: BLInt) -
Undocumented
Declaration
Swift
public func measure(string: String) -> BLSize -
Undocumented
Declaration
Swift
public func getColor(name: String) -> BLColor -
Undocumented
Declaration
Swift
public func getColor(a: UInt8, r: UInt8, g: UInt8, b: UInt8) -> BLColor -
Undocumented
Declaration
Swift
public func peek() -> Int32 -
Undocumented
Declaration
Swift
public func read() -> Int32 -
Undocumented
Declaration
Swift
public var hasInput: Bool { get } -
Undocumented
Declaration
Swift
public var layer: BLInt { get set } -
Undocumented
Declaration
Swift
public var foregroundColor: BLColor { get set } -
Undocumented
Declaration
Swift
public var backgroundColor: BLColor { get set } -
Undocumented
Declaration
Swift
public var isCompositionEnabled: Bool { get set }
View on GitHub
Install in Dash
BLTerminal Class Reference