metal3d / bashsimplecurses

A simple curses library made in bash to draw terminal interfaces
BSD 3-Clause "New" or "Revised" License
902 stars 117 forks source link

How can I get user input in a window? #61

Closed totordev closed 1 year ago

totordev commented 1 year ago

Hello, I'm trying to create a TUI for my app, yeast. But for this, I need to get user input in the window. Can someone provide me with some help?

Thanks in advance, shebangcode

metal3d commented 1 year ago

Hi,

BSC is not intended to create interactive interface. You can override update() function in your script (see examples) and try to use the read function (with -n1 option for example, that will directly send the pressed key)

Note that we are trying to implement "events". See #33 issue