You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation they save the original result of termios.tcgetattr() and return it. But while making a copy of the attribute list before modifying it they do not take in account that it contains a reference to original cc list and modify it. So these functions return a list which contains original values and modified cc list.
These functions started returning the attribute list in #85984 (486bc8e).
The question: who should make a copy of the internal list: setraw() before passing it to cfmakeraw(), or cfmakeraw() itself?
* tty.setraw() and tty.setcbreak() previously returned partially modified
list of the original tty attributes. Now they return the correct list of
the original tty attributes
* tty.cfmakeraw() and tty.cfmakecbreak() now make a copy of the list of
special characters before modifying it.
* tty.setraw() and tty.setcbreak() previously returned partially modified
list of the original tty attributes. Now they return the correct list of
the original tty attributes
* tty.cfmakeraw() and tty.cfmakecbreak() now make a copy of the list of
special characters before modifying it.
* tty.setraw() and tty.setcbreak() previously returned partially modified
list of the original tty attributes. Now they return the correct list of
the original tty attributes
* tty.cfmakeraw() and tty.cfmakecbreak() now make a copy of the list of
special characters before modifying it.
(cherry picked from commit 84e2096)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* tty.setraw() and tty.setcbreak() previously returned partially modified
list of the original tty attributes. Now they return the correct list of
the original tty attributes
* tty.cfmakeraw() and tty.cfmakecbreak() now make a copy of the list of
special characters before modifying it.
(cherry picked from commit 84e2096)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Bug report
According to the documentation they save the original result of
termios.tcgetattr()
and return it. But while making a copy of the attribute list before modifying it they do not take in account that it contains a reference to originalcc
list and modify it. So these functions return a list which contains original values and modifiedcc
list.These functions started returning the attribute list in #85984 (486bc8e).
The question: who should make a copy of the internal list:
setraw()
before passing it tocfmakeraw()
, orcfmakeraw()
itself?cc @gpshead
Linked PRs
The text was updated successfully, but these errors were encountered: