[issue22310] Report actual EOF character instead of assuming Ctrl-D

2014-08-31 Thread John Malmberg
John Malmberg added the comment: The existing Python text is uppercase D for Ctrl-D, so I maintained it. stty documentation also uses upper case for control characters. The EOF character can be viewed or set via the stty utility or the tcsetattr() or equivalent routine. Some platforms may not

[issue22310] Report actual EOF character instead of assuming Ctrl-D

2014-08-31 Thread STINNER Victor
STINNER Victor added the comment: Oh, by the way: according to the glibc documentation: "Usually, the EOF character is C-d". Lower case D, not upper case. -- ___ Python tracker

[issue22310] Report actual EOF character instead of assuming Ctrl-D

2014-08-31 Thread STINNER Victor
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(sy

[issue22310] Report actual EOF character instead of assuming Ctrl-D

2014-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22310] Report actual EOF character instead of assuming Ctrl-D

2014-08-30 Thread John Malmberg
New submission from John Malmberg: Have setquit() use the actual EOF character where available instead of assuming Ctrl-D. -- components: Library (Lib) files: lib_site_py.gdiff messages: 226154 nosy: John.Malmberg priority: normal severity: normal status: open title: Report actual EOF c