Terminal is a text based user interface.
+Enter "date" to display the current date, "greet {0}" for a message and "random" to get a random number.
+Commands are processed using an EventBus implementation called TerminalService. + Import this service into your component and subscribe to commandHandler to process commands by + sending replies to commands with the response event.
+Any property as style and class are passed to the main container element. Following are the additional properties to configure the component.
+Name | +Type | +Default | +Description | +
---|---|---|---|
welcomeMessage | +string | +null | +Initial text to display on terminal. | +
prompt | +string | +null | +Prompt text for each command. | +
Following is the list of structural style classes, for theming classes visit
Name | +Element | +
---|---|
p-terminal | +Container element. | +
p-terminal-content | +Content of terminal. | +
p-terminal-prompt | +Prompt text. | +
p-terminal-response | +Command response. | +
p-terminal-input | +Input element to enter commands. | +
None.
+