How to clear the Serial Terminal in the IDE using Python code?

Discussion related to "under the hood" OpenMV topics.
marwol
Posts: 2
Joined: Fri May 31, 2019 11:10 am

How to clear the Serial Terminal in the IDE using Python code?

Postby marwol » Fri May 31, 2019 11:12 am

It would be handy to be able to programmatically clear the terminal.
User avatar
kwagyeman
Posts: 3805
Joined: Sun May 24, 2015 2:10 pm

Re: How to clear the Serial Terminal in the IDE using Python code?

Postby kwagyeman » Fri May 31, 2019 11:28 am

Send the \0.

The IDE supports the following escape codes:

https://github.com/openmv/qt-creator/bl ... l.cpp#L188
Nyamekye,
marwol
Posts: 2
Joined: Fri May 31, 2019 11:10 am

Re: How to clear the Serial Terminal in the IDE using Python code?

Postby marwol » Fri May 31, 2019 12:25 pm

It works. Thanks.

Return to “Technical Discussion”

Who is online

Users browsing this forum: MSN [Bot] and 7 guests