command with serial console
I want to developp a real time application and I want to command my system with serial console.
The problem for me is to find a function that is non bloking my system. That's to say if a call the function it is able to see if there is an input or nothing and to execute ans pass to the next actions to do.
I used fgets but it wait for \n character so it is bloking if nothing
thanks for help