When using a serial port, should I use the “cua” or “term” device?
If you are not sure, always use the “cua” device. To simplify, the main difference between the two devices can be seen when using the open system call. When using the “cua” device, the call will always succeed. When using the “term” device the call returns if the “carrier detect” (CD) signal is asserted. If it is not asserted, the call will block until “carrier detect” is asserted.