
wayward
New User
Sep 30, 2007, 1:34 PM
Post #1 of 1
(556 views)
|
Thread does not update global variable
|
Can't Post
|
|
Hello all, I am trying to write a client/server chat unix program. I have 2 threads 1 for user input and 1 for socket com. The problem is the thread that grabs user input has a while (1) {} not to exit ... The problem is this sub does not update global variables. So I need a routine that never exits but updates the current cursor position ... you see I don't want when a user being at the middle of his message ... and a new one arrives to have his cursor initialized by redrawing the terminal with the new buffer. Thanks a lot
|