That's an idea as well - put a whole line into the buffer, adjust the buffer position accordingly, and send an Enter keypress.