From ab1e512ae289e08dacc317a994a2a63227137aaf Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 29 Nov 2016 09:52:58 -0800 Subject: [PATCH] command: use reset instead of reset_bold Fixes #10337 The `reset_bold` escape code (21) causes the text on Windows command prompts to just become invisible. `reset` does the same job for us in this scenario so do that. --- command/hook_ui.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/command/hook_ui.go b/command/hook_ui.go index a41f40c98..bdc3e10b7 100644 --- a/command/hook_ui.go +++ b/command/hook_ui.go @@ -129,7 +129,7 @@ func (h *UiHook) PreApply( } h.ui.Output(h.Colorize.Color(fmt.Sprintf( - "[reset][bold]%s: %s[reset_bold]%s", + "[reset][bold]%s: %s[reset]%s", id, operation, attrString))) @@ -165,7 +165,7 @@ func (h *UiHook) stillApplying(id string) { } h.ui.Output(h.Colorize.Color(fmt.Sprintf( - "[reset][bold]%s: %s (%s elapsed)[reset_bold]", + "[reset][bold]%s: %s (%s elapsed)[reset]", id, msg, time.Now().Round(time.Second).Sub(state.Start), @@ -204,7 +204,7 @@ func (h *UiHook) PostApply( } h.ui.Output(h.Colorize.Color(fmt.Sprintf( - "[reset][bold]%s: %s[reset_bold]", + "[reset][bold]%s: %s[reset]", id, msg))) return terraform.HookActionContinue, nil @@ -221,7 +221,7 @@ func (h *UiHook) PreProvision( provId string) (terraform.HookAction, error) { id := n.HumanId() h.ui.Output(h.Colorize.Color(fmt.Sprintf( - "[reset][bold]%s: Provisioning with '%s'...[reset_bold]", + "[reset][bold]%s: Provisioning with '%s'...[reset]", id, provId))) return terraform.HookActionContinue, nil }