This patch-set implements resize event handling for the vt220 console.
Add a tty code to indicate a resize frame. The body contains two big
endian 16-bit integers rows and columns.
---
Changelog:
v3:
- split console_reset indentation fix into its own patch
v2:
- Use packed struct and named event type codes for resize frames
- Trigger initial resize event in console_reset() instead of
console_init(), skip when chardev reports no size
- Reset event_pending after resize event
Requires the following pre-req:
[PATCH v7 00/12] virtio-console: notify about the terminal size
(https://lore.kernel.org/qemu-devel/[email protected]/)
Testing:
- Tested on QEMU: commit 38879a667f with the following patches applied:
[PATCH v7 00/12] virtio-console: notify about the terminal size
- Tested on linux-next (commit c1f49dea2b8f) with the following patches
applied:
[PATCH 0/2] s390/sclp: Resize for sclp-vt220 console
Maximilian Immanuel Brandtner (2):
s390x/sclpconsole: fix indentation for console_reset
s390x/sclpconsole: implement resizing for vt220 consoles
hw/char/sclpconsole.c | 92 +++++++++++++++++++++++++++++++++++++------
1 file changed, 80 insertions(+), 12 deletions(-)
--
2.54.0