Message226172
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. |
|
Date |
User |
Action |
Args |
2014-08-31 12:41:06 | vstinner | set | recipients:
+ vstinner, John.Malmberg |
2014-08-31 12:41:06 | vstinner | set | messageid: <1409488866.66.0.91696431788.issue22310@psf.upfronthosting.co.za> |
2014-08-31 12:41:06 | vstinner | link | issue22310 messages |
2014-08-31 12:41:06 | vstinner | create | |
|