]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: PTY line discipline with OPOST/ONLCR processing
authorTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 05:53:18 +0000 (02:53 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 05:53:18 +0000 (02:53 -0300)
commitb65149563b630bbc5b8cbf5f6543335f6836a238
tree6198ae215d1b1922e3fc1b6d9ad495626eb2d403
parent6bc5d0ec37ba99552f54f9f70126763a0c2d4937
feat: PTY line discipline with OPOST/ONLCR processing

- Add per-PTY oflag field (default: OPOST | ONLCR)
- PTY slave write now applies ONLCR: \n → \r\n conversion
- PTY slave ioctl now supports TCGETS/TCSETS for c_oflag
- isatty() now returns 1 for PTY slaves (TCGETS succeeds)
- Matches Linux n_tty line discipline behavior on PTY output

Build: clean, cppcheck: clean, smoke: 19/19 pass
src/kernel/pty.c