예제 #1
0
void
ShutDownFrontEnd ()
{
    if (appData.icsActive && oldICSInteractionTitle != NULL) {
        DisplayIcsInteractionTitle(oldICSInteractionTitle);
    }
    if (saveSettingsOnExit) SaveSettings(settingsFileName);
    unlink(gameCopyFilename);
    unlink(gamePasteFilename);
    if(noEcho) EchoOn();
}
예제 #2
0
파일: getpass.c 프로젝트: morrisxd/PMC
char *
getpass (char *prompt)
{
  static char Buf[80];
  STRINGINBUF StringInBuf;
  
  printf ("%s", prompt);
  fflush (stdout);

  EchoOff ();

  StringInBuf.cb = sizeof (Buf) - 1;
  StringInBuf.cchIn = 0;
  KbdStringIn ((PSZ) Buf, &StringInBuf, IO_WAIT, 0);
  Buf[StringInBuf.cchIn] = '\0';

  EchoOn ();

  return Buf;
}