progressbar
progress bar is an api for drawing & updating progress bars.
create(x, y, w, h, fg, bg [, fill [, terminal]]) | Create a bar object |
---|
- create(x, y, w, h, fg, bg [, fill [, terminal]])Source
Create a bar object
Parameters
- x number X coordinate of the bar.
- y number Y coordinate of the bar.
- w number Width of the bar.
- h number Height of the bar.
- fg number The colour of the filled in bar.
- bg number The colour of the background of the bar.
- fill? number The pre filled portion of the bar. Defaults to 0.
- terminal? table The terminal to draw the bar on. Defaults to
term.current()
.
Types
bar
The progress bar object itself. Returns by create