home *** CD-ROM | disk | FTP | other *** search
- .\"----------------------------------------------------------------------------
- .\"-- This text was extracted using the following command:
- .\"-- xdoc -man -p '[ \t]*' -s PARSE-MODES ../parseargs.h
- .\"----------------------------------------------------------------------------
- .SH "PARSE MODES"
- .PP
- \fIParsecntl\fP may be used to read current command attributes, write
- (assign) new command attributes, or both. The mode argument to
- parsecntl determines which of these three alternatives are
- desired. If the programmer merely wishes to assign new attributes,
- then invoking \fIparsecntl\fP in \fIpc_\s-1WRITE\s+1\fP mode and passing
- the new attributes will do the job. If the programmer wishes simply to query
- attributes, then invoking \fIparsecntl\fP in \fIpc_\s-1READ\s+1\fP mode and
- passing a pointer to the desired object in which to write the attribute
- settings will suffice.
-
- If the programmer wishes to assign new attributes and at the same time
- find out what the attributes were before making the assignment, then
- programmer must invoke \fIparsecntl\fP for \fIpc_\s-1RDWR\s+1\fP mode
- and pass a pointer to the object containing the new attribute settings;
- When \fIparsecntl\fP returns, then (assuming it returns 0) the desired
- attributes will have been assigned and the object that contained the
- new attribute settings will now contain the attribute settings that
- were in effect immediately before \fIparsecntl\fP was invoked.
-