Writing stand alone interactive program

I’m trying to write a command line driven program which when I hit return a new event is read and some root plots are drawn. My problem is that I don’t know how to get the plots to pop up without running the Run method of the TApplication or the TRint classes.

Basically… I want this to work

TApplication theApp(“App”,&argc,argv,0,0);

while(nextcommand) {
command=readline("> ");
p1DHist = readnexthist();


The above will not draw the histograms until it breaks out of the loop
and the Run method is executed. Anyway, I’m confused as to how to
get “interactive plots” working…

Any help is greatly apprciated.

Any help is greatly apprciated.[/quote]May I call your attention to E-mail thread: