Skip to content

fix: correct terminal editing and IPv6 bind compatibility - #38

Merged
Leonmmcoset merged 3 commits into
mainfrom
codex/fix-console-linux-compat
Nov 22, 2026
Merged

Leonmmcoset merged 3 commits into
mainfrom
codex/fix-console-linux-compat

Conversation

@Leonmmcoset

Copy link
Copy Markdown
Contributor

Bash/readline could overwrite an existing suffix when inserting text on the framebuffer console. Other terminal paths also lost cursor/wrap state, painted over text during tabs or bold rendering, and overwrote unread PTY data when queues filled. This repairs the shared input path and both framebuffer and VGA text terminals.

  • Implement framebuffer character/line editing, tabs, scroll regions, delayed wrapping, saved rendition, alternate screens and bounded incremental ANSI parsing. Preserve hidden VT state and suppress duplicate query replies during replay.
  • Correct VGA cursor restoration and malformed control sequences; use the full VGA terminal for probed legacy boots without a framebuffer. Confine bold framebuffer glyphs to their cells.
  • Centralize cooked echo, fix empty-line Backspace and Ctrl-U/W/V, preserve canonical line/EOF boundaries, apply input mappings, and add queue backpressure. Encode Alt/Ctrl/keypad keys consistently and keep physical key escape sequences intact near queue capacity.
  • Fix TCP/UDP/raw IPv6 bind compatibility with older Netty: ignore residual scope IDs for addresses that do not require a scope, while retaining link-local interface and SO_BINDTODEVICE checks.
  • Carry the existing commit enabling VMware SVGA II in the default kernel configuration.

Validation:

  • ASan/UBSan console, VGA and Linux PTY tests, including padded 24/32-bit framebuffers, allocation failure, layout reconstruction and 265 framebuffer/VGA comparison operations.
  • QEMU TCG with the managed Bash/readline: 16 scenarios on each of framebuffer and console=vga. Verify rendered glyphs, VGA aperture contents and the executed edited argument. Covers insert/delete/backspace, history, Home/End, Ctrl/Alt word moves, wrapped lines and alternate screens across VT switches.
  • Input routing, VT handoff, poll/select/epoll and DRM regression suites passed.
  • Full native kernel build and panic-console runtime tests passed.
  • CI commands: make test-ownership test-host-smoke test-tools test-module-layout passed (17 host suites); gettext-check passed (53 pages, two languages, 2332 messages).
  • Earlier IPv6 scope fix passed native protocol tests and a QEMU probe for scoped/unscoped binds, UDP/TCP exchange, mapped IPv4 and raw ICMPv6.

One broader fixture remains unusable: tools/test_linux_descriptors.py fails to link 35 existing missing test symbols. An untouched HEAD checkout fails with the identical symbol list. VGA retains its fixed 16-color PSF font; this change does not implement complete xterm or Unicode grapheme compatibility.

@Leonmmcoset
Leonmmcoset merged commit 0591a92 into main Nov 22, 2026
2 checks passed
@Leonmmcoset
Leonmmcoset deleted the codex/fix-console-linux-compat branch November 22, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants