Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

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.

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.