mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-26 06:30:29 +00:00
bb5444f618
This commit adds `scroll` to the flex example. It also adds more examples to showcase how constraints interact. It improves the UI to make it easier to understand and short terminal friendly. <img width="380" alt="image" src="https://github.com/ratatui-org/ratatui/assets/1813121/30541efc-ecbe-4e28-b4ef-4d5f1dc63fec"/> --------- Co-authored-by: Dheepak Krishnamurthy <me@kdheepak.com>
17 lines
372 B
VHS
17 lines
372 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/layout.tape`
|
|
Output "target/flex.gif"
|
|
Set Theme "Aardvark Blue"
|
|
Set Width 1200
|
|
Set Height 1410
|
|
Hide
|
|
Type "cargo run --example=flex --features=crossterm"
|
|
Enter
|
|
Sleep 2s
|
|
Show
|
|
Sleep 2s
|
|
Right @5s 7
|
|
Sleep 2s
|
|
Left 7
|
|
Sleep 2s
|
|
Down @200ms 50
|