in reply to tty-level buffer overflows
You may also be able to use stty(1) to set the serial port's options.