writes a string to terminal. if it does not fit in one line, it is wrapped
number of characters written
See Implementation
writes a string to terminal. if it does not fit in one line, it is wrapped