]> 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)
commit420547d7f45eafa2793c8029d83f8a214315176f
tree045e7869accdf2c72406998f46d47996d24874f8
parent2cdd7af48ecf42bf16f871459a9295778c310a85
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