]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: expand c_cc[] with POSIX control character indices
authorTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 21:32:46 +0000 (18:32 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 21:32:46 +0000 (18:32 -0300)
commit117fb40683492ef10686a8dde84d02fe11b37552
treeb5f6b156e59b02f375d1856886be177cd4bca6cd
parentff6a3431a50261a7eec3656af250d61580bc9a5f
feat: expand c_cc[] with POSIX control character indices

- NCCS expanded from 8 to 11
- Define VINTR(0), VQUIT(1), VERASE(2), VKILL(3), VEOF(4),
  VSUSP(7), VMIN(8), VTIME(9) with standard index values
- Initialize tty_cc[] with POSIX defaults:
  VINTR=^C, VQUIT=^\, VERASE=DEL, VKILL=^U, VEOF=^D, VSUSP=^Z
- Replace all hardcoded signal/control character comparisons in
  tty_input_char with tty_cc[] lookups
- VERASE now accepts both 0x08 (BS) and 0x7F (DEL)
- All c_cc[] entries are user-configurable via TCSETS

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