Skip to content

Cursor

The cursor section controls the appearance and behavior of the terminal cursor.

[cursor]
shape = "block"
blink = true
trail = false
OptionTypeDefaultDescription
shapestring"block"Cursor shape
blinkbooleantrueEnable cursor blinking
trailbooleanfalseEnable cursor trail effect
ShapeDescription
"block"Filled rectangle covering the entire cell
"beam"Thin vertical line at the left edge of the cell
"underline"Thin horizontal line at the bottom of the cell
[cursor]
shape = "beam"

The cursor trail adds a smooth animation effect when the cursor moves. When enabled, the previous cursor position fades out as the cursor reaches its new position.

[cursor]
trail = true
FlagDescription
--cursor-shape <shape>block, beam, or underline
--cursor-blink / --no-cursor-blinkEnable/disable blinking
--cursor-trail / --no-cursor-trailEnable/disable trail

All cursor settings are hot-reloadable.

Programs running inside the terminal can also change the cursor shape using the DECSCUSR escape sequence. When the program exits or resets, the cursor reverts to your configured shape.