如何从命令行而不是GUI启动八度音程?

aka*_*d3b 23 terminal command-line-interface octave

我最近使用Homebrew在我的Mac上安装了GNU Octave,当我输入 octavebash时,它打开了octave-gui窗口.Octave GUI看起来很不吸引人(至少在Mac上)所以我想使用命令行界面.我的修复是要建立一个永久的别名~/.bash_profile这是alias octave='octave --no-gui'.

对此有更持久的解决方案吗?也就是说,如何在不调用GUI而不是CLI的情况下开始使用八度音程?有没有一个解决方案,我不必通过使用别名来做到这一点.(并不是说使用别名是一个大问题,但我只想更好地修复在命令行上启动Octave.)

小智 48

我也通过brew安装我发现只是运行:

octave-cli
Run Code Online (Sandbox Code Playgroud)

你会在终点看到八度音:

GNU Octave, version 4.2.0-rc2
Copyright (C) 2016 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
    ...
octave:1>
Run Code Online (Sandbox Code Playgroud)

  • @AzizJaved 命令是`brew install octave` 不是~~octave-cli~~ (2认同)