Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
882 Views

How to clear the Nios II console?

Hi, 

I'm implementing a Nios II on a DE0-nano board. My C code is executed by Eclipse and a console is accessible to print things (with the printf instruction). I'd like to clear this console but I don't know how to do it. 

Does someone know? 

Thanks.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor I
70 Views

Try a right click to the terminal and select "Clear"

Altera_Forum
Honored Contributor I
70 Views

 

--- Quote Start ---  

Hi, 

I'm implementing a Nios II on a DE0-nano board. My C code is executed by Eclipse and a console is accessible to print things (with the printf instruction). I'd like to clear this console but I don't know how to do it. 

Does someone know? 

Thanks. 

--- Quote End ---  

 

 

if you use the console which is integrated into the IDE then click on the "x" icon
Altera_Forum
Honored Contributor I
70 Views

Clicking on the "x" is ok but I want it to be cleaned by the C code. More precisely I want to write a word then to clear the console to write something else at the same place.

Altera_Forum
Honored Contributor I
70 Views

I haven't checked lately to confirm this, but last time I looked (years ago) the console in Eclipse wasn't a full terminal emulator. In other words it didn't support operations like clearing the screen. If you want to do that you need a terminal emulator program like PuTTY, TeraTerm etc. These typically implement the ANSI standard terminal command set like the windows command shell does.

Altera_Forum
Honored Contributor I
70 Views

I don't think of a simple way to do that with a Nios II cpu so no matter, I'll do things otherwise. 

Thanks.
Reply