Initial support for dark mode terminals #933
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
notes
Dark mode
This release brings preliminary support for "dark mode" terminals, and a simplified option for a Terraform workspace prompt. If you find problems, please report them, but we expect the situation will at least be no worse than before.
Mainly, with respect to dark mode terminals, after setting a text color, we do not "revert" by setting the text to black, we now revert by setting foreground and background to terminal defaults.
Similarly, after setting text to bold, we no longer reset all graphics settings, we just unset bold. If this causes a problem in your terminal, you can revert the behavior by setting the environment variable
TERM_BOLD_OFF=$(tput sgr0)
inside Geodesic.Terraform workspace in prompt
Geodesic has a legacy option for displaying the current Terraform workspace when in a directory with
*.tf
files. The prompts used to instruct you what to do if no workspace was selected, assuming you were using the old Cloud Posse tooling based onmake
anddirenv
. Those instructions have been removed, and you now have the option of just having the Terraform workspace displayed in the prompt.Because all the prompt now does is indicate the current Terraform workspace, the environment variable
GEODESIC_TERRAFORM_WORKSPACE_PROMPT_ENABLED
is no longer used (assumed to betrue
). The Terraform information display in the prompt remains controlled by theGEODESIC_TF_PROMPT_ENABLED
environment variable, which defaults tofalse
.what
why