It would probably be more efficient for this to do `get_once` instead of waiting for a full 1024 bytes when it might only need a newline.