- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Curses and C standard functions
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 10:20 PM
04-08-2003 10:20 PM
Curses and C standard functions
We have a series of curses functions used in our application. We have noticed that, in between these curses functions, some of the standard C functions like 'fprint' are also used.
Can this affect the performance of the application? If so, what are the possible consequences?
Thanks in advance
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 10:55 PM
04-08-2003 10:55 PM
Re: Curses and C standard functions
Hello,
If the use fo fprint does not cause your screen to be messed up I would not worry.
I do not think the curses routines were
written for performance, but rather to hide from the programmer
the various screen-spesific command-sequences that must be used to postition cursor, write in reverse vidoe etc.
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 04:59 AM
04-09-2003 04:59 AM
Re: Curses and C standard functions
Also, some of these print statements may be required to get user input to the application.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 05:58 AM
04-09-2003 05:58 AM
Re: Curses and C standard functions
Note that output to other devices and files that are not under curses is perfectly okay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 09:40 AM
04-09-2003 09:40 AM
Re: Curses and C standard functions
"curses" minimizes the amount of characters/bytes sent to the terminal, it does not minimize the amount of CPU time.
But as it was designed and coded back in the days when a user was supposed to use only dozens or hundreds of KB (kilo!) of virtual address space, and to run on the slow CPUs of those times, it won't be any burden for today's systems.
"fprintf" can confuse "curses", but only if it is sent the same terminal (window). And in that case I would prefer the "curses" routines, anyway - since you ARE already using those!
I do not see any point in using "curses" to some degree, and do something else to some other degree, and then have the need to "touchwin()" every now and then to keep both in sync.
If you need to learn programming "curses", there is a very small/thin O'Reilly book about it, or you might find Marc Rochkind's programming book in your company's library, already.
FWIW,
Wodisch