diff --git a/lib/uplot/command.rb b/lib/uplot/command.rb index 4106aa9..7628c6f 100644 --- a/lib/uplot/command.rb +++ b/lib/uplot/command.rb @@ -35,8 +35,14 @@ module Uplot exit end + watchman = Thread.new do + sleep(1) + warn 'No input file or piped data provided. Waiting for standard input:' + end + # Sometimes the input file does not end with a newline code. while (input = Kernel.gets(nil)) + watchman.kill input.freeze @raw_inputs << input @data = Preprocessing.input(input, delimiter, headers, transpose)