Re: [ROOT] pause in a macro

From: Justin Findlay (findlay@cosmic.utah.edu)
Date: Tue Apr 22 2003 - 22:03:04 MEST


Hi Ursula,

You can try something like

cin.get();

which waits for the <enter> key.


Justin


On Tue, 22 Apr 2003, Ursula Berthon wrote:

> Hi,
> I would like to be able to stop the execution of a macro until the user 
> hits a key (e.g. return) in order to go ahead with the excution. The 
> application is typically something like a display of a selected event:
> one loops over the events, selects an interesting one and executes 
> another macro to see it in a display. The program execution should then 
> stop to give the time to have a look, and resume after a key has been hit.
> 
>  I tried to use G__pause(), but 
> then the user is not able to interact with the display any more.
> Thanks for your help!  
>                          Ursula
> 
> *************************************************************
>                                                 Ursula Berthon
>                                       E-mail  berthon@in2p3.fr
>                                     Tel. 33 - 1 - 69 33 31 21
>                                     Fax  33 - 1 - 69 33 30 02
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET