Write to text area only when flush
Alway clear linesBuf after writeLines