Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.
LOOM Unreleased (PR #2) / SUPPORTING WEFT TYPES
TerminalCursorStyle
DECSCUSR cursor-shape requests. Emulator support varies. This type lives in weft; its enum cases can be inferred in TerminalOptions(cursorStyle:), but explicit type naming requires import weft.
Defined by weft, with no loom typealias. Add the weft product to your target and use import weft when referring to this type by name.
Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.
Example
_ = TerminalOptions(cursorStyle: .steadyBar)Members on this page
Feature guides and release status
TerminalCursorStyle
enum TerminalCursorStyleConforms to: Swift.Equatable, Swift.Hashable, Swift.RawRepresentable, Swift.Sendable, Swift.SendableMetatype.
Native cursor shapes requested with DECSCUSR; support depends on the terminal.
Source · TerminalOptions.swift:10init(rawValue:)
init?(rawValue: Int)Creates a cursor style from its DECSCUSR integer, 1 through 6. Returns nil for an unrecognized integer.
Parameters (1)
rawValue- Argument type and any default are shown in the declaration; see the behavior notes above.
blinkingBlock
case blinkingBlockThe blinking block case. Associated values, if any, are shown in the declaration.
Source · TerminalOptions.swift:11steadyBlock
case steadyBlockThe steady block case. Associated values, if any, are shown in the declaration.
Source · TerminalOptions.swift:12blinkingUnderline
case blinkingUnderlineThe blinking underline case. Associated values, if any, are shown in the declaration.
Source · TerminalOptions.swift:13steadyUnderline
case steadyUnderlineThe steady underline case. Associated values, if any, are shown in the declaration.
Source · TerminalOptions.swift:14blinkingBar
case blinkingBarThe blinking bar case. Associated values, if any, are shown in the declaration.
Source · TerminalOptions.swift:15steadyBar
case steadyBarThe steady bar case. Associated values, if any, are shown in the declaration.
Source · TerminalOptions.swift:16