fix bugs in console, ansi, vt_display