Port the Linenoise