qemu console.c
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Fabrice Bellard <bellard> 06/07/14 20:24:31
Modified files:
. : console.c
Log message:
fixed LF interpretation
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/console.c?cvsroot=qemu&r1=1.7&r2=1.8
PATCH 1/1 qemu console.c - improved ANSI escape sequences
Hi,
here is a patch which improves the handling of escape sequences for text consoles. This fix is needed for programs like top, vi, clear and reset running in QEMU's serial console, but also for readline line editing (eg. in bash).
While many users of Windows or Linux on i386 never use the serial console (and so don't need this patch), it is vital for embedded devices (QEMU AR7 emulation) or the new MIPS Malta emulation.
So please apply it to CVS HEAD.
See http://en.wikipedia.org/wiki/ANSI_escape_code for more information on the new and enhanced ANSI escape sequences.
Still missing: report cursor position (how can I add characters to the console input queue?).
Open question: bash sets LINES=24, but the console has 25 lines.
Kind regards
Stefan Weil
Appendix: console-patch.tar.bz2 with patch and test script (Linux, cygwin with bash)