Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing the contents of an image file messes up shell text #3810

Closed
nucleartide opened this issue Jul 27, 2013 · 1 comment
Closed

Printing the contents of an image file messes up shell text #3810

nucleartide opened this issue Jul 27, 2013 · 1 comment
Milestone

Comments

@nucleartide
Copy link

Here's a reproducible test case. Take this image file named tumblr.gif.

tumblr

Fire up IPython and print the contents of the file.

screenshot from 2013-07-27 19 11 56

Bam! What the heck?

screenshot from 2013-07-27 19 16 39

Here's my system info.

{'commit_hash': '858d539',
 'commit_source': 'installation',
 'default_encoding': 'UTF-8',
 'ipython_path': '/usr/local/lib/python2.7/dist-packages/IPython',
 'ipython_version': '0.13.2',
 'os_name': 'posix',
 'platform': 'Linux-3.5.0-17-generic-x86_64-with-LinuxMint-14-nadia',
 'sys_executable': '/usr/bin/python',
 'sys_platform': 'linux2',
 'sys_version': '2.7.3 (default, Apr 10 2013, 05:13:16) \n[GCC 4.7.2]'}
@minrk
Copy link
Member

minrk commented Jul 27, 2013

That's a generic terminal issue, and there isn't anything for IPython to really do about it. Certain binary sequences are interpreted as commands by the terminal emulator (not IPython).

@minrk minrk closed this as completed Jul 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants