Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3372
Posted: 08:21am 12 Dec 2018
It actually waits for the last character to be clocked out of the hardware UART. So nothing will be lost.
No. In the Windows/DOS version writes are not buffered so any command that writes to a serial port will only return when all the data has been sent. There may be one last character being clocked out of the hardware UART but a CLOSE should not disturb it.