OSDN Git Service

Make ---pretend-input-tty inhibit output word-wrap.
authorJim Meyering <jim@meyering.net>
Mon, 7 May 2007 14:51:29 +0000 (16:51 +0200)
committerJim Meyering <jim@meyering.net>
Mon, 7 May 2007 14:57:30 +0000 (16:57 +0200)
* parted/ui.c (screen_width): Use effectively-unlimited screen width
with ---pretend-input-tty, just as for '--script' mode.

parted/ui.c

index 25700ac..fb311e2 100644 (file)
@@ -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. */