Kaynağa Gözat

In console terms columns are width and rows are height

Miha Vrhovnik 13 yıl önce
ebeveyn
işleme
445fd2f9aa
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/Symfony/Component/Console/Application.php

+ 2 - 2
src/Symfony/Component/Console/Application.php

@@ -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];
         }
     }