X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=b4efcd75e14b3ed799162e2e0a3ab0fb333c6537;hb=55517059338842241bcc8d82b1dec21e92b138da;hp=acc032d65d78006b9b6f645ba0983c083ff06075;hpb=7f968f51c36d6e15fee97107ad7c5b85838c3f68;p=xboard.git diff --git a/xboard.c b/xboard.c index acc032d..b4efcd7 100644 --- a/xboard.c +++ b/xboard.c @@ -2693,6 +2693,8 @@ XBoard square size (hint): %d\n\ return 0; } +static Boolean noEcho; + void ShutDownFrontEnd() { @@ -2702,6 +2704,7 @@ ShutDownFrontEnd() if (saveSettingsOnExit) SaveSettings(settingsFileName); unlink(gameCopyFilename); unlink(gamePasteFilename); + if(noEcho) EchoOn(); } RETSIGTYPE TermSizeSigHandler(int sig) @@ -7224,15 +7227,23 @@ PlayAlarmSound() } void +PlayTellSound() +{ + PlaySound(appData.soundTell); +} + +void EchoOn() { system("stty echo"); + noEcho = False; } void EchoOff() { system("stty -echo"); + noEcho = True; } void