GROOVY-3969: Groovy Console forgets size of input area

Patch supplied by Tai Siew Joon