]> 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)
commitdd335b3b7e0c170688cafe0ded6dc66dd4a525cf
tree24752580ab1815f3f701c51d08d4063cc1e72325
parentbd5954a59133e0c75a81b78384f4844159c92d4b
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