Forum Discussion

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

Jtag Uart quirk

Is there a way to get the Eclipse debug console to kick out a CR,LF so I don't have to hit return twice for every prompt?

thanks

4 Replies

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

    Hello tns1,

    What kind of prompt are you referring to here? By default the debug console is attached to standard in, standard out, and standard error. So printf("\n\r"); will send a carriage return and line feed to the debug console.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I think Stephen meant to type printf("\r\n"); which would be more usual.

    I hope this stops anyone getting confused.

    But I think the OP was trying to make the debug console send a CRLF, not the code.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Right, just look in hyperterm->properties->settings->ascii setup. Eclipse should have at least three settings:

    control of local echo,

    adding LF to outgoing CR,

    adding CR to incomming LF.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello TNS1,

    Thanks for the clarification. I do not know of another way to make Eclipse do that, but I will add as an enhancement request to our Nios II product marketing team to add this feature to Nios II IDE.