Homec4science

Add a method to determine console width

Authored by epriestley <git@epriestley.com> on Oct 1 2012, 04:30.

Description

Add a method to determine console width

Summary:
I'm making arc tasks smarter about width-based printing for T1831 and want access to the console width to do so.

Getting it is kind of tricky without curses, which no one has. Get it to work reasonably.

Test Plan: Ran function, got correct output for my terminal.

Reviewers: btrahan, vrana

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1831

Differential Revision: https://secure.phabricator.com/D3567

Details

Committed
epriestley <git@epriestley.com>Oct 1 2012, 04:30
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUa9cedbf87fcd: Generalize flushing console buffer
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU71aeced8ab61: Add a method to determine console width (authored by epriestley <git@epriestley.com>).Oct 1 2012, 04:30