mabe02 / lanterna

Java library for creating text-based GUIs
GNU Lesser General Public License v3.0
2.24k stars 243 forks source link

Multiple colours in TextBoxes available? #480

Open amxrmxhdx opened 4 years ago

amxrmxhdx commented 4 years ago

I think that the title says it all :D

mabe02 commented 4 years ago

Sorry, no. It's quite tricky to do as well, as you need to parse some sort of markup to indicate where the color/style should change. You can create a custom TextBoxRenderer to achive this, so you won't need to re-implement the whole TextBox, but I'm afraid the supplied DefaultTextBoxRenderer isn't really written with inheritence in mind...