switch to JLine2 with a copy of jline.ANSIBuffer