Skip to content

Commit

Permalink
Merge pull request #54 from LazyRen/master
Browse files Browse the repository at this point in the history
fix external terminal launching on mac(darwin)
  • Loading branch information
danielpinto8zz6 authored Apr 12, 2019
2 parents d1f6e8d + b02d581 commit 152c355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CompileRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ export class CompileRun {
return false;
}
case 'darwin':
exec(`osascript - e 'tell application "Terminal" to do script "./"${file.executable}" && read -n1 -p "Press any key to continue...""'`, { cwd: file.directory });
exec(`osascript -e 'do shell script "open -a Terminal " & "${file.directory}"' -e 'delay 0.3' -e 'tell application "Terminal" to do script ("./" & "${file.executable}") in first window'`);
return true;
}
return false;
}
}
}

0 comments on commit 152c355

Please sign in to comment.