cleanup
fix readline support: window resizing