[Gambas-user] Clean new console by code
Gianluigi
bagonergi at ...626...
Wed Jun 29 18:24:31 CEST 2016
Hi Benoit,
unfortunately *Print "\e[2J";* does not work as *Clear button* console.
He simply deletes the only visible part.
How can I get the same behavior of Clear button console (also for the
terminal)?
Regards
Gianluigi
2016-06-25 15:48 GMT+02:00 Benoît Minisini <gambas at ...1...>:
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list