ncurses and threads
Can anyone help me that how can I use threads and ncurses in the following scenario.
I want to screens in one screen the user will input the data and in other screen the output will be updated so I don't want that when a user inputs the data the output screen pause and wait for user input. so can you guys provide a an example code for this. thanks alot |
ncurses is not thread safe. Sorry.
|
then is there any other way out?
|
Yes. Don't use ncurses with threads. Figure out another way to do the job.
|
Or, to put it another way:
Many people assume that they need to use threads, when they don't. Why do you want to use threads here? |
I need to use threads cause,
I have a variable which needs to be update and displayed every second, and simultaneously I need to get input from the user. So what will you suggest in this scenario. regards, Imran |
Use the SIGALRM signal.
|
All times are GMT -5. The time now is 08:13 AM. |