With this changes you can enter multiple lines with commands and after viewing the output you can re-invoke the terminal with a button