]> git.pld-linux.org Git - packages/parted.git/blame - parted-no_wrap.patch
- updated for 1.6.21
[packages/parted.git] / parted-no_wrap.patch
CommitLineData
1de85a6e
MM
1Only in parted-1.4.19-/parted: tags
2diff -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.112763 seconds and 4 git commands to generate.