Skip to content

Commit

Permalink
add: checkbox and its tape (and remove other examples)
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Mar 13, 2024
1 parent 99887da commit 4225ff9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 163 deletions.
2 changes: 1 addition & 1 deletion examples/checkbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn main() -> Result {
"Kiwi",
"Pear",
])
.title("Please list as many of your favorite fruits as you can.")
.title("What are your favorite fruits?")
.checkbox_lines(5)
.prompt()?;
println!("result: {:?}", p.run()?);
Expand Down
46 changes: 0 additions & 46 deletions examples/e2e.rs

This file was deleted.

116 changes: 0 additions & 116 deletions examples/listbox_keymap.rs

This file was deleted.

16 changes: 16 additions & 0 deletions tapes/checkbox.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Output tapes/checkbox.gif

Require cargo

Set Shell "bash"
Set Theme "Dracula"
Set FontSize 32
Set Width 1200
Set Height 600

Type@50ms "cargo run -q --example checkbox" Enter Sleep 1s
Down@300ms 3 Sleep 1s
Space Sleep 1s
Up@300ms 1 Sleep 1s
Space Sleep 1s
Enter Sleep 2s

0 comments on commit 4225ff9

Please sign in to comment.