Fix readline()

i used code from LibCon ;)