feat(pty): implement POSIX pseudo-terminal support#96
Merged
Conversation
Add complete PTY (pseudo-terminal) subsystem enabling terminal emulation for remote access (telnet) and terminal multiplexing. Implementation follows POSIX specifications with proper error handling and bidirectional data flow. Key components: - PTY core infrastructure with master/slave pair management - Syscalls: posix_openpt, grantpt, unlockpt, ptsname - devptsfs virtual filesystem for /dev/pts/* device nodes - sys_open integration to route /dev/pts/* paths to devptsfs - libbreenix userspace wrappers for PTY operations - Integration test with data verification - Telnet server skeleton for remote shell access Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add SLIRP port forwarding: localhost:2323 -> guest:2323 - Add telnetd and pty_test to shell's program registry - Enables running telnetd from the shell Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove MAX_ATTEMPTS limit in accept loop (was causing timeout) - Remove MAX_CYCLES limit in relay loop (was limiting session time) - Accept connections forever in daemon mode - Continue listening after connection closes Also add docs/planning/INIT_SYSTEM_PLAN.md documenting the next major milestone: proper init system with virtual consoles. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Key Components
kernel/src/tty/pty/kernel/src/syscall/pty.rskernel/src/fs/devptsfs/kernel/src/syscall/fs.rslibs/libbreenix/src/pty.rsuserspace/tests/pty_test.rsTest plan
🤖 Generated with Claude Code