119 lines
7.1 KiB
HTML
119 lines
7.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<!-- This manual documents Guile version 3.0.10.
|
|
|
|
Copyright (C) 1996-1997, 2000-2005, 2009-2023 Free Software Foundation,
|
|
Inc.
|
|
|
|
Copyright (C) 2021 Maxime Devos
|
|
|
|
Copyright (C) 2024 Tomas Volf
|
|
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
|
any later version published by the Free Software Foundation; with no
|
|
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
|
|
copy of the license is included in the section entitled "GNU Free
|
|
Documentation License." -->
|
|
<title>Terminals and Ptys (Guile Reference Manual)</title>
|
|
|
|
<meta name="description" content="Terminals and Ptys (Guile Reference Manual)">
|
|
<meta name="keywords" content="Terminals and Ptys (Guile Reference Manual)">
|
|
<meta name="resource-type" content="document">
|
|
<meta name="distribution" content="global">
|
|
<meta name="Generator" content=".texi2any-real">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
<link href="index.html" rel="start" title="Top">
|
|
<link href="Concept-Index.html" rel="index" title="Concept Index">
|
|
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
|
|
<link href="POSIX.html" rel="up" title="POSIX">
|
|
<link href="Pipes.html" rel="next" title="Pipes">
|
|
<link href="Signals.html" rel="prev" title="Signals">
|
|
<style type="text/css">
|
|
<!--
|
|
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
|
|
span:hover a.copiable-link {visibility: visible}
|
|
strong.def-name {font-family: monospace; font-weight: bold; font-size: larger}
|
|
-->
|
|
</style>
|
|
<link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/gnulib/manual.css">
|
|
|
|
|
|
</head>
|
|
|
|
<body lang="en">
|
|
<div class="subsection-level-extent" id="Terminals-and-Ptys">
|
|
<div class="nav-panel">
|
|
<p>
|
|
Next: <a href="Pipes.html" accesskey="n" rel="next">Pipes</a>, Previous: <a href="Signals.html" accesskey="p" rel="prev">Signals</a>, Up: <a href="POSIX.html" accesskey="u" rel="up"><abbr class="acronym">POSIX</abbr> System Calls and Networking</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html" title="Index" rel="index">Index</a>]</p>
|
|
</div>
|
|
<hr>
|
|
<h4 class="subsection" id="Terminals-and-Ptys-1"><span>7.2.9 Terminals and Ptys<a class="copiable-link" href="#Terminals-and-Ptys-1"> ¶</a></span></h4>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-isatty_003f"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">isatty?</strong> <var class="def-var-arguments">port</var><a class="copiable-link" href="#index-isatty_003f"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005fisatty_005fp"><span class="category-def">C Function: </span><span><strong class="def-name">scm_isatty_p</strong> <var class="def-var-arguments">(port)</var><a class="copiable-link" href="#index-scm_005fisatty_005fp"> ¶</a></span></dt>
|
|
<dd><a class="index-entry-id" id="index-terminal"></a>
|
|
<p>Return <code class="code">#t</code> if <var class="var">port</var> is using a serial non–file
|
|
device, otherwise <code class="code">#f</code>.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-ttyname"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">ttyname</strong> <var class="def-var-arguments">port</var><a class="copiable-link" href="#index-ttyname"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005fttyname"><span class="category-def">C Function: </span><span><strong class="def-name">scm_ttyname</strong> <var class="def-var-arguments">(port)</var><a class="copiable-link" href="#index-scm_005fttyname"> ¶</a></span></dt>
|
|
<dd><a class="index-entry-id" id="index-terminal-1"></a>
|
|
<p>Return a string with the name of the serial terminal device
|
|
underlying <var class="var">port</var>.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-ctermid"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">ctermid</strong><a class="copiable-link" href="#index-ctermid"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005fctermid"><span class="category-def">C Function: </span><span><strong class="def-name">scm_ctermid</strong> <var class="def-var-arguments">()</var><a class="copiable-link" href="#index-scm_005fctermid"> ¶</a></span></dt>
|
|
<dd><a class="index-entry-id" id="index-terminal-2"></a>
|
|
<p>Return a string containing the file name of the controlling
|
|
terminal for the current process.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-tcgetpgrp"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">tcgetpgrp</strong> <var class="def-var-arguments">port</var><a class="copiable-link" href="#index-tcgetpgrp"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005ftcgetpgrp"><span class="category-def">C Function: </span><span><strong class="def-name">scm_tcgetpgrp</strong> <var class="def-var-arguments">(port)</var><a class="copiable-link" href="#index-scm_005ftcgetpgrp"> ¶</a></span></dt>
|
|
<dd><a class="index-entry-id" id="index-process-group"></a>
|
|
<p>Return the process group ID of the foreground process group
|
|
associated with the terminal open on the file descriptor
|
|
underlying <var class="var">port</var>.
|
|
</p>
|
|
<p>If there is no foreground process group, the return value is a
|
|
number greater than 1 that does not match the process group ID
|
|
of any existing process group. This can happen if all of the
|
|
processes in the job that was formerly the foreground job have
|
|
terminated, and no other job has yet been moved into the
|
|
foreground.
|
|
</p></dd></dl>
|
|
|
|
<dl class="first-deffn">
|
|
<dt class="deffn" id="index-tcsetpgrp"><span class="category-def">Scheme Procedure: </span><span><strong class="def-name">tcsetpgrp</strong> <var class="def-var-arguments">port pgid</var><a class="copiable-link" href="#index-tcsetpgrp"> ¶</a></span></dt>
|
|
<dt class="deffnx def-cmd-deffn" id="index-scm_005ftcsetpgrp"><span class="category-def">C Function: </span><span><strong class="def-name">scm_tcsetpgrp</strong> <var class="def-var-arguments">(port, pgid)</var><a class="copiable-link" href="#index-scm_005ftcsetpgrp"> ¶</a></span></dt>
|
|
<dd><a class="index-entry-id" id="index-process-group-1"></a>
|
|
<p>Set the foreground process group ID for the terminal used by the file
|
|
descriptor underlying <var class="var">port</var> to the integer <var class="var">pgid</var>.
|
|
The calling process
|
|
must be a member of the same session as <var class="var">pgid</var> and must have the same
|
|
controlling terminal. The return value is unspecified.
|
|
</p></dd></dl>
|
|
|
|
</div>
|
|
<hr>
|
|
<div class="nav-panel">
|
|
<p>
|
|
Next: <a href="Pipes.html">Pipes</a>, Previous: <a href="Signals.html">Signals</a>, Up: <a href="POSIX.html"><abbr class="acronym">POSIX</abbr> System Calls and Networking</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html" title="Index" rel="index">Index</a>]</p>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|