Reading stdout from NSH Shell will block ... If there's nothing to read! That's why we poll() for stdout

Article: lupyuen.github.io/articles/ter

Show thread

Our Terminal App for RTOS has 3 Widgets: 2 Text Area Widgets and 1 Keyboard Widget ... Let's create the LVGL Widgets

Source: github.com/lupyuen/pinephone-n

Our Terminal shouldn't block while waiting for NSH Output ... So we call poll() to check if there's NSH Output ready for processing

Source: github.com/lupyuen/pinephone-n

Show thread

Apache RTOS has an NSH Shell that runs simple commands ... Our Terminal App shall send commands to NSH over POSIX Pipes

Source: github.com/lupyuen/pinephone-n

Show thread
Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.