Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add versionadded tags and improve NEWS.
  • Loading branch information
gpshead committed May 19, 2023
commit 286e30c052814bd77894287286676a3c00acf184
4 changes: 4 additions & 0 deletions Doc/library/tty.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ The :mod:`tty` module defines the following functions:
Convert the tty attribute list *mode*, which is a list like the one returned
by :func:`termios.tcgetattr`, to that of a tty in raw mode.

.. versionadded:: 3.12


.. function:: cfmakecbreak(mode)

Convert the tty attribute list *mode*, which is a list like the one returned
by :func:`termios.tcgetattr`, to that of a tty in cbreak mode.

.. versionadded:: 3.12


.. function:: setraw(fd, when=termios.TCSAFLUSH)

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
New additions and improvements to the tty library.
Add :func:`tty.cfmakeraw` and :func:`tty.cfmakecbreak` to :mod:`tty` and
modernize, the behavior of :func:`tty.setraw` and :func:`tty.setcbreak` to use
POSIX.1-2017 Chapter 11 "General Terminal Interface" flag masks by default.