vishalxl / nostr_console

Nostr console is an open-source twitter-like social network, direct chat app and group chat all bundled into one program. Built on the decentralized Nostr protocol.
GNU Affero General Public License v3.0
439 stars 33 forks source link

FR: Allow for polling intervals to refresh the screen automatically instead of doing so manually #22

Closed improvethings closed 1 year ago

improvethings commented 1 year ago

let's say I choose to poll every 30 seconds, it'll refresh my screen every 30 seconds instead of hitting "1" over and over. Instead of timed intervals, I might also choose for any event, or just for new events from people I follow.

vishalxl commented 1 year ago

Hi, right now when the application is waiting for input, nothing in backgroud can run, that's how I'm using the Dart language's stdin input. Since right now stdin is read one line at a time. Till a user presses 'enter', the thread blocks.

This can be changed so that input is taken one character at a time, then background updates can happen and can be shown when desired. The work to do this is pretty high, so its not on priority right now.