Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ca4b1fba3d
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (28 sloc) 0.709 kb
* PHP Command Line Tools
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.
* @author James Logsdon <>
* @copyright 2010 James Logsdom (
* @license The MIT License
namespace cli;
* The `Shell` class is a utility class for shell related information such as
* width.
class Shell {
* Returns the number of columns the current shell has for display.
* @return int The number of columns.
* @todo Test on more systems.
static public function columns() {
return exec('/usr/bin/env tput cols');
Jump to Line
Something went wrong with that request. Please try again.