STINNER Victor added the comment: I don't understand the issue. How and when the EOF keyboard shortcut is not CTRL+d? Can it be configured?
+ # Add 64 to get the ASCII character. + eof_char = chr(ord(eof_num) + 64) I don't understand the trick '\x04' termios.tcgetattr(sys.stdin)[6][termios.VEOF] becomes 'CTRL+D'. Where does the 64 constant come from? To me, '\x04' is the character sent to signal the end of the file. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22310> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com