/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/rex/ui/text/input/stdio.rb
45 строк
599 B
dwelch-r7
Zeitwerk `rex` folder
08 фев 2021, 15:24
08 фев 2021, 15:24
b95be3e
Код
Авторство
О чём код?
# -*- coding: binary -*- 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