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

Write-Host adding multiple line breaks #672

Closed
ferventcoder opened this Issue Mar 26, 2016 · 2 comments

Comments

Projects
None yet
1 participant
@ferventcoder
Member

ferventcoder commented Mar 26, 2016

Related to #674

@ferventcoder

This comment has been minimized.

Show comment
Hide comment
@ferventcoder

ferventcoder Mar 26, 2016

Member

Write-Host calls Write and then WriteLine

Member

ferventcoder commented Mar 26, 2016

Write-Host calls Write and then WriteLine

@ferventcoder

This comment has been minimized.

Show comment
Hide comment
@ferventcoder

ferventcoder Mar 27, 2016

Member

Need to implement #181 #184 first.

Member

ferventcoder commented Mar 27, 2016

Need to implement #181 #184 first.

@ferventcoder ferventcoder added 3 - Done and removed 0 - Backlog labels Mar 29, 2016

ferventcoder added a commit that referenced this issue Mar 29, 2016

(GH-674)(GH-672) Color Overrides / Fix Write-Host
Write-Host was double printing, but it appears that it was due to
calling Write, and then an empty WriteLine, both of which the
PoshHostUserInterface were calling a log entry which writes out each as
a line. Instead log just to the file and print with `Console.Write` and
`Console.WriteLine`.  Using `Console` calls solves the issue of not
seeing the colorization overrides, so those will be displayed properly.

ferventcoder added a commit that referenced this issue Mar 29, 2016

Merge branch 'stable'
* stable:
  (GH-460) Amended Template
  (GH-623) Extract Nuspec on Install
  (GH-674)(GH-672) Color Overrides / Fix Write-Host
  (GH-181) log selection to log file only
  (GH-181)(GH-184) Short prompt/Prompt character
  (GH-675) Template include LICENSE/VERIFICATION
  (GH-258) Rename zip to detector.zip
  (GH-572) Fix: The handle is invalid - Output Redirection
  (maint) comments
  (GH-667) Provide How To Add Profile Manually
  (GH-667) PowerShell Custom Host - Set $Profile
  (GH-666) pass Write-ChocolateyError message param
  (GH-673) Ensure Get-BinRoot Warning is Shown
  (GH-666) setup logs colored write-host w/fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment