This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ANSI escape sequence

Hi I am programming something and i need to use Hyperterminal to display the output, all is well but i am struggling for the right ANSI escape sequence to position the cursor to the beginning, i have tried various things including the following;

char pos [] = "\x1B[",'0',';','0','H',0;

many thanks

Parents
  • I'm not sure about ANSI terminal, but I know these work for vt-100.

    #define CLEAR_SCREEN_LENGTH 4
    //! \details String to clear the screen of a VT-100 termial
    static unsigned char Clear_Screen[] = {27,91,50,74};
    
    #define HOME_CURSOR_LENGTH 3
    //! \details String to home the cursor of a VT-100 termial
    static unsigned char Home_Cursor[] = {27,91,72};
    

Reply
  • I'm not sure about ANSI terminal, but I know these work for vt-100.

    #define CLEAR_SCREEN_LENGTH 4
    //! \details String to clear the screen of a VT-100 termial
    static unsigned char Clear_Screen[] = {27,91,50,74};
    
    #define HOME_CURSOR_LENGTH 3
    //! \details String to home the cursor of a VT-100 termial
    static unsigned char Home_Cursor[] = {27,91,72};
    

Children