-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crossterm
error (via reedline
) causes pexpect
et al. not to work with brush
#230
Comments
|
@39555 -- I think the issue is going to be with any pty/tty where Ideally it would be great if At worst, we could fallback to testing |
@reubeno what about using Alacritty to test interactive usage? Than it would be the same experience. Allacritty can be used as a library without a GUI, specifically |
I'm open to us pursuing creative ideas like the one you suggest--and I also still want to see us address the underlying limitation inherited from As a specific motivating example, I looked into whether we could run the (As an aside, we already are using |
This looks to be the same as nushell/reedline#594.
Looks like
reedline
calls intocrossterm
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 withpexpect
and other simple terminal "hosts", an error percolates up and brush is unable to proceed.brush
can be run with thebasic
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).The text was updated successfully, but these errors were encountered: