Skip to content

Commit 49f5613

Browse files
committed
chore: fix color prompt
1 parent 6b113e7 commit 49f5613

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/pkg/shell/shell.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var (
3333
yellow = color.New(color.FgYellow).SprintFunc()
3434
green = color.New(color.FgGreen).SprintFunc()
3535
red = color.New(color.FgRed).SprintFunc()
36+
white = color.New(color.FgWhite).SprintFunc()
3637
)
3738

3839
func New(completion *completion.Completion) *Shell {
@@ -110,7 +111,10 @@ func getUserPromptFromStdin() string {
110111
func getUserActionFromStdin() string {
111112

112113
color.NoColor = false
113-
fmt.Printf("[%s]xecute, [%s]evise, [%s]uit? > ", green("E"), yellow("R"), red("Q"))
114+
fmt.Printf("%s%s%s%s%s%s%s",
115+
white("["), green("E"), white("]xecute, ["), yellow("R"), white("]evise, ["), red("Q"), white("]uit> "),
116+
)
117+
114118
color.NoColor = true
115119

116120
reader := bufio.NewReader(os.Stdin)

0 commit comments

Comments
 (0)