aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--prompt_info/prompt_replace.pl6
1 files changed, 4 insertions, 2 deletions
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 {