Terminal Columns aren't always available #3

Merged
merged 1 commit into from Oct 5, 2012

Projects

None yet

2 participants

@fabiokung
Contributor

In my case (OS X 10.8.2 + iTerm2) getTerminalColumns() returns always 0.

This is a simple change to make it safer and assume 80 when a better value isn't available. Most unix tools do something similar.

@jessevdk jessevdk merged commit 72a6b93 into jessevdk:master Oct 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment