mirror of
https://github.com/fdehau/tui-rs.git
synced 2024-10-30 21:20:22 +00:00
fix: update crossterm example
This commit is contained in:
parent
ce445a8096
commit
e14190ae4b
@ -34,8 +34,8 @@ fn draw(t: &mut Terminal<CrosstermBackend>) -> io::Result<()> {
|
|||||||
let size = t.size()?;
|
let size = t.size()?;
|
||||||
t.draw(|mut f| {
|
t.draw(|mut f| {
|
||||||
let text = [
|
let text = [
|
||||||
Text::Data("It "),
|
Text::raw("It "),
|
||||||
Text::StyledData("works", Style::default().fg(Color::Yellow)),
|
Text::styled("works", Style::default().fg(Color::Yellow)),
|
||||||
];
|
];
|
||||||
Paragraph::new(text.iter())
|
Paragraph::new(text.iter())
|
||||||
.block(
|
.block(
|
||||||
|
Loading…
Reference in New Issue
Block a user