ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/utils/ProgressBar.cpp
(Generate patch)

Comparing trunk/src/utils/ProgressBar.cpp (file contents):
Revision 1419 by gezelter, Mon Mar 22 19:21:22 2010 UTC vs.
Revision 1420 by gezelter, Fri Mar 26 18:42:55 2010 UTC

# Line 76 | Line 76 | namespace OpenMD {
76   #endif
77   #ifndef IS_MPI
78      // get the window width:
79 <    struct ttysize ts;
80 <    ioctl(0, TIOCGWINSZ, &ts);
81 <    width = ts.ts_cols;
79 >    struct winsize w;
80 >    ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
81 >    width = w.ws_col;
82   #endif  
83  
84      // We'll use:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines