Programmatically launch Terminal.app with a specified command (and custom colors)

后端 未结 6 723
夕颜
夕颜 2020-12-08 01:03

I can launch an xterm from the command line (or a program, via a system call) like so:

/usr/X11/bin/xterm -fg SkyBlue -bg black -e myscript

6条回答
  •  被撕碎了的回忆
    2020-12-08 01:39

    You can also go into terminal GUI, completely configure the options to your heart's content, and export them to a ".terminal" file, and/or group the configurations into a Window Group and export that to a terminal file "myGroup.terminal". Then

    open myGroup.terminal

    will open the terminal(s) at once, with all your settings and startup commands as configured.

提交回复
热议问题