workaround not having a real readline-ish in debug shell