wrong approach, see https://github.com/cfcs/jackline/commit/6fbeafd580b7925e7607f25ccac16dd6eb68a4d3 instead