Ignore X errors, hide cursor
Init bitmap->data
Flush after erase
Handle X kbd/mouse events
Fix pty allocation