integrating readline with x11 [finally] \o/