| Crates.io | cursivext |
| lib.rs | cursivext |
| version | 0.0.0 |
| created_at | 2025-04-02 00:11:26.599103+00 |
| updated_at | 2025-04-02 00:11:26.599103+00 |
| description | Some useful extensions for Cursive TUI. |
| homepage | |
| repository | https://github.com/2moe/cursivext |
| max_upload_size | |
| id | 1615804 |
| size | 48,265 |

use cursivext::{cursive, views::Checkbox};
use cursive::{With, views::Panel};
let checkbox = Checkbox::wrap_linear_layout("good?").wrap_with(Panel::new);
cursive::default()
.with(|siv| siv.add_layer(checkbox));
.run();
// => [✔︎] good?
Note: The original cursive 0.21.1 Checkbox is [X] good? instead of [✔︎] good?.
tabs::add_global_key_shortcuts
| Tab | Alt+ | Ctrl+Shift+ |
|---|---|---|
| 1 | 1 | F1 |
| ... | ... | ... |
| 9 | 9 | F9 |
| 10 | 0 | F10 |
tabs::add_global_tab_switch_key_shortcuts
| Direction | Primary Shortcut | Alternate Shortcut |
|---|---|---|
| Previous Tab | Alt+PageUp | Ctrl+Alt+PageUp |
| Next Tab | Alt+PageDown | Ctrl+Alt+PageDown |