File mg-ttyio-TCSASOFT.patch of Package mg
--- mg-20150325.orig/ttyio.c 2015-03-25 19:47:22.000000000 +0100
+++ mg-20150325/ttyio.c 2016-01-10 12:29:34.546890674 +0100
@@ -81,7 +81,7 @@
newtty.c_oflag &= ~OPOST;
newtty.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
- if (tcsetattr(0, TCSASOFT | TCSADRAIN, &newtty) < 0) {
+ if (tcsetattr(0, TCSADRAIN, &newtty) < 0) {
dobeep();
ewprintf("ttopen can't tcsetattr");
return (FALSE);
@@ -115,7 +115,7 @@
ttcooked(void)
{
ttflush();
- if (tcsetattr(0, TCSASOFT | TCSADRAIN, &oldtty) < 0) {
+ if (tcsetattr(0, TCSADRAIN, &oldtty) < 0) {
dobeep();
ewprintf("ttclose can't tcsetattr");
return (FALSE);