Skip to main content
VYoun
Associate III
July 7, 2020
Question

STM32 Clear Serial Monitor Screen

  • July 7, 2020
  • 1 reply
  • 2863 views

Hello,

I am writing an application for STM32H7. I need to clear serial terminal the screen before showing the new lines on the terminal.

Can anyone please help?

Thank you in advance.

Vouria

This topic has been closed for replies.

1 reply

andy2399
Senior
July 7, 2020

If you know what terminal emulation you have configured then you can look up the appropriate escape sequence.

i.e. VT52/VT100 you can send Esc[2J i.e. printf( "\x1B[2J" );.

Andy