Using the RichTextCtrl widget we are able to use advanced formatting in the console pannel. The formatting information is extracted from the text stream by searching for terminal escape sequences. The sequence values are taken from the colored package, which becomes a lazy dependency (imported only when the feature is activated).
The previous implementation (using the TextCtrl widget) has been extracted into a separate class.
The client code chooses between the basic or the rich class based on the richtext_controls configuration parameter. The default is to use the previous implementation based on TextCtrl.
If the parameter is set to yes in the gooey decorator, the console will
be cleared before each run.
Current default parameter value is conservative and does not clear the
console.
config_generator.has_argparse could not work as
`f` does not exist in scope. Furthermore, I suspect it is
probably a duplication accident, as it's very similar
to source_parser.has_argparse, which is the only one
used in the codebase.