--- /dev/null
+#include <termios.h>
+#include <stdio.h>
+#include <errno.h>
+#include <string.h>
+#include <unistd.h>
+
+int main(int argc, const char *const *argv) {
+ int op, r;
+
+ switch (argv[1][0]) {
+ case 'N': op= TCOOFF; break;
+ case 'Y': op= TCOON; break;
+ case 'n': op= TCIOFF; break;
+ case 'y': op= TCION; break;
+ default: abort();
+ }
+ r= tcflow(3,op);
+ fprintf(stderr,"r=%d e=%s\n",r,strerror(errno));
+ return 0;
+}