aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--prompt_info/visual.pl23
1 files changed, 0 insertions, 23 deletions
diff --git a/prompt_info/visual.pl b/prompt_info/visual.pl
index 1413d0d..b29875b 100644
--- a/prompt_info/visual.pl
+++ b/prompt_info/visual.pl
@@ -30,29 +30,6 @@ my ($term_w, $term_h) = (0, 0);
my ($region_start, $region_end) = (0, 0);
my $region_content = '';
-sub update_terminal_size {
-
- my @stty_data = qx/stty -a/;
- my $line = $stty_data[0];
-
- # linux
- # speed 38400 baud; rows 36; columns 126; line = 0;
- if ($line =~ m/rows (\d+); columns (\d+);/) {
- $term_h = $1;
- $term_w = $2;
- # osx
- # speed 9600 baud; 40 rows; 235 columns;
- } elsif ($line =~ m/(\d+) rows; (\d+) columns;/) {
- $term_h = $1;
- $term_w = $2;
- } else {
- # guess?
- $term_h = 24;
- $term_w = 80;
- }
-
- print "Terminal detected as $term_w cols by $term_h rows" if DEBUG;
-}
sub visual_subcmd_handler {
my ($data, $server, $item) = @_;