[issue1239] openpty does not give bidirectional pipe
Changes by Matti Katila: -- components: None severity: normal status: open title: openpty does not give bidirectional pipe type: behavior versions: Python 2.5 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1239> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1239] openpty does not give bidirectional pipe
New submission from Matti Katila: http://rafb.net/p/t8cqSt71.html -- nosy: +mudyc __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1239> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1239] openpty does not give bidirectional pipe
Matti Katila added the comment: Linux Programmer’s Manual for ptmx and pts - pseudo-terminal master and slave states: "Data written to the slave is presented on the master descriptor as input. Data written to the master is presented to the slave as input." The data can be read from slave to master but not from master to slave. The unit test does not test this issue either: http://coverage.livinglogic.de/Lib/test/test_openpty.py.html __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1239> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1239] openpty does not give bidirectional pipe
Matti Katila added the comment: Not a real issue - it's a standard behaviour of tty. Fix is to set -icanon: m,s = os.openpty() s = os.ttyname(s) os.system( 'stty cs8 -icanon -echo < %s' % s ) see, http://www.eulogika.net/download/eutalk_20040302/pymouse.html The issue can be closed and documentation can be updated with some helpful information. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1239> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com