mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0023452: Couldn't catch results produced by commands "data" and "tpstat"
Add new printer Improving of duplication of command's output Simplification of removing duplication of command's output Removing of brackets improved version Test correction
This commit is contained in:
@@ -31,7 +31,7 @@ package XSDRAW
|
||||
|
||||
uses TCollection, TColStd, TopTools,
|
||||
gp, Geom, Geom2d, TopoDS, MoniTool,
|
||||
Interface, Transfer, IFSelect, XSControl, Draw, SWDRAW
|
||||
Interface, Transfer, IFSelect, XSControl, Draw, SWDRAW, Message
|
||||
|
||||
is
|
||||
|
||||
|
@@ -39,6 +39,8 @@
|
||||
|
||||
#include <Message.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Message_PrinterOStream.hxx>
|
||||
#include <Draw_Printer.hxx>
|
||||
|
||||
static int deja = 0, dejald = 0;
|
||||
//unused variable
|
||||
@@ -109,6 +111,11 @@ void XSDRAW::LoadDraw (Draw_Interpretor& theCommands)
|
||||
// performed not in IFSelect_SessionPilot but in standard Tcl interpretor
|
||||
XSDRAW::RemoveCommand("x");
|
||||
XSDRAW::RemoveCommand("exit");
|
||||
const Handle(Message_Messenger) &sout = Message::DefaultMessenger();
|
||||
if (!sout.IsNull()){
|
||||
sout->RemovePrinters(STANDARD_TYPE(Message_PrinterOStream));
|
||||
sout->AddPrinter(new Draw_Printer(theCommands));
|
||||
}
|
||||
// if (!getenv("WBHOSTTOP")) XSDRAW::RemoveCommand("xsnew");
|
||||
Handle(TColStd_HSequenceOfAsciiString) list =
|
||||
IFSelect_Activator::Commands(0);
|
||||
|
Reference in New Issue
Block a user