You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hovering over a button presses it when using the crossterm backend. Termion has the correct behavior.
To Reproduce
cursive = { version = "0.20.0", default-features = false, features = ["crossterm-backend"] }
Use the example code:
use cursive::views::{Dialog, TextView};
fn main() {
// Creates the cursive root - required for every application.
let mut siv = cursive::default();
// Creates a dialog with a single "Quit" button
siv.add_layer(Dialog::around(TextView::new("Hello Dialog!"))
.title("Cursive")
.button("Quit", |s| s.quit()));
// Starts the event loop.
siv.run();
}
Touch the quit button with the mouse cursor.
Expected behavior
Nothing happens unless I left-click.
I still cannot reproduce it, either with the default terminal app, or with alacritty.
Does the issue still exist when running from this git main branch? (It should use crossterm 0.27.0).
Note also that cursive expects a utf-8 locale. You could try setting for example export LANG=en_US.UTF-8 (or some other locale of your choice) to see if that makes a difference, though I don't think it should in this case.
Describe the bug
Hovering over a button presses it when using the crossterm backend. Termion has the correct behavior.
To Reproduce
cursive = { version = "0.20.0", default-features = false, features = ["crossterm-backend"] }
Use the example code:
Expected behavior
Nothing happens unless I left-click.
Environment
The text was updated successfully, but these errors were encountered: