Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can read from stdin? #33

Open
RatoX opened this issue Aug 31, 2018 · 3 comments
Open

How I can read from stdin? #33

RatoX opened this issue Aug 31, 2018 · 3 comments
Labels

Comments

@RatoX
Copy link

RatoX commented Aug 31, 2018

Hey everyone,

I'm trying to use this lib, btw is AWESOME, but I have no idea how I can read from the keyboard when I'm showing the information to the user.

e.g: If the user types the key r change the colors to red.

@metal3d
Copy link
Owner

metal3d commented Sep 12, 2018

Wow, nice idea !

The problem is that BSC is using a main loop to redraw, so you need to make a parallel waitkey function and I didn't tried to do. I will take a look, it's very interesting

@metal3d
Copy link
Owner

metal3d commented May 20, 2023

In that case, whiptail and dialog are probably the best solution @vaidd4

@RatoX I think I've got an idea to implement "on_key" events.

But, keep in mind that BSC is not made to create interactive forms, we can implement some easy to use functionalities, but there are many others libraries to make complete TUI 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@metal3d @RatoX and others