guild icon
Toit
#How to wait in a host app for an user input (keyboard event) ?
Thread channel in help
kaxori
kaxori 05/05/2024 01:00 PM
I want to react to user input via keyboard.
kaxoriOPkaxori
I want to react to user input via keyboard.
floitsch
floitsch 05/06/2024 08:07 AM
I'm not sure if that allows you to read individual characters, or if that only gives you lines ( @erikcorry might know).
floitsch
floitsch 05/06/2024 08:08 AM
On the device we haven't exposed the input-pin yet.
You can work around it, by changing the sdkconfig so that the logging UART RX goes to a different (unused) pin, and then opening another UART on the actual RX pin.
erikcorry
erikcorry 05/06/2024 05:34 PM
It should give you individual characters but if stdin is a TTY then the tty settings will determine if it's line buffered, normally it is.(edited)
5 messages in total