[Parted-commits] GNU Parted Official Repository: Changes to 'master'

Jim Meyering meyering at alioth.debian.org
Mon May 7 15:09:51 UTC 2007


 parted/ui.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a15d89c3a553f5cf17bf844d0e9ae4a1089fc66f
Author: Jim Meyering <jim at meyering.net>
Date:   Mon May 7 16:51:29 2007 +0200

    Make ---pretend-input-tty inhibit output word-wrap.
    * parted/ui.c (screen_width): Use effectively-unlimited screen width
    with ---pretend-input-tty, just as for '--script' mode.

diff --git a/parted/ui.c b/parted/ui.c
index 25700ac..fb311e2 100644
--- a/parted/ui.c
+++ b/parted/ui.c
@@ -213,7 +213,7 @@ screen_width ()
 {
         int    width = 0;
 
-        if (opt_script_mode)
+        if (opt_script_mode || pretend_input_tty)
                 return 32768;    /* no wrapping ;) */
 
 /* HACK: don't specify termcap separately - it'll annoy the users. */



More information about the Parted-commits mailing list