node util for writing to regions on the terminal