writeIORef size (x-1,y-1) ind createTextArea is important, otherwise the
program crashes by expanding.