Own readline impl - wip