Fix line editing (readline now works)