Module Rex::Ui::Text::Shell
In: lib/rex/ui/text/shell.rb

The shell class provides a command-prompt style interface in a generic fashion.

Methods

Classes and Modules

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

Attributes

disable_output  [RW]  Whether or not output has been disabled.
input  [R]  The input handle to read user input from.
output  [R]  The output handle to write output to.

Public Class methods

Initializes a shell that has a prompt and can be interacted with.

Public Instance methods

Returns colorized text if it‘s supported, otherwise an empty string.

Colorize if this shell supports it

Initializes the user interface input/output classes.

Prints a raw message to the output handle.

Prints an error message to the output handle.

Prints a line of text to the output handle.

Prints a status message to the output handle.

Resets coloring so that it‘s back to normal.

Resets the user interface handles.

Run the command processing loop.

Sets the log source that should be used for logging input and output.

Stop processing user input.

Checks to see if the shell has stopped.

Checks to see whether or not colors are supported on this shell console.

Performs tab completion on the supplied string.

Unsets the log source so that logging becomes disabled.

Protected Instance methods

Print the prompt, but do not log it.

Writes the supplied input to the log source if one has been registered.

Writes the supplied output to the log source if one has been registered.

Parse a line into an array of arguments.

[Validate]