mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-26 14:40:30 +00:00
dfd6db988f
```shell
cargo run --example demo2 --features="crossterm widget-calendar"
```
Press `d` to activate destroy mode and Enjoy!
![Destroy
Demo2](1d39444e3d/examples/demo2-destroy.gif
)
Vendors a copy of tui-big-text to allow us to use it in the demo.
18 lines
No EOL
620 B
VHS
18 lines
No EOL
620 B
VHS
# This is a vhs script. See https://github.com/charmbracelet/vhs for more info.
|
|
# To run this script, install vhs and run `vhs ./examples/demo.tape`
|
|
# NOTE: Requires VHS 0.6.1 or later for Screenshot support
|
|
Output "target/demo2-destroy.gif"
|
|
Set Theme "Aardvark Blue"
|
|
# The reason for this strange size is that the social preview image for this
|
|
# demo is 1280x64 with 80 pixels of padding on each side. We want a version
|
|
# without the padding for README.md, etc.
|
|
Set Width 1120
|
|
Set Height 480
|
|
Set Padding 0
|
|
Hide
|
|
Type "cargo run --example demo2 --features crossterm,widget-calendar"
|
|
Enter
|
|
Sleep 2s
|
|
Show
|
|
Type "d"
|
|
Sleep 30s |