From 7180ffa637f0e06d678b180218f4de6d52d5cf32 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 22 Jun 2011 11:02:45 +0200 Subject: [PATCH] Restore echo after ^C in ICS password --- xboard.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/xboard.c b/xboard.c index dae38f2..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) @@ -7233,12 +7236,14 @@ void EchoOn() { system("stty echo"); + noEcho = False; } void EchoOff() { system("stty -echo"); + noEcho = True; } void -- 1.7.0.4