In console terms columns are width and rows are height
This commit is contained in:
parent
8cd6cbcfc4
commit
445fd2f9aa
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user