cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Clear Serial Monitor Screen

VYoun
Associate III

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

1 REPLY 1
andy2399
Senior

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