0024644: Draw_Printer - provide the way to control messages gravity filter
[occt.git] / src / Draw / Draw_Interpretor.cxx
index ae4deb1..fd694c5 100644 (file)
@@ -576,6 +576,18 @@ Standard_Integer Draw_Interpretor::EvalFile(const Standard_CString fname)
   return Tcl_EvalFile(myInterp,pfname);
 }
 
+//=======================================================================
+//function : PrintHelp
+//purpose  :
+//=======================================================================
+
+Standard_Integer Draw_Interpretor::PrintHelp (const Standard_CString theCommandName)
+{
+  TCollection_AsciiString aCmd     = TCollection_AsciiString ("help ") + theCommandName;
+  Standard_PCharacter     aLinePtr = (Standard_PCharacter )aCmd.ToCString();
+  return Tcl_Eval (myInterp, aLinePtr);
+}
+
 //=======================================================================
 //function :Complete
 //purpose  :