summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Tay <sam.chong.tay@gmail.com>2020-07-12 15:04:26 -0700
committerSam Tay <sam.chong.tay@gmail.com>2020-07-12 15:04:26 -0700
commitf3f3bab692439803aa73a97315c9e2865ef262c6 (patch)
tree1e7a0342d1d5ea2cdae4c6efb58e96a2179597e2
parentff8f1d878cdd226e14f22a3320df5fd4b2825c77 (diff)
Add debug logging to termimad::print_text
-rw-r--r--src/term.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/term.rs b/src/term.rs
index 86c0f4c..407263a 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -47,6 +47,8 @@ impl Term {
/// Print text to stdout
pub fn print(&self, text: &str) {
+ println!("Terminal size: {:?}", crossterm::terminal::size());
+ println!("Calling skin.print_text with: BEGIN\n{}\nEND", text);
self.skin.print_text(text)
}