G
G
Georgy Pugachev2020-03-11 12:42:50
go
Georgy Pugachev, 2020-03-11 12:42:50

How to make the console update with the ability to enter data?

Hello, is it possible to update the console in Golang with the ability to enter data?

The task is this: in the console on the screen there is a stat table. data that is redrawn every 10 seconds (that is, the screen is cleared and the table is displayed on a new one), there were no questions about this, the question is how to allow the user to enter commands at the same time. Those. the user should be able to enter commands into the system at any time (for further tracking). The problem is that when the screen is redrawn, the user loses the ability to enter commands, or these commands are overwritten when the screen is cleared.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alfss, 2020-03-11
@gvpugachev

Stop drawing while editing.

S
Sergey Tikhonov, 2020-03-11
@tumbler

Looking for wrappers or equivalents for ncurses ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question