1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-22 21:01:36 +03:00
wezterm/docs/config/lua/pane/get_cursor_position.md

16 lines
385 B
Markdown
Raw Normal View History

# `pane:get_cursor_position()`
*Since: 20201031-154415-9614e117*
Returns a lua representation of the `StableCursorPosition` struct
that identifies the cursor position, visibility and shape.
It has the following fields:
* `x` the horizontal cell index
* `y` the vertical stable row index
* `shape` the `CursorShape` enum value
* `visibility` the `CursorVisibility` enum value