Add support for \n, \r, \b, and \f in TTY emulation.
Add support for horizontal and vertical tabulators.
Expand TTY characters to qchars, and add face support.
Fix incorrect parameter to sizeof().

This actually wouldn't make any difference, but it's better to be technically
correct anyway.