HP 9000 Series 300 Tutorials Manual page 254

Device i/o and user interfacing hp-ux concepts and tutorials
Hide thumbs Also See for HP 9000 Series 300:
Table of Contents

Advertisement

Description of Curses Routines (Continued)
newterm(type,jpout,jpin) Used instead of initscr in programs that output to more
than one terminal. newterm should be called once for each
terminal. It returns a variable of type struct screen*
which should be saved for use as a reference to that
terminal. Arguments are: a string defining the terminal
type, a file pointer for the output file, and another for the
input file if needed (interactive terminal).
newwin (num_lines,
num_cols,beg_y,beg_x)
nlO
nonl()
nocbreakO
nodelay
(win,
boolean_flag)
noechoO
nonl()
noraw()
2-18
Curses Routines
Create a new window with the specified number of lines
and columns whose upper left-hand corner is located at
the specified row and column of the physical screen, and
return a window pointer (the upper left-hand corner of the
physical screen is row 0, column 0). If the number of lines
and/ or columns is specified as zero, the default value
LINES
minus beg_y and
COLS
minus beg_x is used instead. A
screen buffer for the window is also created. To create a
new full-screen window, use newwin (0 . 0 • 0 . 0) .
Defines handling of newline characters. When enabled
(nl), newline is translated into a carriage-return and
line-feed on output, and carriage-return is translated into
a newline character on input. curses initially enables
newline, but if it is disabled by nonl, curses can make
better use of line feed capability, resulting in faster cursor
motion.
See cbreakO.
Makes getch a non-blocking call. When enabled, if no
input is ready, a call to getch returns -1. If disabled,
getch hangs until a key is pressed.
See echoO.
See nlO.
See rawO.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 9000 series 800

Table of Contents