Sophie

Sophie

distrib > Mandriva > 8.1 > i586 > by-pkgid > 700475c8ae73fb4d57b6df4485c29e1c > files > 74

slang-doc-1.4.4-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE> {The S-lang C Library Reference}: SLsmg_init_smg</TITLE>
 <LINK HREF="cref-23.html" REL=next>
 <LINK HREF="cref-21.html" REL=previous>
 <LINK HREF="cref.html#toc22" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-23.html">Next</A>
<A HREF="cref-21.html">Previous</A>
<A HREF="cref.html#toc22">Contents</A>
<HR>
<H2><A NAME="SLsmg_init_smg"></A> <A NAME="s22">22. <B>SLsmg_init_smg</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Initialize the <CODE>SLsmg</CODE> routines
<DT><B> Usage </B><DD><P><CODE>int SLsmg_init_smg (void)</CODE>
<DT><B> Description </B><DD><P>The <CODE>SLsmg_init_smg</CODE> function initializes the <CODE>SLsmg</CODE> screen
management routines.   Specifically, this function allocates space
for the virtual display and calls <CODE>SLtt_init_video</CODE> to put the
terminal's physical display in the proper state.  It is up to the
caller to make sure that the <CODE>SLtt</CODE> routines are initialized via
<CODE>SLtt_get_terminfo</CODE> before calling <CODE>SLsmg_init_smg</CODE>.
<P>This function should also be called any time the size of the
physical display has changed so that it can reallocate a new virtual
display to match the physical display.
<P>It returns zero upon success, or <CODE>-1</CODE> upon failure.
<DT><B> See Also </B><DD><P><CODE>SLsmg_reset_smg</CODE>
</DL>
<P>
<P>
<P>
<HR>
<A HREF="cref-23.html">Next</A>
<A HREF="cref-21.html">Previous</A>
<A HREF="cref.html#toc22">Contents</A>
</BODY>
</HTML>