Node:Transfer codes, Next:, Previous:Prompt codes, Up:Configuration



Transfer codes

These codes can be used in the transfer strings. For all codes, there may be an optional minimum field width. This is an integer between the '%' and the code character. For example will %17v be expanded to a visual progress bar with length 17. If the field width if negative (start with a minus), the string is left-justified, so using %-20S will show the total size, padded with spaces to 20 characters.


%r
source filename
%R
source filename w/path
%l
target filename
%L
target filename w/path
%s
size transferred so far
%S
total size (if available)
%e
ETA (time left)
%p
percent transferred so far
%%
percent sign
%b
transfer rate (Bps)
%B
transfer rate (Bps) or "stalled" if stalled
%t
time elapsed
%v
visual progress bar

Example:

transfer_string "%5p%% [%{\e[32m%}%25v%{\e[0m%}] %s/%S ETA %{\e[32m%}%e%{\e[0m%} %B"