Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
# stderr output was not messing up the parsing of the results anymore.
# Thanks Brandon
$rc = system('exec 3> ' . $tempfile . ' ; DIALOG_ESC="" dialog '
my ($cmdfh, $cmdfile) = tempfile('dialog.XXXXXX', DIR => '/tmp', UNLINK => 1);
. ' --output-fd 3'
print $cmdfh ' --output-fd 3'
. ' --separate-output '
. '--no-shadow --backtitle "Gentoo Linux USE flags editor '
. $version . '" '
. $lines . ' '
. $cols . ' '
. ($lines - 8) . ' '
. $items) >> 8;
. $items;
$rc = system('exec 3> ' . $tempfile . ' ; DIALOG_ESC="" dialog --file ' . $cmdfile) >> 8;
if ($rc == 1)
{ return 'CANCEL'; }
if ($rc == 255)