Methods

Class/Module Index [+]

Quicksearch

Rex::Ui::Text::Shell::InputShell

This module is meant to be mixed into an input medium class instance as a means of extending it to display a prompt before each call to gets.

Attributes

output[RW]
prompt[RW]

Public Instance Methods

pgets() click to toggle source
# File lib/rex/ui/text/shell.rb, line 24
def pgets()

        output.print(prompt)
        output.flush

        output.prompting
        buf = gets
        output.prompting(false)

        buf
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.