mirror of https://github.com/aria2/aria2
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Only decrement cols if cols > 0 * src/ConsoleStatCalc.ccpull/1/head
parent
b5136c2028
commit
0894a7592c
|
@ -1,3 +1,8 @@
|
||||||
|
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Only decrement cols if cols > 0
|
||||||
|
* src/ConsoleStatCalc.cc
|
||||||
|
|
||||||
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Updated Polish, Catalan, French, Italian, Russian and Japanese
|
Updated Polish, Catalan, French, Italian, Russian and Japanese
|
||||||
|
|
|
@ -217,8 +217,10 @@ ConsoleStatCalc::calculateStat(const DownloadEngine* e)
|
||||||
if(ioctl(STDOUT_FILENO, TIOCGWINSZ, &size) == 0) {
|
if(ioctl(STDOUT_FILENO, TIOCGWINSZ, &size) == 0) {
|
||||||
cols = size.ws_col;
|
cols = size.ws_col;
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
// Windows terminal cannot handle at the end of line properly.
|
if(cols > 0) {
|
||||||
--cols;
|
// Windows terminal cannot handle at the end of line properly.
|
||||||
|
--cols;
|
||||||
|
}
|
||||||
#endif // __MINGW32__
|
#endif // __MINGW32__
|
||||||
}
|
}
|
||||||
#endif // HAVE_TERMIOS_H
|
#endif // HAVE_TERMIOS_H
|
||||||
|
|
Loading…
Reference in New Issue