Software flow control is enabled using the IXON, IXOFF , and IXANY constants:
options.c_iflag |= (IXON | IXOFF | IXANY);
To disable software flow control simply mask those bits:
options.c_iflag &= ~(IXON | IXOFF | IXANY);
The XON (start data) and XOFF (stop data) characters are defined in the c_cc array described below.
reference:https://www.cmrr.umn.edu/~strupp/serial.html