make writing to terminal window a lambda expression