Skip to content

docs(readme): Drive a real terminal program - #131

Merged
tony merged 1 commit into
masterfrom
concept/interactive-readme
Dec 5, 2026
Merged

tony merged 1 commit into
masterfrom
concept/interactive-readme

Conversation

@tony

@tony tony commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Add a runnable POSIX open_pty() section under ## Quickstart in README.md that launches a Python child, sends input, waits for a committed Snapshot, and asserts the child's Taken: key response line. Document the quickstart example under ### Documentation in CHANGES.

Refs #116

Verification

  • pytest README.md tests/test_libvt.py (default and python -O): passes.
  • Omitting session.send_key("enter") times out with echoed key visible and no Taken: key line.
  • Ruff check/format, ty (3.12–3.15 + win32), and Sphinx dirhtml -W --keep-going: pass.

@tony
tony force-pushed the concept/interactive-readme branch from fcbd826 to 9765f08 Compare December 1, 2026 03:28
tony added a commit that referenced this pull request Dec 3, 2026
why: Record the branch's user-visible change in the unreleased notes.

what:
- Add the #131 entry to the Documentation section of CHANGES
@tony
tony force-pushed the concept/interactive-readme branch from 06fc93a to a4ee944 Compare December 3, 2026 23:58
@tony
tony force-pushed the concept/interactive-readme branch from a4ee944 to fcb9e66 Compare December 5, 2026 14:47
@tony
tony force-pushed the concept/interactive-readme branch from fcb9e66 to f8e079b Compare December 5, 2026 15:06
@tony
tony force-pushed the concept/interactive-readme branch from f8e079b to 07e6006 Compare December 5, 2026 15:27
why: New readers only saw in-memory Terminal.feed() examples in the
README quickstart, without a runnable example showing open_pty() driving
a real child process and asserting its committed response.

what:
- Add a cross-platform guarded POSIX open_pty() quickstart section under
  Quickstart in README.md capturing and checking a committed Snapshot.
- Document the example at the top of Documentation in CHANGES with API
  links.

Refs #116
@tony
tony force-pushed the concept/interactive-readme branch from 07e6006 to c88a852 Compare December 5, 2026 17:42
@tony
tony marked this pull request as ready for review December 5, 2026 17:42
@tony tony changed the title Concept: Drive a real terminal program from the README docs(readme): Drive a real terminal program Dec 5, 2026
@tony
tony merged commit 9647ae1 into master Dec 5, 2026
9 checks passed
@tony
tony deleted the concept/interactive-readme branch December 5, 2026 17:45
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks

This branch was successfully deployed

1 active deployment
docs — c88a852d Deployed Dec 5, 2026 by tony via build (3.14) #518
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant