Event values depending on their types: RXCHAR - bytes count in input buffer
RXFLAG - bytes count in input buffer (Not supported in Linux)
TXEMPTY - bytes count in output buffer
CTS - state of CTS line (0 - OFF, 1 - ON)
DSR - state of DSR line (0 - OFF, 1 - ON)
RLSD - state of RLSD line (0 - OFF, 1 - ON)
BREAK - 0
RING - state of RING line (0 - OFF, 1 - ON)
ERR - mask of errors
Get sorted array of serial ports in the system using default settings: Search path
Windows - ""(always ignored)
Linux - "/dev/"
Solaris - "/dev/term/"
MacOSX - "/dev/" RegExp
Windows - ""
Linux - "(ttyS|ttyUSB|ttyACM|ttyAMA|rfcomm)[0-9]{1,3}"
Solaris - "[0-9]*|[a-z]*"
MacOSX - "tty.