Bump deps and touchup (#2066)

This commit is contained in:
Jonathan Turner
2020-06-27 19:54:31 +12:00
committed by GitHub
parent 4e2a4236f8
commit 7fed9992c9
18 changed files with 258 additions and 227 deletions

View File

@@ -120,7 +120,9 @@ impl Host for BasicHost {
}
fn width(&self) -> usize {
std::cmp::max(textwrap::termwidth(), 20)
let (mut term_width, _) = term_size::dimensions().unwrap_or_else(|| (20, 20));
term_width -= 1;
std::cmp::max(term_width, 20)
}
}