Author: jreidinger Date: Fri Apr 25 10:33:27 2008 New Revision: 9811 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9811&view=rev Log: change fd 1 to STDOUT_FILENO Modified: trunk/zypper/src/output/OutNormal.cc Modified: trunk/zypper/src/output/OutNormal.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/output/OutNormal.cc?rev=9811&r1=9810&r2=9811&view=diff ============================================================================== --- trunk/zypper/src/output/OutNormal.cc (original) +++ trunk/zypper/src/output/OutNormal.cc Fri Apr 25 10:33:27 2008 @@ -83,7 +83,7 @@ { static AliveCursor cursor; - if (isatty(1)) + if (isatty(STDOUT_FILENO)) { cout << CLEARLN << cursor++ << " " << s; // dont display percents if invalid @@ -101,7 +101,7 @@ { static AliveCursor cursor; - if (isatty(1)) + if (isatty(STDOUT_FILENO)) { cursor++; cout << CLEARLN << cursor << " " << s; @@ -122,7 +122,7 @@ if (progressFilter()) return; - if (!isatty(1)) + if (!isatty(STDOUT_FILENO)) cout << label << ' '; if (is_tick) @@ -148,7 +148,7 @@ return; static AliveCursor cursor; - if (isatty(1)) + if (isatty(STDOUT_FILENO)) cout << CLEARLN << cursor.done() << " " << label << std::flush << endl; else cout << cursor.done() << std::flush << endl; @@ -161,7 +161,7 @@ return; static AliveCursor cursor; - if (isatty(1)) + if (isatty(STDOUT_FILENO)) cout << CLEARLN << cursor << " " << _("Downloading:") << " "; else cout << _("Downloading:") << " "; @@ -169,7 +169,7 @@ cout << uri; //! \todo shorten to fit the width of the terminal else cout << zypp::Pathname(uri.getPathName()).basename(); - if (isatty(1)) + if (isatty(STDOUT_FILENO)) cout << " [" << _("starting") << "]"; //! \todo align to the right else cout << " [" ; @@ -182,7 +182,7 @@ { if (verbosity() < NORMAL) return; - if (!isatty(1)) + if (!isatty(STDOUT_FILENO)) { cout << '.' << std::flush; return; @@ -214,7 +214,7 @@ return; static AliveCursor cursor; - if (isatty(1)) + if (isatty(STDOUT_FILENO)) { cout << CLEARLN << cursor.done() << " " << _("Downloading:") << " "; if (verbosity() == DEBUG) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org