=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/ttyio.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- src/usr.bin/mg/ttyio.c 2013/04/20 17:39:50 1.34 +++ src/usr.bin/mg/ttyio.c 2014/03/20 07:47:29 1.35 @@ -1,4 +1,4 @@ -/* $OpenBSD: ttyio.c,v 1.34 2013/04/20 17:39:50 deraadt Exp $ */ +/* $OpenBSD: ttyio.c,v 1.35 2014/03/20 07:47:29 lum Exp $ */ /* This file is in the public domain. */ @@ -59,6 +59,7 @@ ttraw(void) { if (tcgetattr(0, &oldtty) < 0) { + dobeep(); ewprintf("ttopen can't get terminal attributes"); return (FALSE); } @@ -81,6 +82,7 @@ newtty.c_cflag |= CS8; #endif if (tcsetattr(0, TCSASOFT | TCSADRAIN, &newtty) < 0) { + dobeep(); ewprintf("ttopen can't tcsetattr"); return (FALSE); } @@ -114,6 +116,7 @@ { ttflush(); if (tcsetattr(0, TCSASOFT | TCSADRAIN, &oldtty) < 0) { + dobeep(); ewprintf("ttclose can't tcsetattr"); return (FALSE); }