Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Clear Console Screen output with QEMU and GDB
Clear Console Screen output with QEMU and GDB [message #1837876] Tue, 09 February 2021 11:57 Go to next message
yudop plyr is currently offline yudop plyrFriend
Messages: 1
Registered: February 2021
Junior Member
I am using the QEMU debugger to emulate a Cortex-M4 MCU (STM32). So far the project works as expected and I can output information via gdb and the semihosting interface.

However, I was wondering if I can clear the console output with a semihosting command or if there is a method to clear the console from my C project. My final intention is to print out the values of some variables I am interested in an specific interval as I do not want to pause the program.

At the moment I am able to print the information but the console writes a new line for each statement (as expected). But I would like to clear the screen and print the new information so I always get a nice display of the latest values in the console. I also tried to check if there a live watch feautre for QEMU/CDT but did not find it.

Any information pointing to visualizing values at real time or clearing the console to achieve this is appreciated.
Re: Clear Console Screen output with QEMU and GDB [message #1837903 is a reply to message #1837876] Wed, 10 February 2021 07:46 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
If the output terminal supports ANSI you can send '\033[2J' to clear the entire screen.
https://stackoverflow.com/a/37778152

The Eclipse console can be made ANSI aware with "ANSI Escape in Console" plugin.
The "TM Terminal" emulates a VT100 which supports ANSI.

Both are available from the Market Place.
Search for "ANSI".

Not sure what is being used for the terminal if you are using remote debugging.

UPDATE:
Since QEMU with Eclipse is a third party plugin,
you might get more help at the developer's site.
This forum is really for vanilla CDT.

https://eclipse-embed-cdt.github.io/debug/qemu/
https://eclipse-embed-cdt.github.io/support/


[Updated on: Wed, 10 February 2021 08:08]

Report message to a moderator

Previous Topic:Trying to use Eclipse CDT for Arduino development ?
Next Topic:Eclipse will only compile one file
Goto Forum:
  


Current Time: Tue Oct 15 00:14:36 GMT 2024

Powered by FUDForum. Page generated in 0.03642 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top