如何从命令行而不是GUI启动八度音阶? [英] How can I start octave from the command line and not the GUI?

查看:52
本文介绍了如何从命令行而不是GUI启动八度音阶?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用Homebrew在Mac上安装了GNU Octave,并且一输入 octave变成bash,它打开了octave-gui窗口. Octave GUI看起来很吸引人(至少在Mac上是这样),所以我想使用命令行界面.我的解决方法是在~/.bash_profile中创建一个永久别名,该别名为alias octave='octave --no-gui'.

I recently installed GNU Octave on my Mac using Homebrew and as soon as I typed octave into bash, it opened up the octave-gui window. The Octave GUI looks quite unappealing (on a mac, at least) so I wanted to use the command line interface. My fix was to create a permanent alias in ~/.bash_profile which was alias octave='octave --no-gui'.

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

Is there a more permanent fix to this? That is, how can I start using octave without invoking the GUI instead of the CLI? Is there a solution where I don't have to do this by using an alias. (Not that using the alias is a big issue, but I just wanted a better fix to starting Octave on the command line itself.)

推荐答案

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

I also install through brew I found that just run:

octave-cli

您将在终端中看到八度:

you will see the octave in terminal:

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>

这篇关于如何从命令行而不是GUI启动八度音阶?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆