mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 20:53:19 +00:00
2faa879658
This allows for multi-line symbols to be used as the highlight symbol. ```rust let table = Table::new(rows, widths) .highlight_symbol(Text::from(vec![ "".into(), " █ ".into(), " █ ".into(), "".into(), ])); ```
19 lines
382 B
VHS
19 lines
382 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/table.tape`
|
|
Output "target/table.gif"
|
|
Set Theme "Aardvark Blue"
|
|
Set Width 1200
|
|
Set Height 800
|
|
Hide
|
|
Type "cargo run --example=table --features=crossterm"
|
|
Enter
|
|
Sleep 1s
|
|
Show
|
|
Sleep 2s
|
|
Set TypingSpeed 0.5s
|
|
Down 2
|
|
Up 2
|
|
Down 8
|
|
Up 12
|
|
Down 4
|
|
Sleep 2s
|