FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-151950: Fix Sphinx reference warnings in termios docs by harjothkhara · Pull Request #153885 · python/cpython · GitHub

Repository navigation

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) dotfile  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
34 changes: 34 additions & 0 deletions Doc/library/termios.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ The module defines the following functions:
well as the indexing in the *cc* array must be done using the symbolic
constants defined in the :mod:`!termios` module.

.. data:: VMIN
VTIME

Indices into the *cc* array controlling a non-canonical read: the minimum
number of characters to read and the timeout in tenths of a second,
respectively.


.. function:: tcsetattr(fd, when, attributes)

Expand Down Expand Up @@ -77,13 +84,28 @@ The module defines the following functions:
which queue: :const:`TCIFLUSH` for the input queue, :const:`TCOFLUSH` for the
output queue, or :const:`TCIOFLUSH` for both queues.

.. data:: TCIFLUSH
TCOFLUSH
TCIOFLUSH

Values for the *queue* selector: the input queue, the output queue, or
both queues, respectively.


.. function:: tcflow(fd, action)

Suspend or resume input or output on file descriptor *fd*. The *action*
argument can be :const:`TCOOFF` to suspend output, :const:`TCOON` to restart
output, :const:`TCIOFF` to suspend input, or :const:`TCION` to restart input.

.. data:: TCOOFF
TCOON
TCIOFF
TCION

Values for the *action* argument: suspend output, restart output,
suspend input, or restart input, respectively.


.. function:: tcgetwinsize(fd)

Expand All @@ -93,6 +115,12 @@ The module defines the following functions:

.. versionadded:: 3.11

.. data:: TIOCGWINSZ
TIOCGSIZE

``ioctl()`` requests for querying the tty window size. Not defined on
all platforms; :func:`tcgetwinsize` requires at least one of them.


.. function:: tcsetwinsize(fd, winsize)

Expand All @@ -104,6 +132,12 @@ The module defines the following functions:

.. versionadded:: 3.11

.. data:: TIOCSWINSZ
TIOCSSIZE

``ioctl()`` requests for setting the tty window size. Not defined on all
platforms; see :func:`tcsetwinsize` for the required pairs.


.. seealso::

Expand Down
1 change: 0 additions & 1 deletion Doc/tools/.nitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Doc/library/pyexpat.rst
Doc/library/select.rst
Doc/library/socket.rst
Doc/library/ssl.rst
Doc/library/termios.rst
Doc/library/urllib.parse.rst
Doc/library/urllib.request.rst
Doc/library/wsgiref.rst
Expand Down
Loading

Back | FazBrowse Home | New Git URL