added a black and white theme to replace the mono option
[xboard.git] / xengineoutput.c
index 5221e6a..78269b8 100644 (file)
@@ -165,9 +165,9 @@ InsertIntoMemo (int which, char * text, int where)
 char memoTranslations[] =
 ":Ctrl<Key>c: CopyMemoProc() \n \
 <Btn3Motion>: HandlePV() \n \
-Shift<Btn3Down>: select-start() SelectPV(1) \n \
-Any<Btn3Down>: select-start() SelectPV(0) \n \
-<Btn3Up>: extend-end() StopPV() \n";
+Shift<Btn3Down>: select-start() extend-end() SelectPV(1) \n \
+Any<Btn3Down>: select-start() extend-end() SelectPV(0) \n \
+<Btn3Up>: StopPV() \n";
 
 void
 SelectPV (Widget w, XEvent * event, String * params, Cardinal * nParams)
@@ -184,7 +184,7 @@ SelectPV (Widget w, XEvent * event, String * params, Cardinal * nParams)
        XtSetArg(arg, XtNstring, &val);
        XtGetValues(w, &arg, 1);
        shiftKey = strcmp(params[0], "0");
-       if(LoadMultiPV(x, y, val, index, &start, &end)) {
+       if(LoadMultiPV(x, y, val, index, &start, &end, currentPV)) {
            XawTextSetSelection( w, start, end );
            highTextStart[currentPV] = start; highTextEnd[currentPV] = end;
        }
@@ -196,6 +196,7 @@ StopPV (Widget w, XEvent * event, String * params, Cardinal * nParams)
         XawTextUnsetSelection( w );
         highTextStart[currentPV] = highTextEnd[currentPV] = 0;
         UnLoadPV();
+        XtCallActionProc(w, "beginning-of-file", event, NULL, 0);
 }
 
 //------------------------- Ctrl-C copying of memo texts ---------------------------