Skip to content

Prompt that reads/processes chars as they are fed to stdin? [Question] #1109

Open
@Datamance

Description

@Datamance

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: 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-better-docsQuestion about something for which we probably need better documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions