Le 25/06/2016 14:52, Gianluigi a écrit :
> Hi Vuott,
> thank you for the answer.
> It deletes only on the second click and the window does not appear that
> remains behind the IDE.
> Changing your code as follows, it deletes immediately, but the window
> remains behind the IDE.
>

You should never use Desktop.SendKeys(). Besides being a dirty hack, it 
will be impossible to do that with coming Wayland.

To clear a console, you must print the according VT100 sequences. Of 
course, it assumes that your terminal is VT100 compatible, but as soon 
as you don't use your code on true old terminals, it should be ok.

The sequence is "\e[2J".

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to