X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.c;h=45acd30a633dd6a7dd62796788d9295879923c84;hb=78b46cdffd8cd0896c6d3a8815d6b651217be910;hp=772e310dc984e00d654673fb4d4b8c58546e9eb6;hpb=454350e27828500d3ebf55574d13cb138336522a;p=xboard.git diff --git a/dialogs.c b/dialogs.c index 772e310..45acd30 100644 --- a/dialogs.c +++ b/dialogs.c @@ -66,6 +66,7 @@ extern char *getenv(); int values[MAX_OPTIONS]; ChessProgramState *currentCps; +char manDir[MSG_SIZ] = MANDIR; //----------------------------Generic dialog -------------------------------------------- @@ -556,6 +557,7 @@ Pick (int n) appData.pieceToCharTable = NULL; appData.pieceNickNames = ""; appData.colorNickNames = ""; + appData.men = ""; PopDown(TransientDlg); Reset(True, True); return; @@ -2118,6 +2120,10 @@ void ConsoleWrite(char *message, int count) { if(shellUp[ChatDlg] && chatOptions[CHAT_ICS].type != Skip) { // in Xaw this is a no-op + if(*message == 7) { + message++; // remove bell + if(strcmp(message, "\n")) return; + } AppendColorized(&chatOptions[CHAT_ICS], message, count); SetInsertPos(&chatOptions[CHAT_ICS], 999999); } @@ -2542,6 +2548,8 @@ DisplayHelp (char *name) } else snprintf(buf, MSG_SIZ, "%s", xboardMan); // use xboard man f = fopen(buf, "r"); if(f) { + char *msg = "Right-clicking menu item or dialog text pops up help on it"; + ASSIGN(appData.suppress, msg); if(strstr(buf, ".gz")) { // man file is gzipped if(!manText[n]) { // unzipped text not buffered yet snprintf(tidy, MSG_SIZ, "gunzip -c %s", buf); @@ -2551,7 +2559,7 @@ DisplayHelp (char *name) } else textPtr = NULL; // use plaintext man file directly GetHelpText(f, name); fclose(f); - } + } else if(currentCps) DisplayNote("No manual is installed for this engine"); } #define PAUSE_BUTTON "P"