aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-08-12 03:48:17 -0400
committerJesse Luehrs <doy@tozt.net>2019-08-12 03:48:17 -0400
commit16edecef23a3c8f965b9310527eb731ba0b5bf7a (patch)
tree31c4a59fb0970045efb4090fda026c0e40ae31a8 /src/main.rs
parent3d8778962b4a380efd098616ac49b6dedd2b8fbe (diff)
downloadynab-api-16edecef23a3c8f965b9310527eb731ba0b5bf7a.tar.gz
ynab-api-16edecef23a3c8f965b9310527eb731ba0b5bf7a.zip
add some more headers with information
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 7d19af4..bd9bc07 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -11,14 +11,16 @@ fn main() {
checks::run_checks(&budget);
let mut app = cursive::Cursive::default();
+ let cursive::XY { x: term_width, .. } = app.screen_size();
app.set_theme(display::theme());
app.add_global_callback('q', |s| s.quit());
let mut layout = cursive::views::LinearLayout::vertical();
layout.add_child(cursive::views::TextView::new(format!(
- "Budget: {} ({})",
+ "Budget: {} ({})\n{}",
budget.name(),
- budget.id()
+ budget.id(),
+ "=".repeat(term_width),
)));
layout.add_child(views::txn_tables(&budget));