NAME
Karel::UI::Text::Robot
DESCRIPTION
The role used by Karel::UI::Text to introduce methods to interact with the user and show the grid.
METHODS
- cls
-
Clears the screen.
-
Display a menu listing commands, run the callback associated with the selected item.
- $robot->show
-
Draw the grid with the robot.
- $robot->load_grid_from_path($path)
-
List the files in the given path, load grid from the selected one. If a directory is selected, show its contents.
- $robot->load_commands($file)
-
Load commands from the given file.
- $robot->load_commands_from_path($path)
-
List the files in the given path. Load commands from the selected one. If a directory is selected, show its contents.
- execute
-
Show all the possible commands as a
menu
, run the selected one.