]> git.pld-linux.org Git - packages/parted.git/blob - parted-no_wrap.patch
- updated to 1.8.2, updated pl.po-update patch
[packages/parted.git] / parted-no_wrap.patch
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");
This page took 0.027016 seconds and 3 git commands to generate.