Skip to content

Commit

Permalink
Merge pull request #47 from yazgoo/master
Browse files Browse the repository at this point in the history
  • Loading branch information
yazgoo authored Oct 28, 2022
2 parents 32510e8 + 9d0a806 commit bfe731a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ impl Widget for Model {}

fn main() {
let term: Term<()> = Term::with_options(
TermOptions::default()
.height(TermHeight::Percent(50))
.disable_alternate_screen(true)
.clear_on_start(false)
).unwrap();
TermOptions::default()
.height(TermHeight::Percent(50))
.disable_alternate_screen(true)
.clear_on_start(false),
)
.unwrap();
let model = Model("Hey, I'm in middle!".to_string());

while let Ok(ev) = term.poll_event() {
Expand Down

0 comments on commit bfe731a

Please sign in to comment.