Hi,

I am writing a program that takes user input from a WinXP machine and sends it through a Serial Com Port to an LCD Screen.

The LCD screen has an in-built CGROM table for example the "tab" command \137 represents superscript 9 on LCD screen.

My program takes 1 character at a time from user input on stdin and adds it to a char string.

Does anyone know how I can send the \137 to the screen to get a superscript 9? at the moment it takes it at face value, converts the "\" to ö to give ö137?

my user input code is
Code:
         printf("Enter line %d(<=20 chars): ", line);
         c = getchar();
         char_count = 0;
         while((c != '\n') && (char_count < MAXBUFFERSIZE)) {
              buffer[char_count++] = c;
              c = getchar();
              }
         buffer[char_count] = 0x00;
Any help would be greatly appreciated.