Skip to content
Snippets Groups Projects
Commit d6ef16d6 authored by Stephen Smith's avatar Stephen Smith
Browse files

fixed fdt gui for cygwin

parent f1adabfd
No related branches found
No related merge requests found
......@@ -985,27 +985,29 @@ proc fdt_monitor { w cmd } {
if { $OSFLAVOUR != "cygwin" } {
set oldcursor [ $w configure -cursor { watch red white } ]
}
catch {
update idletasks
if { ! $debugging } {
set fd [ open "|$cmd" r ]
while { ( [ gets $fd line ] >= 0 ) } {
update idletasks
puts $line
catch {
update idletasks
if { ! $debugging } {
set fd [ open "|$cmd" r ]
while { ( [ gets $fd line ] >= 0 ) } {
update idletasks
puts $line
}
close $fd
}
close $fd
}
} junk
} junk
if { $OSFLAVOUR != "cygwin" } {
$w configure -cursor $oldcursor
} else {
catch { exec sh -c $cmd } junk
}
if { $junk != "" } {
MxPause "Errors: $junk"
}
puts "Done!"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment