denosaurs / wait

🌀 Minimal terminal spinner
https://deno.land/x/wait
MIT License
60 stars 5 forks source link

Not loading spinner #6

Closed denyncrawford closed 3 years ago

denyncrawford commented 3 years ago

It doesn't load any spinner when I specify it, it only loads the line spinner:

My example:

const spinner = wait({
  text: "Iniciando servidor en el puerto 3000",
  spinner: "dots2"
}).start();

await delay(2000)

spinner.text = "Espera mientras se genera la url del servidor...";

Or using the spinner object:

const spinner = wait({
  text: "Iniciando servidor en el puerto 3000",
  spinner: {
    interval: 80,
    frames: ["⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"],
  }
}).start();

...

This is what I get:

image

When I do a log of my Spinner.spinner: { interval: 130, frames: [ "-", "\\", "|", "/" ] }

eliassjogreen commented 3 years ago

Fixed by 0.1.10, requires [Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8 to be run on windows for all utf-8 character spinners to work correctly