LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] curses problem

[ILUG] curses problem

Smelly Pooh plop at redbrick.dcu.ie
Thu Mar 23 17:54:56 GMT 2000


In reply to Vinayak Risbud's flatulent wordings, 
> Hi friends
> 
> Can you tell me what is the evivalent function for _kbhit()
> in Linux.

It's a bad idea to use a kbhit of any sort in unix.  kbhit implies you're
using a loop to check for key strokes, which consumes a lot of CPU time.

> 
> Can I club both printf and printw(curses function) in single program?
> 
> please do reply if you know something about this
> 
> Thanks in advance

I often curse at problems *wa wa wa*  Anyway, bad idea to mix printf with
curses, curses for one thing maintains an internal counter of which row and
column output is to be sent to, when you use printf, you print and update the
screen without updating the pointers, also anything you printf won't be saved
in curses' screen so if you do a screen refresh all your printfs will be gone
but your printws will still be there




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell