You have been very clear, thank you very much:
However, trying to do what you explained, I have failed to complete because,.. including termios.h in my class in order to call ::tcsetattr(ps->handle(), TCSANOW, &tio);
then a lot of variables in my class (called B50, B200) match macro definitions in termios, i.e.
#define B50 0000001
so compiler tells me
sas.h:140: error: expected unqualified-id before numeric constant bool B50;
I think I need to wrap termios.h inside a namespace, but: I dont know if this is correct and if it is, how to do that.
Thank you again