Skip to content

Commit

Permalink
Update Cursor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
freost committed Nov 3, 2024
1 parent 8f6723f commit 4cb47f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mako/cli/output/Cursor.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ public function getPosition(): ?array

exec("stty {$settings}");

sscanf($response, "\033[%d;%dR", $row, $col);
sscanf($response, "\033[%d;%dR", $row, $column);

if (isset($row, $col)) {
return ['row' => $row, 'column' => $col];
if (isset($row, $column)) {
return ['row' => $row, 'column' => $column];
}

return null;
Expand Down

0 comments on commit 4cb47f8

Please sign in to comment.