Skip to content

Personal improvement for macOS I'm sharing :) #14

Description

@withs

index.js:148

let cmd = `osascript -e 'tell application "Terminal" to activate' -e 'tell application "Terminal" to do script "clear && cd ${filePath.dir} && time ./${filePath.name} && ${closeCmd} && while [ true ];do read -t 3 -n 1;if [ $? = 0 ];then exit;else continue;fi;done"'`
child_process.exec(cmd, options);

will produce a cleaner terminal and wait for enter at the end of the program to close the session and close the window instantly if you change this option in terminal preferences

Screenshot 2021-07-19 at 21 19 17

Preview

Screenshot 2021-07-19 at 21 18 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions