Skip to content

Add terminal size environment fallback#30

Merged
prateekbhujel merged 1 commit into
mainfrom
prateek/size-env-fallback
Jun 4, 2026
Merged

Add terminal size environment fallback#30
prateekbhujel merged 1 commit into
mainfrom
prateek/size-env-fallback

Conversation

@prateekbhujel
Copy link
Copy Markdown
Owner

This makes Terminal::getSize() fall back to COLUMNS and LINES when the OS cannot report a terminal size. That helps non-interactive CLI runs where the shell already provides dimensions.

Changed:

  • parse positive COLUMNS and LINES values
  • use them only when native size lookup fails
  • add PHPT coverage and package metadata

Local test:

  • make test REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_EXECUTABLE=/Applications/XAMPP/xamppfiles/bin/php -> 12/12 passed

@prateekbhujel prateekbhujel force-pushed the prateek/size-env-fallback branch from df8a633 to 2a866ee Compare June 4, 2026 11:54
@prateekbhujel prateekbhujel merged commit 41e92d2 into main Jun 4, 2026
15 checks passed
@prateekbhujel prateekbhujel deleted the prateek/size-env-fallback branch June 4, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant