Shows intput and output text. Allows to enter commands. Supports history.
This widget only provides GUI, but does not implement any system terminal or other functionality
Bases: QWidget
Widget wich represents terminal. It only displays text and allows to enter text. All highlevel logic should be implemented by client classes
Set highlighting language for input widget
Save current command in the history. Append it to the log. Execute child’s method. Clear edit line.
Reimplement in the child classes to execute enterred commands
Appent text to output widget
Appent error text to output widget. Text is drawn with red background
Appent error text to output widget. Text is drawn with red background
Clear the widget
Executed when Enter is pressed to check if widget should execute the command, or insert newline.
Implement this function in the child classes.