Using the above constants, push the generated string to "xsetroot -name" example below
proc setStatus(sStatus: string) =
discard execShellCmd("xsetroot -name " & "\"" & sStatus & "\"")
# Main loop
proc main() =
while true:
# create the string using themed arrows and functions
let sStatusString = fmt"{CIRCLE_GREEN_L}{getWeather()}{CIRCLE_GREEN_R}{CIRCLE_ORANGE_L}{getBatStatus()}{CIRCLE_ORANGE_R}{CIRCLE_BLUE_L}{getMemory()}{CIRCLE_BLUE_R}{CIRCLE_RED_L}{getDateTime()}{CIRCLE_RED_R}{RESET}"
# set the status
setStatus(sStatusString)
# sleep for n seconds
sleep(UPDATE_INTERVAL * 1000)
Expected behavior
I would expect the foreground and background color to reset to default color of the Nimdow bar when using "RESET" escape code, as screenshot below
Screenshots
This how the result should look like(I have manually inserted escape code for same color bar back ground)
and here it is working in the terminal using "reset" escape code
But due to what seems to be not supporting escape code it results in this
Describe the bug This may not be a bug, however it seems that Nimdow is not supporting the "reset" escape code, "\x1b[0m"
To Reproduce Steps to reproduce the behavior:
Using the above constants, push the generated string to "xsetroot -name" example below
Expected behavior I would expect the foreground and background color to reset to default color of the Nimdow bar when using "RESET" escape code, as screenshot below
Screenshots This how the result should look like(I have manually inserted escape code for same color bar back ground)
and here it is working in the terminal using "reset" escape code
But due to what seems to be not supporting escape code it results in this