Thanks for the insightful elaboration on console behavior in Mbed OS 6.
How would you test the std console input for readability? Here’s the example from Mbed OS 5:
#include "mbed.h"
Serial pc(USBTX, USBRX);
int main()
{
while (true)
{
if(pc.readable()) {
pc.getchar();
......
}
}
}