| # | 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: | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |