parent
1407f112fc
commit
0a3dd0fe1e
@ -921,6 +921,10 @@ class Application
|
|||||||
*/
|
*/
|
||||||
private function getSttyColumns()
|
private function getSttyColumns()
|
||||||
{
|
{
|
||||||
|
if (!function_exists('proc_open')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$descriptorspec = array(1 => array('pipe', 'w'), 2 => array('pipe', 'w'));
|
$descriptorspec = array(1 => array('pipe', 'w'), 2 => array('pipe', 'w'));
|
||||||
$process = proc_open('stty -a | grep columns', $descriptorspec, $pipes, null, null, array('suppress_errors' => true));
|
$process = proc_open('stty -a | grep columns', $descriptorspec, $pipes, null, null, array('suppress_errors' => true));
|
||||||
if (is_resource($process)) {
|
if (is_resource($process)) {
|
||||||
|
Reference in New Issue
Block a user