In console terms columns are width and rows are height

This commit is contained in:
Miha Vrhovnik 2012-05-16 11:10:06 +02:00
parent 8cd6cbcfc4
commit 445fd2f9aa

View File

@ -801,7 +801,7 @@ class Application
}
if (preg_match("{rows.(\d+);.columns.(\d+);}i", exec('stty -a | grep columns'), $match)) {
return $match[1];
return $match[2];
}
}
@ -817,7 +817,7 @@ class Application
}
if (preg_match("{rows.(\d+);.columns.(\d+);}i", exec('stty -a | grep columns'), $match)) {
return $match[2];
return $match[1];
}
}