aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api-macros
diff options
context:
space:
mode:
authorRoman Penyaev <r.peniaev@gmail.com>2025-02-26 08:59:08 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2025-03-05 09:34:14 +0400
commit0a9f48e9ead2b067e8d7058e7bc7a1d68721882d (patch)
treecbb4edd08816502930082a6741ca2de7e8b00f02 /rust/qemu-api-macros
parente4d6c94e674a3162857dbd78c27b1d7a1b2c250f (diff)
downloadqemu-0a9f48e9ead2b067e8d7058e7bc7a1d68721882d.zip
qemu-0a9f48e9ead2b067e8d7058e7bc7a1d68721882d.tar.gz
qemu-0a9f48e9ead2b067e8d7058e7bc7a1d68721882d.tar.bz2
ui/console-vc: report to the application instead of screen rendering
Terminal Device Status Report (DSR) [1] should be sent to an application, not rendered to the screen. This patch fixes rendering of terminal report, which appear only on the graphical screen of the terminal (console "vc") and can be reproduced by the following command: echo -en '\e[6n'; IFS='[;' read -sdR _ row col; echo $row:$col Command requests cursor position and waits for terminal response, but instead, the response is rendered to the graphical screen and never sent to an application. Why bother? Busybox shell (ash) in Alpine distribution requests cursor position on each shell prompt (once <ENTER> is pressed), which makes a prompt on a graphical screen corrupted with repeating Cursor Position Report (CPR) [2]: [root@alpine ~]# \033[57;1R] Which is very annoying and incorrect. [1] https://vt100.net/docs/vt100-ug/chapter3.html#DSR [2] https://vt100.net/docs/vt100-ug/chapter3.html#CPR Signed-off-by: Roman Penyaev <r.peniaev@gmail.com> Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com> Cc: qemu-devel@nongnu.org Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20250226075913.353676-3-r.peniaev@gmail.com>
Diffstat (limited to 'rust/qemu-api-macros')
0 files changed, 0 insertions, 0 deletions