Skip to content

crossterm error (via reedline) causes pexpect et al. not to work with brush #230

@reubeno

Description

@reubeno

This looks to be the same as nushell/reedline#594.

Looks like reedline calls into crossterm to query the current cursor position; crossterm, in turn, implements that by sending a VT terminal code and waiting a limited period of time for the terminal emulator to detect the code and respond with encoded cursor info. When the duration elapses without a response, as happens with pexpect and other simple terminal "hosts", an error percolates up and brush is unable to proceed.

brush can be run with the basic input backend, but then features like tab completion can't be tested in those environments. Would be great to figure out how to make this work for testing purposes (e.g., to run bash-completion integration test suite).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions