From 12b262dfa40bf8f479e1d9f1a040a464d1236630 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 27 Jan 2015 10:29:55 +0100 Subject: [PATCH] Disable flow control RTS/CTS lines may be used for something else than flow control so disable it. If it turns out that we need it for some hardware, we will add an command line option to enable it. --- sterm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sterm.c b/sterm.c index 209f83c..407f6c2 100644 --- a/sterm.c +++ b/sterm.c @@ -242,6 +242,8 @@ int main(int argc, char *argv[]) CHECK(ioctl(fd, TIOCMSET, &status)); } + tio.c_cflag &= ~(CRTSCTS|IXON|IXOFF); /* Disable flow control */ + CHECK(tcsetattr(fd, TCSANOW, &tio)); } else if (speed || dtr || rts) { fprintf(stderr, "Cannot set speed, DTR or RTS on non-terminal %s\n", dev); -- 2.39.2