update(numeric percent, numeric totalSizeKB, numeric completeSizeKB, numeric speedKBps)
Call me to update the screen.
Methods inherited from class lucee.Component
None
Constructor Detail
init
public init()
Property Detail
job
property any
job
Attributes:
access - public
required - false
returntype - any
inject - provider:InteractiveJob
serializable - true
print
property any
print
Attributes:
access - public
required - false
returntype - any
inject - Print
serializable - true
shell
property any
shell
Attributes:
access - public
required - false
returntype - any
inject - shell
serializable - true
system
property any
system
Attributes:
access - public
required - false
returntype - any
inject - system@constants
serializable - true
Method Detail
clear
public any clear()
formatExecTime
public any formatExecTime([any sec])
Parameters:
sec
formatSize
private any formatSize([any sizeKB], [any numberChars])
Parameters:
sizeKB
numberChars
update
public any update(numeric percent, numeric totalSizeKB, numeric completeSizeKB, numeric speedKBps)
Call me to update the screen. If another thread outputs to the console in the mean time, it will mess it up.
This method assumes it's on a fresh line with the cursor at the far left.
Will print a line break if the percent is 100