Message-ID: <3B42E30B.42EC558C@mdh.se> Date: Wed, 04 Jul 2001 11:34:03 +0200 From: Dan Levin X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: An inconvenience with pdcurses... Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: dln.idt.mdh.se X-Trace: 4 Jul 2001 11:26:26 +0100, dln.idt.mdh.se Lines: 55 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello everybody ! Look at this code snippet - and try to build it - linked with pdcurses (2.4 or 2.5) ! int main(void) { /* Declare your variables here ! */ int i; /* ...and the rest of your code goes here ! */ initscr(); clear(); refresh(); /* Your code to be inserted here... */ for (i=0; i<1000; i++) { printw("%d ", i); refresh(); napms(15); } printf("\n\nReady !\n\n"); system("PAUSE"); endwin(); return 0; } The problem is that - as soon as you touch the keyboard during the loop, the updating of the screen stops. You won't get any more numbers written on the screen - although I presonnaly think you should ! I've tried the snippet botk on Solaris & Linux - and on theses platforms it works as expected ! Although I'm aware of the fact that this problem probably stems from the pdcurses library code, I humbly wonder if anybody else has run into this problem and - if so - found a solution !? Thanks in advance ! -- Dan Levin Tel 016 - 15 51 37 Institutionen för datateknik Fax 016 - 15 34 60 Mälardalens Högskola email: dan DOT levin AT mdh DOT se Box 325 631 05 Eskilstuna ------------------------------------------------------------------------ "I used to be an idealist, but I got mugged by reality."