Fix readline integration