if (isatty(STDOUT_FILENO))
{
- cout << CLEARLN << cursor++ << " " << s;
+ cout << CLEARLN << s << " [";
// dont display percents if invalid
if (percent >= 0 && percent <= 100)
- cout << " [" << percent << "%]";
- cout << std::flush;
+ cout << percent << "%";
+ else
+ cout << ++cursor;
+ cout << "]";
}
else
- cout << '.' << std::flush;
+ cout << '.';
+ cout << std::flush;
}
// ----------------------------------------------------------------------------
if (isatty(STDOUT_FILENO))
{
- cursor++;
- cout << CLEARLN << cursor << " " << s;
+ cout << CLEARLN << s << " [" << ++cursor << "]";
cout << std::flush;
}
else
- {
- cout << '.';
- }
+ cout << '.' << std::flush;
}
// ----------------------------------------------------------------------------
return;
if (!isatty(STDOUT_FILENO))
- cout << label << ' ';
-
+ cout << label << " [";
+
if (is_tick)
display_tick(id, label);
else
if (progressFilter())
return;
- static AliveCursor cursor;
if (isatty(STDOUT_FILENO))
- cout << CLEARLN << cursor.done() << " " << label << std::flush << endl;
+ cout << CLEARLN << label << " [" << _("done") << "]";
else
- cout << cursor.done() << std::flush << endl;
+ cout << "]";
+ cout << endl << std::flush;
}
// progress with download rate
static AliveCursor cursor;
if (isatty(STDOUT_FILENO))
- cout << CLEARLN << cursor << " " << _("Downloading:") << " ";
+ cout << CLEARLN << ++cursor << " " << _("Downloading:") << " ";
else
cout << _("Downloading:") << " ";
if (verbosity() == DEBUG)
return;
}
- static AliveCursor cursor;
- cout << CLEARLN << cursor++ << " " << _("Downloading:") << " ";
+ cout << CLEARLN << _("Downloading:") << " ";
if (verbosity() == DEBUG)
cout << uri; //! \todo shorten to fit the width of the terminal
else
if (verbosity() < NORMAL)
return;
- static AliveCursor cursor;
if (isatty(STDOUT_FILENO))
{
- cout << CLEARLN << cursor.done() << " " << _("Downloading:") << " ";
+ cout << CLEARLN << _("Downloading:") << " ";
if (verbosity() == DEBUG)
cout << uri; //! \todo shorten to fit the width of the terminal
else