Skip to content

control the visible cursor with getchar(), vim.ui_attach+ext_cmdline, etc #20309

@folke

Description

@folke

Neovim version (nvim -v)

nightly

Vim (not Nvim) behaves the same?

yes

Operating system/version

Linux

Terminal name/version

kitty

$TERM environment variable

xterm-kitty

Installation

bob

How to reproduce the issue

I'm building a custom cmdline using vim.ui_attach.

Through the API, we get enough information to show a fake cursor at the command prompt, but the original cursor also stays on the screen where it was before entering the cmdline.

See screenshot below.

image

Expected behavior

When implementing ext_cmdline, the cursor should be hidden between cmdline_show and cmdline_hide events.

Actual behavior

The cursor is still there

Metadata

Metadata

Assignees

No one assigned

    Labels

    luastdlibuiui-extensibilityUI extensibility, events, protocol, externalized UI

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions