Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Console] Allow terminal dimensions to be set to 0 (unbounded)#22377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.2fromduncan3dc:zero-console-dimensions
Apr 11, 2017

Conversation

@duncan3dc
Copy link
Contributor

QA
Branch?3.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#21513
LicenseMIT

A previous PR (#20328) changed the behavior of terminals with undefined widths from unbounded to 80 characters. And due to the way the existing code worked it become impossible to set a terminal to be unbounded again. This PR provides a way to restore the previous behavior:

putenv('COLUMNS=0');

@duncan3dcduncan3dcforce-pushed thezero-console-dimensions branch fromb8d968f to469cff2CompareApril 11, 2017 15:25
@stof
Copy link
Member

@nicolas-grekas are we sure that the existing code treats 0 as unbounded though ?

@duncan3dc
Copy link
ContributorAuthor

Forformatting exceptions it does, although not technically "unbounded" I guess (PHP_INT_MAX)

@stof
Copy link
Member

@duncan3dc yeah, fine enough 😄

duncan3dc reacted with laugh emoji

@duncan3dcduncan3dcforce-pushed thezero-console-dimensions branch from469cff2 to4c1b001CompareApril 11, 2017 15:41
@fabpot
Copy link
Member

Thank you@duncan3dc.

duncan3dc reacted with thumbs up emoji

@fabpotfabpot merged commit4c1b001 intosymfony:3.2Apr 11, 2017
fabpot added a commit that referenced this pull requestApr 11, 2017
…ded) (duncan3dc)This PR was merged into the 3.2 branch.Discussion----------[Console] Allow terminal dimensions to be set to 0 (unbounded)| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#21513| License       | MITA previous PR (#20328) changed the behavior of terminals with undefined widths from unbounded to 80 characters. And due to the way the existing code worked it become impossible to set a terminal to be unbounded again. This PR provides a way to restore the previous behavior:```phpputenv('COLUMNS=0');```Commits-------4c1b001 Allow terminal dimensions to be set to 0 (unbounded)
@duncan3dcduncan3dc deleted the zero-console-dimensions branchApril 11, 2017 15:51
@xabbuhxabbuh added this to the3.2 milestoneApr 12, 2017
@fabpotfabpot mentioned this pull requestMay 1, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

3.2

Development

Successfully merging this pull request may close these issues.

4 participants

@duncan3dc@stof@fabpot@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp