摘要 |
A system and method for integrating command shell into a graphical user interface (GUI) in order to provide a single user interface (UI), so that a user need not work in different environments for different tasks are provided. An output response from the command shell is typically one or more lines of text from an output stream such as standard error or standard output. To accomplish the integration, a user is enabled to enter shell commands from the GUI. Output responses from the commands are interpreted to determine how to represent objects in the responses. The interpretation may be by pattern matching with regular expressions. If a shell command produces lines of command output, which when interpreted (e.g. indicating a file or folder), map to some other object model (e.g. a file subsystem) in the GUI, appropriate model objects (e.g., a file or folder icon) are created and rendered into the GUI as a response to the shell command.
|