implementing a getc() function; always needs a <return> in Serial Monitor?

I'm trying to read a single character on serial port (y/n), but there is no response until I hit the key or the Send button in the Serial Monitor. Is this a restriction of the monitor only? (If the port were connected to hyperterm for example, would it behave as expected?)

code snippet

void serialEvent() {
  while (Serial.available()) {
    char inChar = (char)Serial.read(); 
    if (inChar == 'n') goflag = 0;
    else goflag = 1;
  }
}

Try changing the settings on the serial monitor to "no line ending".

Mark

ninetreesdesign:
I'm trying to read a single character on serial port (y/n), but there is no response until I hit the key or the Send button in the Serial Monitor.

Yes, that's a feature of the Serial Monitor.

I'm trying to read a single character on serial port (y/n), but there is no response until I hit the key or the Send button in the Serial Monitor. Is this a restriction of the monitor only? (If the port were connected to hyperterm for example, would it behave as expected?)

I think the send button or enter key has to be used with the serial monitor for the serial monitor to transmitt the data.

Discovered the answer:
Yes, using the Arduino's serial monitor, the Send btn or Return key are required.
However, a terminal program does work as expected.

How:
Load sketch to Arduino
Quit (to free up serial port)
Lauch terminal app (CoolTerm on Mac)
Set Serial port and baud rate.
Type... it works.

ninetreesdesign:
Quit (to free up serial port)

Having the Arduino IDE open doesn't take up the serial port, only having the serial monitor does.