prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Prompt that reads/processes chars as they are fed to stdin? [Question]
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
Hi there,
I've started building something in the vein of jq/jiq, but for HTML, and you can see a demo of it in this asciicast: .
Right now, I'm doing the input processing and display parts with raw ANSI codes and mostly leveraging termios/tty/os. This has proven quite fiddly; and prompt_toolkit seems pretty mature/has a whole other bunch of nice things, but I would need this one critical feature of character-by-character reading from stdin.
Does prompt_toolkit support this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing prompt_toolkit's input handling and the termios/tty/os approach described in the issue. Determine whether character-by-character stdin processing is supported, then document the answer or define the missing capability and its expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100