Changelog
v2.5.0
Themeset.getThemeNames
).Changelog
v2.4.0
gauge.hide()
as it is somtetimes necessary when
your terminal is interleaving output from multiple filehandles (ie, stdout
& stderr).Changelog
v2.3.1
Changelog
v2.3.0
hasUnicode
, hasColor
and
platform
keys in order to override our guesses as to those values when
selecting a default theme from the themeset.process.stderr
now).setWriteTo(stream[, tty])
to change the output stream and,
optionally, tty.Changelog
v2.2.0
Changelog
v2.1.0
signal-exit
in our deps. <.< Thank you @KenanY for
finding this. Then I was lazy and made a new commit instead of using his
PR. Again, thank you for your patience @KenenY.has-color
module proved too magic for my needs, making assumptions
as to which stream we write to and reading command line arguments.Changelog
v2.0.0
This is a major rewrite of the internals. Externally there are fewer changes:
show
it may wate up to updateInterval
ms before it
actually prints an update. You override this behavior with the
fixedFramerate
option.ansi
ified stream, although it can be if you want (but we won't make
use of its special features).process.stdout
wasn't a
tty. Now it always defaults to enabled. If you want the previous
behavior set the enabled
option to process.stdout.isTTY
.Gauge.unicode
or Gauge.ascii
) then
you'll need to change your code. You can get the equivalent of the latter
with:
var themes = require('gauge/themes')
var unicodeTheme = themes(true, true) // returns the color unicode theme for your platform
The default themes no longer use any ambiguous width characters, so even
if you choose to display those as wide your progress bar should still
display correctly.