Trying to implement a library to emulate VT100.