JakeWharton / mosaic

Build terminal UI in Kotlin using Jetpack Compose
Apache License 2.0
1.89k stars 57 forks source link

textinput support? #274

Open juliocbcotta opened 10 months ago

juliocbcotta commented 10 months ago

Hey, I was checking the library and I couldn't find any TextInput support/demo on it... Am I missing anything?

JakeWharton commented 10 months ago

Nothing is supported today. This is tracked by #10, although that is for the low-level mechanism and not a high-level component such as TextInput which likely also requires focus management to be supported first.

juliocbcotta commented 10 months ago

Ahh, OK. I thought that maybe mosaic could reuse some code from compose-multiplatform for keyboard handling, but maybe it is too much. Thank you for the reply.

JakeWharton commented 10 months ago

Nope. Nothing can be reused.

dniel commented 1 month ago

I am also researching Mosaic to create a PoC application for our team which will be used to consume our own API services so that we can try them from a user perspective (and also for our team to use when debugging our own resposne data). Its based on the rrtop sample right now and will have screens where you can paginate the datasets and view in a typical master-detail view more information of each row in the table.

I need to add textinput so that its possible to add a search dialog or command for that will be used when requesting data from the backends and displayed in table form in the screen. Hopefully it would be possible to create dialogs with input fields, but as a first attempt just commands like VIM would be enough to get input for search.

JakeWharton commented 2 weeks ago

Key handling is now supported, so one could write a very basic input field. We still lack anything like a focus manager, though.