[SOLVED] Reading backspace from debug terminal

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

  • [SOLVED] Reading backspace from debug terminal


    I am using SEGGER_RTT_GetKey to poll the characters from the debug terminal but special keys like backspace (127) does not register.

    Is there a way to achieve this?

    Many thanks
  • I am assuming the special key characters (including backspace) are already consumed by Segger's (?) host driver for the debug pod.
    In this case, there would hardly be any chance to get such characters to the debuggee via this route.
    Perhaps the Segger staff on this forum can confirm this.
  • Hello,

    Thank you for your inquiry.
    With backspace you mean the Delete key in this case right?

    In that case ES does not use ASCII encoding for the input terminal as there is no symbol representation for that key.
    Instead it uses ANSI Escape sequences.
    For more information see here in section "Terminal input sequences" under vt codes:

    There you can see that DEL resolves to <esc>[3~ which you can verify by simply looping the GetKey function.

    Best regards,
    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.