Skip to content

"Press-Enter" prompt in headless mode #9358

Closed
@blueyed

Description

@blueyed

nvim --headless -c 'echoerr 1' will display the error and appears to wait for the Enter from the hit-enter prompt:

Error detected while processing command line:
1

It does not handle any Enter presses though, and Ctrl-C is required to cancel it.

Without --headless it will redraw the screen and displays:

Error detected while processing command line:
1
Press ENTER or type command to continue

You can use nvim --headless -c 'echoerr 1' -c q to work around this, but Neovim should not hang there without -c q already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions