|
Line
Link Here
|
| 0 |
-- ufed-0.35.orig/ufed.pl |
0 |
++ ufed-0.35/ufed.pl |
|
Lines 294-301
Link Here
|
| 294 |
# stderr output was not messing up the parsing of the results anymore. |
294 |
# stderr output was not messing up the parsing of the results anymore. |
| 295 |
# Thanks Brandon |
295 |
# Thanks Brandon |
| 296 |
|
296 |
|
| 297 |
$rc = system('exec 3> ' . $tempfile . ' ; DIALOG_ESC="" dialog ' |
297 |
my ($cmdfh, $cmdfile) = tempfile('dialog.XXXXXX', DIR => '/tmp', UNLINK => 1); |
| 298 |
. ' --output-fd 3' |
298 |
print $cmdfh ' --output-fd 3' |
| 299 |
. ' --separate-output ' |
299 |
. ' --separate-output ' |
| 300 |
. '--no-shadow --backtitle "Gentoo Linux USE flags editor ' |
300 |
. '--no-shadow --backtitle "Gentoo Linux USE flags editor ' |
| 301 |
. $version . '" ' |
301 |
. $version . '" ' |
|
Lines 305-311
Link Here
|
| 305 |
. $lines . ' ' |
305 |
. $lines . ' ' |
| 306 |
. $cols . ' ' |
306 |
. $cols . ' ' |
| 307 |
. ($lines - 8) . ' ' |
307 |
. ($lines - 8) . ' ' |
| 308 |
. $items) >> 8; |
308 |
. $items; |
|
|
309 |
$rc = system('exec 3> ' . $tempfile . ' ; DIALOG_ESC="" dialog --file ' . $cmdfile) >> 8; |
| 309 |
if ($rc == 1) |
310 |
if ($rc == 1) |
| 310 |
{ return 'CANCEL'; } |
311 |
{ return 'CANCEL'; } |
| 311 |
if ($rc == 255) |
312 |
if ($rc == 255) |