A terminal app for the morpho language. Improved unicode support requires an external library e.g. libgrapheme or libunistring.
Like morpho itself, Morpho-cli is released under an MIT license (see the LICENSE file for details). See the main morpho repository for information about contributing etc. Please report any issues or feature requests about the morpho-cli terminal app specifically here: suggestions for improvement are very welcome.
For this release, morpho can be installed on all supported platforms using the homebrew package manager. Alternatively, the program can be installed from source as described below.
The simplest way to install morpho-cli is through the homebrew package manager. To do so:
-
If not already installed, install homebrew on your machine as described on the homebrew website
-
Open a terminal and type:
brew update
brew tap morpho-lang/morpho
brew install morpho morpho-cli morpho-morphoview morpho-morphopm
If you need to uninstall morpho, simply open a terminal and type brew uninstall morpho-cli morpho-morphoview morpho
. It's very important to uninstall the homebrew morpho in this way before attempting to install from source as below.
To install, clone this repository:
git clone https://github.com/Morpho-lang/morpho-cli.git
and then,
cd morpho-cli
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make install
You may need to use sudo make install.
To run,
morpho6