Sha256: 98881f6661263e1a8751b92a2069dfc685189906b6858cebaf49bd8fdf4313ae
Contents?: true
Size: 588 Bytes
Versions: 2
Compression:
Stored size: 588 Bytes
Contents
# -*- coding: binary -*- require 'rex/ui' module Rex module Ui module Text ### # # This class implements input against standard in. # ### class Input::Stdio < Rex::Ui::Text::Input # # Reads text from standard input. # def sysread(len = 1) $stdin.sysread(len) end # # Wait for a line of input to be read from standard input. # def gets return $stdin.gets end # # Returns whether or not EOF has been reached on stdin. # def eof? $stdin.closed? end # # Returns the file descriptor associated with standard input. # def fd return $stdin end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/ui/text/input/stdio.rb |
librex-0.0.66 | lib/rex/ui/text/input/stdio.rb |