enum

TermBuf::CursorShape

Inherits Enum < Comparable < Value < Object

Stability: stable — changes only in a major release.

What the terminal draws its own cursor as.

Default gives the shape back to the terminal, which is the one every other member cannot be: a person who set a bar cursor in their terminal's preferences gets it back rather than the block this shard would otherwise have to guess at. See Terminal#cursor_shape=.

Constants

Default = 0

Whatever the terminal was configured to draw.

Block = 1

A filled rectangle over the cell.

Underline = 2

A line under the cell.

Bar = 3

A line down the left of the cell, sometimes called a beam or an I-beam.

Instance methods

bar?

Returns true if this enum value equals Bar

Source
block?

Returns true if this enum value equals Block

Source
default?

Returns true if this enum value equals Default

Source
underline?

Returns true if this enum value equals Underline

Source