I’m using JUCE to develop a scientific application that evolved from a command line tool to a GUI application. It has a lot of prints to stdout, some come from our code and some come from 3rd party libraries. A lot of output could be translated to nice expressive GUI components, but some command line output will still be necessary and useful, so I’d like to implement some kind of component in the GUI that displays all output to stdout and stderr.
I successfully managed to capture stdout and stderr through a pipe, but I’m not sure how to manage to display the text itself? I need something like a label but with the option to push back text at the end and truncate it at the beginning if the text has filled the whole window. Maybe some scrolling-option would be nice. Just like most standard terminals work. Is there any component except for label that could help me to achieve this easily? Any hints are appreciated!