add readline support to iosh