aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/tty.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2024-01-21 15:25:52 -0800
committerGitHub <noreply@github.com>2024-01-21 15:25:52 -0800
commitfd49e226700e2483a452c3c92da6f15d822ae054 (patch)
treee7077e2bd31e3e365ece2657e1265adbfca47e6e /Lib/tty.py
parentdb1c18eb6220653290a3ba9ebbe1df44394a3f19 (diff)
downloadcpython-fd49e226700e2483a452c3c92da6f15d822ae054.tar.gz
cpython-fd49e226700e2483a452c3c92da6f15d822ae054.zip
gh-114328: tty cbreak mode should not alter ICRNL (#114335)
The terminal CR -> NL mapping setting should be inherited in cbreak mode as OSes do not specify altering it as part of their stty cbreak mode definition.
Diffstat (limited to 'Lib/tty.py')
-rw-r--r--Lib/tty.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/tty.py b/Lib/tty.py
index 283e5c334f5..5a49e040042 100644
--- a/Lib/tty.py
+++ b/Lib/tty.py
@@ -45,9 +45,6 @@ def cfmakeraw(mode):
def cfmakecbreak(mode):
"""Make termios mode cbreak."""
- # Do not map CR to NL on input.
- mode[IFLAG] &= ~(ICRNL)
-
# Do not echo characters; disable canonical input.
mode[LFLAG] &= ~(ECHO | ICANON)