qemu/ui
Roman Penyaev a97ef36244 ui/console-vc: implement DCH (delete) and ICH (insert) commands
This patch implements DCH (delete character) and ICH (insert
character) commands.

DCH - Delete Character:
   "As characters are deleted, the remaining characters between the
    cursor and right margin move to the left. Character attributes move
    with the characters. The terminal adds blank spaces with no visual
    character attributes at the right margin. DCH has no effect outside
    the scrolling margins" [1].

ICH - Insert Character:
   "The ICH sequence inserts Pn blank characters with the normal
    character attribute. The cursor remains at the beginning of the
    blank characters. Text between the cursor and right margin moves to
    the right. Characters scrolled past the right margin are lost. ICH
    has no effect outside the scrolling margins" [2].

Without these commands console is barely usable.

[1] https://vt100.net/docs/vt510-rm/DCH.html
[1] https://vt100.net/docs/vt510-rm/ICH.html

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-6-r.peniaev@gmail.com>
2025-03-05 09:34:14 +04:00
..
icons
shader
clipboard.c
cocoa.m ui & main loop: Redesign of system-specific main thread event handling 2024-12-31 21:21:34 +01:00
console-gl.c
console-priv.h
console-vc-stubs.c
console-vc.c ui/console-vc: implement DCH (delete) and ICH (insert) commands 2025-03-05 09:34:14 +04:00
console.c overall: Remove unnecessary g_strdup_printf() calls 2025-02-14 08:49:06 +03:00
curses.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
curses_keys.h
cursor.c ui/cursor: remove cursor_get_mono_image 2024-10-03 17:26:06 +03:00
cursor_hidden.xpm
cursor_left_ptr.xpm
dbus-chardev.c qom: Use object_get_container() 2025-01-09 18:16:24 +01:00
dbus-clipboard.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
dbus-console.c ui/dbus: on win32, allow ANONYMOUS with p2p 2025-02-03 21:15:57 +04:00
dbus-display1.xml dbus: add -audio dbus nsamples option 2025-02-03 21:16:07 +04:00
dbus-error.c
dbus-listener.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
dbus-module.c
dbus.c ui/dbus: on win32, allow ANONYMOUS with p2p 2025-02-03 21:15:57 +04:00
dbus.h
dmabuf.c
egl-context.c
egl-headless.c
egl-helpers.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
gtk-clipboard.c
gtk-egl.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
gtk-gl-area.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
gtk.c overall: Remove unnecessary g_strdup_printf() calls 2025-02-14 08:49:06 +03:00
input-barrier.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
input-barrier.h
input-keymap.c
input-legacy.c ui/input-legacy.c: remove unused legacy qemu_add_kbd_event_handler() function 2024-11-08 11:06:42 +01:00
input-linux.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
input.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
kbd-state.c
keymaps.c
keymaps.h
meson.build ui/sdl2: reenable the SDL2 Windows keyboard hook procedure 2025-02-13 13:50:45 +01:00
qemu-pixman.c ui: refactor using a common qemu_pixman_shareable 2024-10-14 17:34:09 +04:00
qemu-x509.h
qemu.desktop
sdl2-2d.c
sdl2-gl.c
sdl2-input.c
sdl2.c ui/sdl2: reenable the SDL2 Windows keyboard hook procedure 2025-02-13 13:50:45 +01:00
shader.c
spice-app.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
spice-core.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
spice-display.c
spice-input.c
spice-module.c
trace-events ui/dbus: add trace for can_share_map 2024-10-14 17:34:09 +04:00
trace.h
udmabuf.c
ui-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
ui-qmp-cmds.c
util.c
vdagent.c
vgafont.h
vnc-auth-sasl.c ui: validate NUL byte padding in SASL client data more strictly 2024-10-22 13:02:31 +01:00
vnc-auth-sasl.h
vnc-auth-vencrypt.c
vnc-auth-vencrypt.h
vnc-clipboard.c
vnc-enc-hextile-template.h
vnc-enc-hextile.c
vnc-enc-tight.c
vnc-enc-tight.h
vnc-enc-zlib.c
vnc-enc-zrle.c
vnc-enc-zrle.c.inc
vnc-enc-zrle.h
vnc-enc-zywrle-template.c
vnc-enc-zywrle.h
vnc-jobs.c
vnc-jobs.h
vnc-palette.c
vnc-palette.h
vnc-stubs.c
vnc-ws.c
vnc-ws.h
vnc.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
vnc.h ui/vnc: fix skipping SASL SSF on UNIX sockets 2024-10-22 11:44:23 +01:00
vnc_keysym.h
win32-kbd-hook.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
x_keymap.c
x_keymap.h