hbyint / lanterna

Automatically exported from code.google.com/p/lanterna
GNU Lesser General Public License v3.0
0 stars 0 forks source link

TextArea does not accept input #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Serving Lanterna over telnetd. TextArea does not accept any characters.

On cursory inspection, 
com.googlecode.lanterna.gui.component.TextBox#keyboardInteraction processes 
NormalKey, while 
com.googlecode.lanterna.gui.component.TextArea#keyboardInteraction does not.

Original issue reported on code.google.com by sivan.mo...@gmail.com on 30 Jan 2013 at 12:22

GoogleCodeExporter commented 9 years ago
TextArea was never meant to be a large area for text input. Martin has said 
(https://groups.google.com/forum/#!msg/lanterna-discuss/Piv3iJ-KEw4/LLaP7cw_LAwJ
) that it would take a lot of time to implement, and so far the solution's been 
to mainly just manipulate it with the appendLine(String l) and insertLine(int 
i, String l). Who knows though, I mean it does have the hasFocus() method, 
though I suspect that the solution to this issue runs deeper than that...

Original comment by tobias.s...@gmail.com on 11 Mar 2013 at 7:33

GoogleCodeExporter commented 9 years ago
Yeah, hopefully with the GUI system redesign I can put in a large text area 
component. Until then, you can always create your own custom component and 
write input handling for it. A good starting point would be to just copy-paste 
the code to TextArea.

Original comment by mab...@gmail.com on 20 Mar 2013 at 1:17