reading incomming serial information while loop is running

I have an example of receiving incoming serial data here:

In that, incoming bytes are stored until a newline, then the code can act on it (eg. change the display).