I’m writing a “console” for my application to capture the verbose output of my kernel and also allow the user to execute commands. So I want to have a read-only TextEditor for displaying the text. What’s the best way to do this so that when it grows past a certain number of lines, I can trim the first few lines from the beginning to keep it under a specific size?
Or should I be using a different Component for this?
For the user entering commands, that is done with a small, separate single line TextEditor at the bottom of the window.