[SOLVED] RTT-Viewer escape sequnces not working

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] RTT-Viewer escape sequnces not working

    Hi All,

    i can't get the escape sequences in RTT-Viewer to work.
    I copied the following example from the manual into the source coe:

    SEGGER_RTT_WriteString(0,
    RTT_CTRL_RESET"Red: " \
    RTT_CTRL_TEXT_BRIGHT_RED"This text is red. " \
    RTT_CTRL_TEXT_BLACK"" \
    RTT_CTRL_BG_BRIGHT_RED"This background is red. " \
    RTT_CTRL_RESET"Normal text again."
    );

    The text is shown in RTT-Viewer, but not in red but in standard white on black.
    It seems the escape sequences are just ignored.

    Am I anything doing wrong?

    Regards,
    Martin
  • AArgh, found it!

    I normally use the TAB 'All Terminals' in RTT-Viewer.
    Here the color does not change, but in the TAB 'Terminal 0' the color does change.

    Is this intentionally disabled for the TAB 'All Terminals'?

    Best regards,
    Martin
  • Hello Martin,

    Sorry for the delay in response.

    Is this intentionally disabled for the TAB 'All Terminals'?


    Yes it is intentionally disabled so the user does not get confused if he uses the same colors over several channels.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hello Martin,

    How could a user be confused by showing the colors, if they are specified?

    We like to keep our software simple, what can happen is that a user uses different colorcoding over different channels (we had such use cases from customers). So when it gets mixed in one terminal
    the user cannot determine from colorcoding alone what the message means or where it comes from.

    I will suggest to our RTT dev team to have a "enable" button here for cases like yours, but no promises.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.