From: Stefan Weil <Stefan.Weil@weilnetz.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel][PATCH] qemu console.c - improved ANSI escape sequences
Date: Thu, 11 Jan 2007 20:29:59 +0100 [thread overview]
Message-ID: <45A69037.9070000@weilnetz.de> (raw)
In-Reply-To: <E1G1UD9-0000TP-Re@savannah.gnu.org>
[-- Attachment #1: Type: text/plain, Size: 856 bytes --]
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)
[-- Attachment #2: console-patch.tar.bz2 --]
[-- Type: application/octet-stream, Size: 2899 bytes --]
prev parent reply other threads:[~2007-01-11 19:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-14 20:24 [Qemu-devel] qemu console.c Fabrice Bellard
2007-01-11 19:29 ` Stefan Weil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45A69037.9070000@weilnetz.de \
--to=stefan.weil@weilnetz.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).