From 435588d39c7212101b5188a35e4cc953473664c2 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Thu, 7 Oct 2010 00:08:17 +0100 Subject: added some debugging output to terminal size detection --- prompt_info/prompt_replace.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'prompt_info') diff --git a/prompt_info/prompt_replace.pl b/prompt_info/prompt_replace.pl index 19fa022..90bb6f6 100644 --- a/prompt_info/prompt_replace.pl +++ b/prompt_info/prompt_replace.pl @@ -45,8 +45,10 @@ sub update_terminal_size { chomp $rows; chomp $cols; - $term_w = $cols; - $term_h = $rows; + $term_w = 0+$cols; + $term_h = 0+$rows; + + print "Terminal detected as $term_w cols by $term_h rows" if DEBUG; } sub prompt_subcmd_handler { -- cgit v1.2.3