Skip to content

How do I make a simple output&input application? #1392

@raphant

Description

@raphant

Hi,

What I have

I have a CLI app that currently displays a bunch of information on the terminal.

Example

Screenshot_20210310_120913

What I desire

What I desire is to be able to see all of the above output but also have a permanent input section where I can enter commands and change certain settings like so:

Example

clihelp

What I have tried

I've looked at examples and from what I could gather, this would involve a horizontal split and perhaps two buffers: one for input, one for output. I would also want it to be fullscreen so the Application(full_screen=true) would be used.
It looks like I would also need to route my logging system to the output buffer which I know how to do.

I'm just having difficulty piecing everything together in code and would like some general/specific pointers or even (preferably ) pseudo-code!

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions