summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasufumi Ogawa <yasufum.o@gmail.com>2019-08-12 16:12:42 +0900
committerYasufumi Ogawa <yasufum.o@gmail.com>2019-08-13 17:08:08 +0900
commitc617c97e825596260aa06eb54099d07cdfaec0bb (patch)
tree4060b38b8a7aa9de41db4d3f2190753c56bf1ffa
parentfece7001dfb5871f43dfacc2dc04ef0daede1995 (diff)
downloadspp-c617c97e825596260aa06eb54099d07cdfaec0bb.zip
spp-c617c97e825596260aa06eb54099d07cdfaec0bb.tar.gz
spp-c617c97e825596260aa06eb54099d07cdfaec0bb.tar.xz
cli: revise description for imgcat
This update is to revise how to setup 3rd party tool `imgcat` for iTerm2 on MacOS. Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
-rw-r--r--docs/guides/commands/experimental.rst15
1 files changed, 9 insertions, 6 deletions
diff --git a/docs/guides/commands/experimental.rst b/docs/guides/commands/experimental.rst
index 576d11e..c328c73 100644
--- a/docs/guides/commands/experimental.rst
+++ b/docs/guides/commands/experimental.rst
@@ -27,7 +27,7 @@ Support four types of output.
This command uses `graphviz
<https://www.graphviz.org/>`_
-gfor generating topology file.
+for generating topology file.
You can also generate a dot formatted file or image files supported by
graphviz.
@@ -40,8 +40,9 @@ to output in a terminal.
imagemagick \
libsixel-bin
-MacOS is also supported optionally for using SPP CLI runs on a remote host.
-In this case, iTerm2 and imgcat are required.
+MacOS is also supported optionally for using topo runs on a remote host.
+In this case, iTerm2 and imgcat are required as described in the next
+section.
To output in browser with ``topo http`` command, install required packages
by using ``requirements.txt`` as described in
@@ -62,16 +63,18 @@ Output an image of network configuration in terminal.
spp > topo term
-There are few terminal applications to output image with ``topo``.
+There are few terminal applications supporting to output image with ``topo``.
You can use mlterm, xterm or other terminals supported by `img2sixel
<https://github.com/saitoha/libsixel>`_.
You can also use `iTerm2
<https://iterm2.com/index.html>`_ on MacOS.
-If you use iTerm2, you have to get a shell script
+If you use iTerm2, you need to downloada a shell script
``imgcat`` from `iTerm2's displaying support site
<https://iterm2.com/documentation-images.html>`_
and save this script as
-``spp/src/controller/3rd_party/imgcat``.
+``src/controller/3rd_party/imgcat`` with permission ``775``.
+``topo`` command tries to ``img2sixel`` first, then ``imgcat``
+in the ``3rd_party`` directory.
.. _figure_topo_term_exp: