Use fgDefault instead of setting bg/fg.
This commit is contained in:
parent
5103541195
commit
d9055dbac6
1 changed files with 1 additions and 2 deletions
|
|
@ -191,10 +191,9 @@ proc promptListInteractive(question: string, args: openarray[string]): string =
|
|||
|
||||
# The selection loop
|
||||
while not selected:
|
||||
setForegroundColor(fgDefault)
|
||||
# Loop through the options
|
||||
for i, arg in args:
|
||||
setBackgroundColor(bgBlack) # We dont known theme of terminal, use Black.
|
||||
setForegroundColor(fgWhite)
|
||||
# Check if the option is the current
|
||||
if i == current:
|
||||
writeStyled("> " & arg & " <", {styleBright})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue