use opentty & restoretty
wip refactor for rendering using vdom
finished lib/charm-render