DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
ETI windows

subwin

SYNOPSIS

   #include <ocurses.h>
   

WINDOW *subwin(orig, nlines, ncols, begin_y, begin_x) WINDOW *orig; int nlines, ncols, begin_y, begin_x;

NOTES


CAUTION: Subwindows of subwindows do not work.

EXAMPLE

   #include <ocurses.h>
   

main() { WINDOW *sub;

initscr(); box(stdscr,'w','w'); /* See the curses(3ocurses) manual page for box */ mvwaddstr(stdscr,7,10,"------- this is 10,10"); mvwaddch(stdscr,8,10,'|'); mvwaddch(stdscr,9,10,'v'); sub = subwin(stdscr,10,20,10,10); box(sub,'s','s'); wnoutrefresh(stdscr); wrefresh(sub); endwin(); }

This program prints a border of w's around stdscr (the sides of your terminal screen) and a border of s's around the subwindow sub when it is run. For another example, see ``The window program''.


Next topic: ETI low-level interface (curses) to high-level functions
Previous topic: newwin

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004