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

No life #2

Closed
lonnen opened this issue May 31, 2012 · 9 comments
Closed

No life #2

lonnen opened this issue May 31, 2012 · 9 comments

Comments

@lonnen
Copy link
Contributor

lonnen commented May 31, 2012

I cloned the repo at 8de092a. I set up a virtual env, install blessings, and run python conway. My console clears, but that's about it until I send ctrl-c to kill it, at which point my terminal prompt comes back. Using iterm2 on OSX 10.7, with the Solarized color scheme. I altered the contrast so that all text turns up bright white and still didn't see anything, so I don't think it's drawing characters with the same color as the background.

What's the expected behavior?

@erikrose
Copy link
Owner

Hmm, sposta work. Does Terminal work? Maybe iTerm is using a different term type and blessings is screwing up.

@erikrose
Copy link
Owner

iTerm2 1.0.0.20110907 works for me. My typical zsh setup and a virgin OS X one do, too. Hmm! I really wish I could reproduce this.

@erikrose
Copy link
Owner

It even works with Solarized Dark, from http://www.iterm2.com/hostedcolors/Solarized%20Dark.itermcolors. (There doesn't seem to be a built-in Solarized preset.)

@erikrose
Copy link
Owner

I wonder if your term is black and white (or thinks it is). Right now I'm just printing spaces with background colors and not doing any testing to see whether color is, in fact, available. If you replace ' ' with '#' in the code, what happens?

@lonnen
Copy link
Contributor Author

lonnen commented May 31, 2012

I'm using solarized dark.

In OSX terminal the terminal clears, and then the cursor appears and bounces erratically between 4 or 5 arbitrary positions. Maybe it's something about my python set up?

@erikrose
Copy link
Owner

What version of iTerm? I tried the recent beta.

@erikrose
Copy link
Owner

I'm still curious about the # thing above. And what does this tell you?

from blessings import Terminal
Terminal().number_of_colors

I get 256. I wonder if you get 0.

@lonnen
Copy link
Contributor Author

lonnen commented Jun 2, 2012

Using iTerm2 Build 1.0.0.20120203

>>> from blessings import Terminal
>>> Terminal().number_of_colors
8

with OSX Terminal Version 2.2.3 (303.2) and TerminalColours (v1.0) plugin

>>> from blessings import Terminal
>>> Terminal().number_of_colors
8
>>> 

@erikrose
Copy link
Owner

erikrose commented Jun 2, 2012

That's it. :-) I'm using all high-ANSI colors, beyond the range of what your terminal supports. I'll make it smarter.

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