<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) XXXX-2008 - INRIA
 *
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
 *
 -->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
          xml:lang="en" xml:id="getio">
    <refnamediv>
        <refname>getio</refname>
        <refpurpose>get Scilab input/output logical units</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>ios=getio()</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>ios</term>
                <listitem>
                    <para>a vector [rio rte wio wte]</para>
                    <variablelist>
                        <varlistentry>
                            <term>rio</term>
                            <listitem>
                                <para>current logical unit for reading instructions</para>
                            </listitem>
                        </varlistentry>
                        <varlistentry>
                            <term>rte</term>
                            <listitem>
                                <para>logical unit assigned for input in main scilab window</para>
                            </listitem>
                        </varlistentry>
                        <varlistentry>
                            <term>wio</term>
                            <listitem>
                                <para>logical unit relative to the diary file if any. wio=0 stands for no diary file opened</para>
                            </listitem>
                        </varlistentry>
                        <varlistentry>
                            <term>wte</term>
                            <listitem>
                                <para>logical unit assigned for output in main scilab window</para>
                            </listitem>
                        </varlistentry>
                    </variablelist>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>
            <literal>getio</literal> returns logical units assigned for main scilab input and output
        </para>
    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="percentio">%io</link>
            </member>
            <member>
                <link linkend="consolebox">consolebox</link>
            </member>
            <member>
                <link linkend="file">file</link>
            </member>
            <member>
                <link linkend="exec">exec</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
