Due Native port serial communication help

Thanks, you mean the source code of IDE's serial monitor or the serial communication lib?

I have forgotten the IDE is open source too. Nice idea!