From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, geminoa@juno.ocn.ne.jp
Cc: spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp
Subject: [spp] [PATCH 3/3] docs: add description for topo_resize command
Date: Mon, 23 Apr 2018 15:22:37 +0900 [thread overview]
Message-ID: <20180423054630.6789-4-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <20180423054630.6789-1-ogawa.yasufumi@lab.ntt.co.jp>
In-Reply-To: <20180423054630.6789-1-ogawa.yasufumi@lab.ntt.co.jp>
From: ogawa.yasufumi@lab.ntt.co.jp
From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
docs/guides/commands/experimental.rst | 38 ++++++++++++++++++++++++++++++++++-
1 file changed, 37 insertions(+), 1 deletion(-)
diff --git a/docs/guides/commands/experimental.rst b/docs/guides/commands/experimental.rst
index 39531a2..8bb8e20 100644
--- a/docs/guides/commands/experimental.rst
+++ b/docs/guides/commands/experimental.rst
@@ -150,7 +150,7 @@ To generate a jpg image, run ``topo`` with the name ``network.jpg``.
topo_subgraph
-------------
-``topo_subgraph`` is a supplemental command for manageing subgraphs
+``topo_subgraph`` is a supplemental command for managing subgraphs
for ``topo``.
.. code-block:: console
@@ -218,6 +218,42 @@ delete subgraph ``guest_vm``.
spp > topo_subgraph del guest_vm
+topo_resize
+-----------
+
+``topo_resize`` is a supplemental command for changing the size of
+images displayed on the terminal with ``topo``.
+
+``topo`` displays an image generated from graphviz with default size.
+However, it is too small or large for some environments because it
+depends on the resolution actually.
+
+To check default size, run ``topo_resize`` with no arguments.
+It shows current size of the image.
+
+.. code-block:: console
+
+ # shows current size
+ spp > topo_resize
+ 60%
+
+You can resize it with percentage
+
+.. code-block:: console
+
+ # resize with percentage
+ spp > topo_resize 80%
+ 80%
+
+or ratio.
+
+.. code-block:: console
+
+ # resize with ratio
+ spp > topo_resize 0.8
+ 80%
+
+
load_cmd
--------
--
2.13.1
next prev parent reply other threads:[~2018-04-23 6:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-23 6:22 [spp] [PATCH 0/3] Misc improvements for spp controller ogawa.yasufumi
2018-04-23 6:22 ` [spp] [PATCH 1/3] controller: move import websocket ogawa.yasufumi
2018-04-23 6:22 ` [spp] [PATCH 2/3] controller: add topo_resize command ogawa.yasufumi
2018-04-23 6:22 ` ogawa.yasufumi [this message]
2018-05-03 15:58 ` [spp] [PATCH 0/3] Misc improvements for spp controller Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180423054630.6789-4-ogawa.yasufumi@lab.ntt.co.jp \
--to=ogawa.yasufumi@lab.ntt.co.jp \
--cc=ferruh.yigit@intel.com \
--cc=geminoa@juno.ocn.ne.jp \
--cc=spp@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).