WIP: add terminal control sequence handling

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>