Added multi line text input

This needs to be reviewed and properly tested. I am unsure if this is working completely correctly. I think I still need to modify the size of the window a little as at present the cursor sometimes draws over the edge of the border.

Potential fix to #629