whitespace
This commit is contained in:
parent
ccced38428
commit
963229dce8
@ -178,12 +178,12 @@ static int get_term_columns (FILE *stream)
|
|||||||
#if defined(TIOCGSIZE) /* BSD */
|
#if defined(TIOCGSIZE) /* BSD */
|
||||||
struct ttysize ts;
|
struct ttysize ts;
|
||||||
|
|
||||||
if (ioctl(fileno (stream), TIOCGSIZE, &ts) == 0)
|
if (ioctl (fileno (stream), TIOCGSIZE, &ts) == 0)
|
||||||
return (ts.ts_cols);
|
return (ts.ts_cols);
|
||||||
#elif defined(TIOCGWINSZ) /* Linux */
|
#elif defined(TIOCGWINSZ) /* Linux */
|
||||||
struct winsize ws;
|
struct winsize ws;
|
||||||
|
|
||||||
if (ioctl(fileno (stream), TIOCGWINSZ, &ws) == 0)
|
if (ioctl (fileno (stream), TIOCGWINSZ, &ws) == 0)
|
||||||
return (ws.ws_col);
|
return (ws.ws_col);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user