int values[MAX_OPTIONS];
ChessProgramState *currentCps;
+char manDir[MSG_SIZ] = MANDIR;
//----------------------------Generic dialog --------------------------------------------
appData.pieceToCharTable = NULL;
appData.pieceNickNames = "";
appData.colorNickNames = "";
+ appData.men = "";
PopDown(TransientDlg);
Reset(True, True);
return;
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);
}
{
char *line, buf[MSG_SIZ], title[MSG_SIZ], text[10000], *p = text, *q = text;
int len, cnt = 0;
+ while(*name == '\n') name++;
snprintf(buf, MSG_SIZ, ".B %s", name);
len = strlen(buf);
- for(len=3; buf[len] && buf[len] != '(' && buf[len] != ':' && buf[len] != '.' && buf[len] != '?'; len++);
+ for(len=3; buf[len] && buf[len] != '(' && buf[len] != ':' && buf[len] != '.' && buf[len] != '?' && buf[len] != '\n'; len++);
buf[len] = NULLCHAR;
while(buf[--len] == ' ') buf[len] = NULLCHAR;
snprintf(title, MSG_SIZ, "Help on '%s'", buf+3);
} 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);
} 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"