Changed `term_set_message` into more flexible `term_write` and
`term_print`