refactor
also refactor the logging
framework for handling OSC escape sequences
support changing the window title