loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / 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

Enumeration
enum TerminalCursorStyle

Conforms 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:10

init(rawValue:)

Initializer
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
case blinkingBlock

The blinking block case. Associated values, if any, are shown in the declaration.

Source · TerminalOptions.swift:11

steadyBlock

Case
case steadyBlock

The steady block case. Associated values, if any, are shown in the declaration.

Source · TerminalOptions.swift:12

blinkingUnderline

Case
case blinkingUnderline

The blinking underline case. Associated values, if any, are shown in the declaration.

Source · TerminalOptions.swift:13

steadyUnderline

Case
case steadyUnderline

The steady underline case. Associated values, if any, are shown in the declaration.

Source · TerminalOptions.swift:14

blinkingBar

Case
case blinkingBar

The blinking bar case. Associated values, if any, are shown in the declaration.

Source · TerminalOptions.swift:15

steadyBar

Case
case steadyBar

The steady bar case. Associated values, if any, are shown in the declaration.

Source · TerminalOptions.swift:16