5. A Word about WindowsBefore we plunge into the myriad ncurses functions, let me clear few things about windows. Windows are explained in detail in following sections A Window is an imaginary screen defined by curses system. A window does not mean a bordered window which you usually see on Win9X platforms. When curses is initialized, it creates a default window named stdscr which represents your 80x25 (or the size of window in which you are running) screen. If you are doing simple tasks like printing few strings, reading input etc., you can safely use this single window for all of your purposes. You can also create windows and call functions which explicitly work on the specified window. For example, if you call
It prints the string on stdscr at the present cursor position. Similarly the call to refresh(), works on stdscr only. Say you have created windows then you have to call a function with a 'w' added to the usual function.
As you will see in the rest of the document, naming of functions follow the same convention. For each function there usually are three more functions.
Usually the w-less functions are macros which expand to corresponding w-function with stdscr as the window parameter. Linux HOWTO full list |
|
This document, LDP HOWTO-INDEX, is copyrighted (c) 1995 - 2002 by Tim Bynum, Guylhem Aznar, Joshua Drake and Greg Ferguson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at http://www.gnu.org/copyleft/fdl.html. If you have questions, please contact the LDP.
Web Design Copyright © 1999-2003. Chrisranjana Software Solutions Pvt Ltd. syndicate rss feed |