use cfmakeraw to set raw mode for serial ports