Struct rusterm::Console [−][src]
Expand description
The main constructor owning the console. It contains the command table and the prompt string.
Fields
command_table: HashMap<String, Command>
Used for aliasing function pointers with names to be looked up later when their alias is typed in to the prompt.
prompt: String
The characters that come before input, like >>
or Console ->
.
Implementations
Creates a new instance of the Console struct. It takes two arguments, the command table and the prompt string.