function love.draw()
local outputHeight = font:getHeight(output)
love.graphics.print(output, 10, 10)
love.graphics.print(input, 10, 20 + outputHeight)
end
Do you have any code other than this? It sounds like you also want a text input from typing, which isn't too hard but what you've shown is just a snippet.
If I'm understanding what you want exactly, my advice would be to have a string variable that you append the input to when when you press enter.