move the terbox functions to their own file