Protocols
The following protocols are available globally.
-
API for talking to BearLibTerminal. See
BLTerminal
for the concrete implementation. UseBLTerminal.main
to get the main instance.Each docstring briefly explains how it relates to the C API, so you’ll probably want to refer to the original documentation for more information.
By writing your code against this protocol instead of the concrete
See moreBLTerminal
type, you enable unit testing and possible cross-platform compatibility adapters in the future.Declaration
Swift
public protocol BLTerminalInterface : AnyObject