Front cover image for Programmer's guide to NCurses

Programmer's guide to NCurses

Dan Gookin
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
eBook, English, 2007
Wiley Pub., Indianapolis, IN, 2007
1 online resource (578 p.)
9781280822759, 9786610822751, 9780470140130, 1280822759, 6610822751, 0470140135
1162574350
Programmer's Guide to NCurses; About the Author; Credits; 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; Make a Place for Your Stuff; Using an Editor to Create an NCurses Program; Know Thy Compiler; All Done!; Chapter 2 Basic I/O, the NCurses Way; The Skeleton; Writing Text; Reading Text; Chapter 3 Formatting Text; Text Abuse with Text Attributes; Can It Do Color?; Coloring a Window Noise, Too!Chapter 4 Around the Window; Measuring the Standard Screen; Moving the Cursor Around; Whither the Cursor?; Chapter 5 More Text Manipulation; Inserting and Deleting Functions; Editing Shakespeare; Less of Hamlet; Chapter 6 Clearing and Zapping; Commands to Erase Chunks of the Screen; Clrto means Clear To; You Mean that's It for My NCurses Erasing Fun and Excitement?; Chapter 7 Keyboard Madness!; Reading from the Keyboard; Reading Special Keys; Chapter 8 Windows, Windows Everywhere!; Ye Olde Standard Screen; Making Windows; Removing a Window; Dueling Windows; On Your Own Chapter 9 SubwindowsThe Thing with Subwindows; Making Subwindows; Sub-subwindows; Removing a Subwindow; Subwindows Versus Windows; Chapter 10 More Window Tricks; Copying Window Contents; Scrolling Around; The Moving Experience; Chapter 11 Dig My Pad, Man; The Monster Window; Subpads; Removing a Pad; Pad Miscellany; Chapter 12 The Joy of Soft Labels; What Is a Soft Label?; Doing the Soft Label Thing; Soft Labels Here and Gone; Hooking in the Function Keys; Chapter 13 Messing Mit der Mouse; Hello, Mouse; Reading the Mouse; To Eek or Not to Eek?; Chapter 14 A Mixture of Stuff; Adios, Cursor Line DrawingBetween NCurses and Disk; Appendix A NCurses Library Reference; addch(); addchstr(); addstr(); assume_ default_ colors(); attr_ get(); attroff(); attron(); attrset(); baudrate(); beep(); bkgd(); bkgdset(); border(); box(); can_ change_ color(); cbreak(); chgat(); clear(); clearok(); clrtobot(); clrtoeol(); color_ content(); color_ set(); COLORS; COLOR_ PAIRS; COLS; copywin(); curs_ set(); curses_ version(); delch(); deleteln(); delscreen(); delwin(); derwin(); doupdate(); dupwin( win); echo(); echochar(); endwin(); erase(); erasechar(); ERR; FALSE; filter(); flash(); flushinp() Getbegyx()getbkgd(); getch(); getmaxyx(); getnstr(); getparyx(); getmouse(); getstr(); getsyx(); getwin(); getyx(); halfdelay(); has_ colors(); has_ ic(); has_ il(); hline(); idcok(); idlok(); immedok(); inch(); inchstr(); init_ color(); init_ pair(); initscr(); innstr(); insch(); insdelln(); insertln(); insstr(); instr(); intrflush(); isendwin(); is_ linetouched(); is_ wintouched(); keyname(); keypad(); killchar(); leaveok(); LINES; longname(); meta(); MEVENT; mouse_ trafo(); mousemask(); move(); mv prefix functions; mvderwin(); mvw prefix functions; mvwin(); napms( ms)
NCURSES_ MOUSE_ VERSION
Includes index
English