]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: VKILL line kill, c_iflag ICRNL/IGNCR/INLCR, TCSETSW/TCSETSF
authorTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 21:36:11 +0000 (18:36 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 21:36:11 +0000 (18:36 -0300)
commit2078461913fda41c84a56e516de263949f019968
tree4766e44f4b23d1152bbc40719b0b35ce28ac073c
parent117fb40683492ef10686a8dde84d02fe11b37552
feat: VKILL line kill, c_iflag ICRNL/IGNCR/INLCR, TCSETSW/TCSETSF

- Add VKILL (Ctrl-U) handling in canonical mode: erases entire
  line buffer with visual backspace feedback
- Add c_iflag bits: ICRNL (default on), IGNCR, INLCR
- Add tty_iflag state variable, default ICRNL enabled
- c_iflag input translation runs before signal/canonical processing
- Replace hardcoded CR→NL conversion with c_iflag-based translation
- TCGETS now returns c_iflag; TCSETS now applies c_iflag mask
- Add TCSETSW (0x5403) and TCSETSF (0x5404) ioctl commands
  (treated same as TCSETS — no output queue to drain/flush)

20/20 smoke tests pass.
include/tty.h
src/kernel/tty.c