Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(log): double out width if not running on terminal #269

Conversation

joaoopereira
Copy link
Collaborator

@joaoopereira joaoopereira commented Feb 15, 2023

We have scenarios where the cli is running on (as example) AzureDevOps pipelines.
In that scenario, the AnsiConsole.Profile.Out.IsTerminal returns false, and the AnsiConsole.Profile.Width defaults to 80, which is a low value and causes unexpected break lines.

An issue is already open on spectreconsole repo:
spectreconsole/spectre.console#216

@joaoopereira joaoopereira marked this pull request as draft February 15, 2023 14:51
@joaoopereira joaoopereira force-pushed the development-only-use-ansiconsole-on-terminal-runs branch 2 times, most recently from bb55df8 to 6b38e5a Compare February 15, 2023 17:07
@joaoopereira joaoopereira force-pushed the development-only-use-ansiconsole-on-terminal-runs branch from 6b38e5a to e421ef0 Compare February 15, 2023 17:12
@joaoopereira joaoopereira marked this pull request as ready for review February 16, 2023 09:32
@joaoopereira joaoopereira merged commit bc3c223 into criticalmanufacturing:development Feb 16, 2023
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.

None yet

2 participants