|
Link Here
|
| 1 |
--- extract_url.pl.orig 2017-01-18 14:59:52 UTC |
|
|
| 2 |
+++ extract_url.pl |
| 3 |
@@ -54,18 +54,7 @@ sub VERSION_MESSAGE { |
| 4 |
|
| 5 |
my $term_cols = 80; |
| 6 |
my ($term_rows, $term_wpix, $term_hpix); |
| 7 |
-if (eval "use Term::Readkey") { |
| 8 |
- ($term_cols, $term_rows, $term_wpix, $term_hpix) = GetTerminalSize(); |
| 9 |
-} else { |
| 10 |
- require 'sys/ioctl.ph'; |
| 11 |
- if (defined &TIOCGWINSZ and open(TTY, "+</dev/tty")) { |
| 12 |
- my $winsize = ''; |
| 13 |
- unless (ioctl(TTY, &TIOCGWINSZ, $winsize)) { |
| 14 |
- die sprintf "$0: ioctl TIOCGWINSZ (%08x: $!)\n", &TIOCGWINSZ; |
| 15 |
- } |
| 16 |
- ($term_rows, $term_cols, $term_wpix, $term_hpix) = unpack('S4', $winsize); |
| 17 |
- } |
| 18 |
-} |
| 19 |
+require 'sys/ioctl.ph'; |
| 20 |
my $list_width = $term_cols - 4; # 4 is for the border width on either side |
| 21 |
|
| 22 |
my %options; |