aboutsummaryrefslogtreecommitdiffstats
path: root/prompt_info/prompt_replace.pl
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-10-06 23:08:17 +0000
committerTom Feist <shabble@metavore.org>2010-10-06 23:08:17 +0000
commit435588d39c7212101b5188a35e4cc953473664c2 (patch)
tree769fa23a355d63549a974d3d9a4e50383bb463bc /prompt_info/prompt_replace.pl
parentchanged terminal size detection from stty to tput lines/cols (diff)
downloadirssi-scripts-435588d39c7212101b5188a35e4cc953473664c2.tar.gz
irssi-scripts-435588d39c7212101b5188a35e4cc953473664c2.zip
added some debugging output to terminal size detection
Diffstat (limited to 'prompt_info/prompt_replace.pl')
-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 {