]>
Commit | Line | Data |
---|---|---|
1de85a6e MM |
1 | Only in parted-1.4.19-/parted: tags |
2 | diff -ur parted-1.4.19/parted/ui.c parted-1.4.19-/parted/ui.c | |
3 | --- parted-1.4.19/parted/ui.c Tue Sep 18 23:16:37 2001 | |
4 | +++ parted-1.4.19-/parted/ui.c Sun Oct 28 15:39:50 2001 | |
5 | @@ -91,6 +91,11 @@ | |
6 | { | |
7 | int width = 0; | |
8 | ||
9 | + /* don't wrap lines if we are not writing to terminal | |
10 | + * (crucial for scripting) */ | |
11 | + if (!isatty(fileno(stdout))) | |
12 | + return 9999; | |
13 | + | |
14 | /* HACK: don't specify termcap separately - it'll annoy the users. */ | |
15 | #ifdef HAVE_LIBREADLINE | |
16 | width = tgetnum ("co"); |