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

no tput on cygwin; stderr and stdout formatting #137

Open
mateor opened this issue Jul 12, 2013 · 1 comment
Open

no tput on cygwin; stderr and stdout formatting #137

mateor opened this issue Jul 12, 2013 · 1 comment

Comments

@mateor
Copy link
Owner

mateor commented Jul 12, 2013

I may have to look for the report, but the colorize and bold functions are not available on the standard cygwin install. I need to rethink the functions in general.

What is needed to be addressed:

  • The colorize function sends color text to screen but some garbage characters to log. The colorize text function needs to split the output, colorized to screen, unformatted to log.
  • use of 'tput' sends errors to cygwin terminal. Only seen (I believe) when manually patching in Cygwin. That stderr can just go to dev/null as it is trival windowdressing.
@mateor
Copy link
Owner Author

mateor commented Jul 18, 2013

Point 1 in the list above is fixed. But the splitting of the colorize text (color to screen, unformatted to log) needs to be addressed. It is a little less than simple, since I set the functions up to called by other functions, A call often looks like this:

  printtask "$(colorize_bold ${red}Congratulations), the patching was $(colorize_bold ${red}successful)."

I could change printask to echo, and then send a different line to log...but that seems inelegant. Might still do it, though.

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

No branches or pull requests

1 participant