From 0ca8eae3ee251e2943e510098381ff9fa7e972bd Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 19 Aug 2014 16:13:08 +0200 Subject: [PATCH] term2gui.pl: read from STDIN --- term2gui.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/term2gui.pl b/term2gui.pl index 6da84f4..274ad2c 100755 --- a/term2gui.pl +++ b/term2gui.pl @@ -3,7 +3,7 @@ # Convert a terminal color scheme for 256 color terminals to a GUI color # scheme by adding the appropriate gui* options. -# Copyright (C) 2012 Simon Ruderich +# Copyright (C) 2012-2014 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -281,7 +281,7 @@ sub xterm2rgb { } -while (<>)) { +while () { # Only handle lines with highlight commands. if (/^\s*\bhi(?:ghlight)?\b/) { foreach my $setting (m/\bcterm(?:fg|bg)?=\S+/g) { -- 2.45.2