-
Notifications
You must be signed in to change notification settings - Fork 268
Open
Description
I understand that for the typical console operation additional AWT and Swing features do not make much sense. But for the Swing terminals some features might be really helpful:
- A default background color (incl. getter / setter) which is not Black - the initial background color of the terminal before anything is written and if the terminal scrolls, the new lines background. If I am not mistaken this is currently TextColor.ANSI.DEFAULT which is hard coded to be black. Changing this default background color should change the attribute of all text including the text which is currently not visible because is scrolled out of the current viewport. So if you scroll a ScrollingSwingTerminal all the background should have that color initially / until one writes something with a different background color. If you call clearScr, that should remove all characters and all colors other than the default background color.
- Better support of AWT.Color as a TextColor. Converting between TextColor and AWT.Color while using a SwingTerminal is a clumsy.
- Something like clearEOL -> fill the current line from the current position to the end of the line with ' ' and the default background color, without changing the the cursor position.
- A more easy way to auto hide the scrollbar (e.g. using a ScrollPane) when no Scrollbar is needed (if, for example, the whole text is currently visible).
- A more easy way to attach Mouse / Keyboard Listeners to a SwingTerminal / Scrolling SwingTerminal.
I do not need that on the screen or GUI level, but on the terminal level. 2,4,5 can be done with a little bit of hacking and without changing the Lanterna sources but a more direct way would be appreciated (at least be myself :-)
Thx a lot for even considering this.
Metadata
Metadata
Assignees
Labels
No labels