StratusLab / client

Command Line Interface (CLI) for StratusLab cloud services
Apache License 2.0
2 stars 1 forks source link

stratus-describe-instance (and other commands) print garbage in headers on some terminals #84

Closed loomis closed 11 years ago

loomis commented 11 years ago

The code to print the command response headers in red prints garbage to terminals that don't handle the escape codes.

Either the StratusLab code should test the terminal properties and emit them only if they will be used correctly or the code should drop the coloring of the headers entirely.

loomis commented 11 years ago

Some potential libraries to include for handling cross-platform text colouring are: colorama and termcolor.

Is having colored text worth the extra dependencies that this will bring in?

loomis commented 11 years ago

For now, remove all terminal highlighting. Bring this back correctly at some future date if really desired.