HELP: Send string to LCD serially

Hello, I want my string to be printed to my LCD.
In my codes below, (in hyperterminal) whenever I type a character, it will be directly sent to LCD.
For instance, I pressed ‘A’, the LCD will print ‘A’.

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// Buffer to store incoming commands from serial port
String inData;

void setup() {
    Serial.begin(9600);
    Serial.println("Serial conection started, waiting for instructions...\n\n");
     lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");//initial dispaly
}

void loop() {
    while (Serial.available() > 0)
    {
        char recieved = Serial.read();
        inData += recieved; 

        // Process message when new line character is recieved
        if (recieved == '\n')
        {
            Serial.print("\nArduino Received: \n");
            Serial.print(inData);



            inData = ""; // Clear recieved buffer
        }
    }
    myPrint();
}

void myPrint(){
 lcd.begin(16, 2);
  // print the number of seconds since reset:
  lcd.print(inData); 
}

What I want is this:
Hyperterminal will have to finish me first typing my string (therefore waiting for me til I press return) before
arduino will print the string into my LCD.

I can see that my LCD is blinking so fast, and so I can tell that it refreshes all the time because of the loop function. Please Help.
glenn

I want my string to be printed to my LCD.

Did you mean your "String"?

I mean, the string(characters) that I have inputted in SerialMonitor/Hyperterminal will be printed to the LCD after I press a return key.

void loop()
{
  // when characters arrive over the serial port...
  if (Serial.available()) {
    // wait a bit for the entire message to arrive
    delay(100);
    // clear the screen
    lcd.clear();
    // read all the available characters
    while (Serial.available() > 0) {
      // display each character to the LCD
      lcd.write(Serial.read());
    }
   
  }
}

This code is from the SERIAL-LCD example from the arduino IDE. It works just the way I wanted (waiting for me to press an enter then print the string to LCD). But I want the string also to be printed in hyperterminal/serial monitor. and how can I avoid printing a "special character" at the end of the LCD display? I know this character is caused by an enter key.

ok I got it. sorry for not reviewing my codes before posting:

void loop()
{
  // when characters arrive over the serial port...
  if (Serial.available()) {
    // wait a bit for the entire message to arrive
    delay(100);
    // clear the screen
    lcd.clear();
    // read all the available characters
    while (Serial.available() > 0) {
      // display each character to the LCD
      
      char rec = Serial.read();
      lcd.write(rec);
      inData = inData + rec;
    }
   Serial.print(inData);
  }
}

But my last question remains. How am I suppose to remove or avoid the special characters in LCD caused by an enter?

How am I suppose to remove or avoid the special characters in LCD caused by an enter?

Well, it'll either have the value 0x0a, or the value 0x0d, so avoiding printing either of those (or not putting them in your String in the first place) would seem to me to be a good start.

HAHA! THANKS SIR! Avoid carriage return or any type of return. XD I just modified my code, finally I can now eat my dinner.

char rec = Serial.read();
      if((rec!=0x0a)&&(rec!=0x0d)){
      lcd.write(rec);
      inData = inData + rec;

thanks! glenn