Programmer's Guide to NCurses by Dan Gookin - Bookswagon
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Operating systems > Open source and other operating systems > Linux > Programmer's Guide to NCurses
Programmer's Guide to NCurses

Programmer's Guide to NCurses


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Programming the console in UNIX? Here's just what you need. First, you'll get a no-nonsense tutorial guide to the nCurses version 5.5 library, taking you from basic to advanced functions step by step. Then you'll find an A-to-Z reference of more than 175 nCurses functions, cross-referenced and illustrated with examples. With this all-purpose nCurses reference, you?ll: Learn techniques that can be used to program Linux®, FreeBSD®, Mac OS® X, or any other UNIX-based OS. Program, control, and manipulate text on the terminal screen. Control interactive I/O, organize content into windows on the screen, and use color to highlight text and organize information. Use a mouse to further refine input. Create nCurses programs using your choice of editors. Find hundreds of quick, easy-to-understand programming examples. Author Dan Gookin is known for making technology make sense. Buy this book and you'll see why.

Table of Contents:
Acknowledgments. Introduction. Assumptions. Curses or NCurses? Conventions. Compatibility Issues. Contacting the Author. Chapter 1 The Setup. NCurses Is a UNIX Thing. Run (Don’t Walk) to a Terminal Screen Near You. Know Something About the Shell. Some Shelly Stuff. Know Your History, Because You’re Going to Repeat It. Make a Place for Your Stuff. Using an Editor to Create an NCurses Program. Picking an Editor. Creating Your First NCurses Program. Some Deviations. Know Thy Compiler. Linking NCurses or Curses? What Does the gcc Command Do? Re-editing Your Source Code. Where Is the Program? Fixing Stuff (Again). Don’t Panic When You Still Don’t See Anything! Do You Think a.out Is a Goofy Name? All Done! General Info. Handy Shell Commands to Know. Source Code Tidbits. Compiling Tips. Chapter 2 Basic I/O, the NCurses Way. The Skeleton. The initscr() Function. The initscr() Function’s Exceptions. The endwin() Function. The refresh() Function. Writing Text. Tossing Up Text One Stupid Character at a Time. Pausing for a Side-trip. Blurping Text. The move() Function. The Old Formatted Text Trick. Reading Text. The Silly Typewriter Program. Consuming a String Whole. Swallowing Only So Much of a String. The Obligatory scanw() Program. Chapter 3 Formatting Text. Text Abuse with Text Attributes. More than Boring Black and White (but Not Much). Testing Some Attributes. Multiple-Attribute Mania. Can It Do Color? Colors and Color Pairs. Eight or Sixteen Colors? Spruce Up Some Text! A Color Thing Your Terminal Probably Cannot Do. Coloring a Window. Screen Background Color. More than Solid. Changing Color on the Fly. Noise, Too! Chapter 4 Around the Window. Measuring the Standard Screen. The Size of the Window Is Y by X. And Now: the Shortcut. Moving the Cursor Around. Watch Out! I’ve Got You Cornered! Some Compacting. Center that Title! Some Fun with mvprintw(). Whither the Cursor? Chapter 5 More Text Manipulation. Inserting and Deleting Functions. Editing Shakespeare. Inserting Some Lines. Final Changes to Hamlet. Inserting One Character at a Time. A More Visual Example. Less of Hamlet. Goodbye, Chunk of Text! Out It Goes and in It Comes. Chapter 6 Clearing and Zapping. Commands to Erase Chunks of the Screen. The Obligatory Test Program. Clear the Screen! Clear or Erase? Clrto means Clear To. Less Blah on the End of a Line. Less Blah to the End of the Screen. You Mean that’s It for My NCurses Erasing Fun and Excitement?. Chapter 7 Keyboard Madness! Reading from the Keyboard. Is a Character Waiting? Testing Waiting Characters. How to Implement kbhit(). Flushing Input. Silence, Please! Reading Special Keys. Keypad On! What’s Where on the Keyboard. The Highlighted Menu Bar. Chapter 8 Windows, Windows Everywhere! Ye Olde Standard Screen. Commands that Require a Window Argument. The Pseudo Commands. The Other Prefix, mv. Making Windows. The Obligatory New Window Sample Program. Switching between Windows. Windows of a Smaller Size. Removing a Window. Dueling Windows. Stained Glass Windows. Stop Repeating Me! On Your Own. Chapter 9 Subwindows. The Thing with Subwindows. Making Subwindows. Your First Subwindow. Your Second Subwindow. Sub-subwindows. Removing a Subwindow. Subwindows Versus Windows. Chapter 10 More Window Tricks. Copying Window Contents. To overlay or to overwrite? The overwrite() difference. The magic of copywin(). Plain old window duplication. Scrolling Around. Can it scroll? Scroll Away. The old manual scroll. Scrolling by leaps and bounds. Negative scrolling. The Moving Experience. Chapter 11 Dig My Pad, Man. The Monster Window. Making a Pad. Viewing a Pad’s Contents. More Pad-Viewing Stuff. Subpads. Making a subpad. Working with a Subpad. Some Optimization. Removing a Pad. Pad Miscellany. Another Pad Function. Forbidden Pad Functions. Forbidden Pad Stuff. Chapter 12 The Joy of Soft Labels. What Is a Soft Label? Doing the Soft Label Thing. Stand by for Soft Labels. Gimme Some Soft Labels. Making the Index Line. Soft Labels Here and Gone. Hiding and Restoring the Labels. Changing a Label. Removing a Label. Hooking in the Function Keys. Chapter 13 Messing Mit der Mouse. Hello, Mouse. Can NCurses Deal with the Mouse? Can Your Terminal Deal with the Mouse? Reading the Mouse. The “Reading the Mouse” Overview. Where Did You Click that Mouse? On Your Own. What Clicked? To Eek or Not to Eek? Chapter 14 A Mixture of Stuff. Adios, Cursor. Line Drawing. Boxing Windows. Building Better Boxes. We Control the Horizontal and the Vertical. Between NCurses and Disk. Functions that Dump the Screen. Taking a Snapshot of the Screen. Examining the Dump File. Restoring the Screen. Functions that Dump a Window. Appendix A NCurses Library Reference. Appendix B The Alternative Character Set. Appendix C The chtype. Appendix D Keypad Character Codes. Index.

About the Author :
DAN GOOKIN began his career as a computer columnist and magazine editor. Then in 1991, he wrote DOS For Dummies and launched a juggernaut. Among his many titles in that popular series are PCs For Dummies, Word For Dummies, and C All-in-One Desk Reference For Dummies. Thanks to his unique style and dry wit, Dan's books are always informative and never boring. DAN GOOKIN began his career as a computer columnist and magazine editor. Then in 1991, he wrote DOS For Dummies and launched a juggernaut. Among his many titles in that popular series are PCs For Dummies, Word For Dummies, and C All-in-One Desk Reference For Dummies. Thanks to his unique style and dry wit, Dan's books are always informative and never boring.


Best Sellers


Product Details
  • ISBN-13: 9780470140130
  • Publisher: John Wiley & Sons Inc
  • Publisher Imprint: John Wiley & Sons Inc
  • Language: English
  • ISBN-10: 0470140135
  • Publisher Date: 14 May 2007
  • Binding: Digital (delivered electronically)
  • No of Pages: 576


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Programmer's Guide to NCurses
John Wiley & Sons Inc -
Programmer's Guide to NCurses
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Programmer's Guide to NCurses

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!