The terminal now works. It has some rendering bugs that still need fixing, but it works.