| www.delorie.com/archives/browse.cgi | search |
| From: | "Gwen" <mb11363 AT chello DOT be> |
| Subject: | question about getkey() , time() and how to pick a char from the screen |
| Newsgroups: | comp.os.msdos.djgpp |
| Message-ID: | <01c11959$9c6f2d00$108784d5@feta> |
| X-Newsreader: | Microsoft Internet News 4.70.1162 |
| Lines: | 22 |
| Date: | Tue, 31 Jul 2001 00:34:16 GMT |
| NNTP-Posting-Host: | 213.132.135.16 |
| X-Complaints-To: | abuse AT chello DOT be |
| X-Trace: | news.chello.be 996539656 213.132.135.16 (Tue, 31 Jul 2001 02:34:16 MET DST) |
| NNTP-Posting-Date: | Tue, 31 Jul 2001 02:34:16 MET DST |
| Organization: | Chello Usenet Service |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Here is some little questions :
Is there an equivalent of getkey() who doesn't wait (taking keys pressed
'on the fly' like kbhit() ) ?
How to use correctly time() ? I tried to make a countdown of 3 sec :
float quantum=3;
time_t t=time(NULL);
while (time(NULL) - t < quantum) {
// display the decount to the screen by example
}
it works, in fact it works till quantum=1, below (like quantum=0.1) it acts
as quantum=1, why ?
maybe the second is the unit of the function time() ?
and my last question : How to retrieve the char displayed at a certain
position of the screen ? Is there a possibility to do that with PDcurses ?
thx for reading !
Gwen
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |