📄 node71.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2 Final//FR"><!-- Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) --><!-- by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><!-- Modified Simulog 03/97 --><HTML><HEAD><TITLE>2.1 Defining the output terminal</TITLE><LINK REL=STYLESHEET TYPE="text/css" HREF="./Modulef.css" TITLE="Modulef CSS"><meta name="description" value="2.1 Defining the output terminal"><meta name="keywords" value="Guide6"><meta name="resource-type" value="document"><meta name="distribution" value="global"></HEAD><BODY BGCOLOR="#FFFFFF"><P> <IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM ALT="Modulef"><A NAME=tex2html1312 HREF="node70.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html1318 HREF="node70.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html1320 HREF="node72.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html1322 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide6-18/node71.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide6-14/node71.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide6-10/node71.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1321 HREF="node72.html">2.2 Screen management</A><B>Up: </B> <A NAME=tex2html1319 HREF="node70.html">2 General tools</A><B> Prev: </B> <A NAME=tex2html1313 HREF="node70.html">2 General tools</A><B><A HREF="node2.html" >Contents</A></B><HR SIZE=3 WIDTH="75%"><H1><A NAME=SECTION05210000000000000000>2.1 Defining the output terminal</A></H1><P>Before an image can appear on a terminal's screen, the terminal must first be selected. This selection, performed by programs DEVICE<A NAME=2987> </A> and DEFDEV<A NAME=2988> </A>, must imperatively precede the description of the objects.<P>To choose a terminal interactively<A NAME=2989> </A> and initialize ittotally for input and output, we use DEFDEV<A NAME=2990> </A><P><PRE> SUBROUTINE DEFDEV(DEVIC, PAROUT, PARIN, CPARAM) INTEGER DEVIC, PAROUT(10), PARIN(10) CHARACTER*(*) CPARAM</PRE><P>which defines a terminal interactively; this subroutine poses <em> ad hoc</em> questionsand initializes the terminal for output and, in certain cases, input.<P><DL COMPACT><DT>Input:<DD> DEVIC, where:<P><UL><LI> If DEVIC <b>=</b> 0: The user chooses a terminal interactively. The terminal number chosen is stored in DEVIC and is used if necessary. PAROUT, PARIN and CPARAM contain the initialization parameters corresponding to this terminal;<P><LI> If DEVIC <b>></b> 0: The subroutine chooses terminal DEVIC and poses other questions. It returns the supplementary parameters in PAROUT on exit from this terminal, and in PARIN on entry to this terminal;<P><LI> If PAROUT(i) is a string: PAROUT(i) is the number of characters (of the order of 80) in the string stored in CPARAM. If there are several strings, they are concatenated in CPARAM;<P><LI> If DEVIC <b><</b> 0: The subroutine chooses terminal <b>|</b>DEVIC<b>|</b> and does not poses any additional questions. It returns the initialization parameters in PAROUT, PARIN and CPARAM.<P></UL> </DL><P><PRE> SUBROUTINE DEVICE(N, IPARAM, CPARAM) INTEGER N, IPARAM(*) CHARACTER*(*) CPARAM</PRE><P><DL COMPACT><DT>Input:<DD> N, the terminal number, where:<P><UL><LI> If N <b>></b> 0: Initialize terminal number N;<P><LI> If N <b>=</b> 0: Enumerate the terminals available;<P><LI> IPARAM is an array containing complementary parameters. In general, it is not necessary to initialize it. For more information about this array refer to the paragraph concerning the description of terminals;<LI> CPARAM is an array of complementary parameters.<P></UL><P><DT>Remark:<DD> DEVICE only initializes the terminal on exit. To initialize the terminal on entry, we need to use program DEVICI<A NAME=2999> </A> described in the section on input management.<P> </DL><P>Subroutine ENDDEV<A NAME=3001> </A> indicates the end of utilization<A NAME=3002> </A> of a terminal.<P><PRE> SUBROUTINE ENDDEV(N) INTEGER N</PRE><P><DL COMPACT><DT>Input:<DD> N, the terminal number.<P> </DL><P><P><P><HR SIZE=3 WIDTH="75%"><IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM ALT="Modulef"><A NAME=tex2html1312 HREF="node70.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html1318 HREF="node70.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html1320 HREF="node72.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html1322 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide6-18/node71.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide6-14/node71.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide6-10/node71.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1321 HREF="node72.html">2.2 Screen management</A><B>Up: </B> <A NAME=tex2html1319 HREF="node70.html">2 General tools</A><B> Prev: </B> <A NAME=tex2html1313 HREF="node70.html">2 General tools</A><B><A HREF="node2.html" >Contents</A></B><BR> <HR><P><ADDRESS></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -