sys.argv to pass input, which will break if somebody does Ctrl+A and then Send to Terminal on a large file:
getconf ARG_MAX), and any argument must not exceed MAX_ARG_STRLEN (in bytes too)
We should be reading it from
This should also solve encoding issues on Python 2. As things are, if you try to send this:
you get this:
>>> print('??') ??