In message <[email protected]>, Regis writes: > > I just found a way can remove the in.available() check here. Instead > of checking in.available, I check whether the last char read from > stream is '\n'.
This seems to assume that the last character read from a tty is always a '\n' but that is only true for default terminal settings. For example, after "stty -icanon" characters are available to be read immediately so the buffer will not always end in a newline. Regards, Mark.
