ui/console-vc: various fixes and improvements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 2 repliesIn review
- v15 patches 2 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | ui/console-vc: introduce parsing of the 'ESC ( <ch>' sequenceui/ | +16 | 0 replies | |
| 2/5 | ui/console-vc: report to the application instead of screen renderingui/ | +3 | 0 replies | |
| 3/5 | ui/console-vc: report cursor position in the screen not in the scroll bufferui/ | +1 | 0 replies | |
| 4/5 | ui/console-vc: add support for cursor DECSC and DECRC commandsui/ | +34 | 0 replies | |
| 5/5 | ui/console-vc: implement DCH (delete) and ICH (insert) commandsui/ | +88 | 0 replies |
Reviews trailers per patch
None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Marc-André Lureau |
|---|---|
| Series | R-b |
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/5] ui/console-vc: various fixes and improvements
This patch series brings several fixes and improvements to the QEMU virtual console (VC), making it more usable and aligning it better with VT100 spec. The updates include support for inserting and deleting characters, better cursor handling and correct position reporting. Without these changes, the console is hardly usable.
1. Support for DCH (delete) and ICH (insert) commands
* Properly handles character deletion and insertion as per VT100 specs.
2. Add support for cursor save/restore (ESC 7 and ESC 8)
* Implements legacy DEC sequences for compatibility.
* Ensures cursor attributes are also saved and restored.
3. Fix cursor position reporting
* Reports cursor position relative to the screen instead of the scroll buffer.
* Fixes issues with tools that rely on accurate cursor placement.
4. Ensure DSR (Device Status Report) responses go to applications
* Stops terminal from rendering responses to the screen but instead send reports back to applications.
5. Handle ESC ( <ch> character set sequences
* Makes top output look clean by handling the character set commands.
These changes improve the virtual console's compatibility with terminal-based apps. Without them, the console is quite frustrating to use.
v1 .. v2:
* The VT spec and ECMA-48 standard are somewhat vague about exactly what attributes should be set for the ICH (insert character), but various terminal implementations reset the character to the default state. Instead of inserting a "space" with the current attribute, call vc_clear_xy() for the inserted character.
Roman Penyaev (5):
ui/console-vc: introduce parsing of the 'ESC ( <ch>' sequence ui/console-vc: report to the application instead of screen rendering ui/console-vc: report cursor position in the screen not in the scroll
buffer
ui/console-vc: add support for cursor DECSC and DECRC commands ui/console-vc: implement DCH (delete) and ICH (insert) commands
ui/console-vc.c | 154 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 142 insertions(+), 12 deletions(-)
Signature · 1 line
2.43.0