筆記一下方便畫ascii 流程圖的方法(例如RFC 文件內的流程圖,或是寫在程式註解內的)
- graph easy: 流程圖:文字轉ascii
- 安裝方式參考: https://blog.csdn.net/u012247418/article/details/84674991
- sudo apt-get install cflow graphviz perl cpan
- sudo perl -MCPAN -e shell
- install Graph::Easy <== 安裝需要一陣子
- grapy-easy xxx.txt
- xxx.txt類似這樣
- [a]->[b]->[c]->[d]->[e]
- [b]->[d]
- [b]->[e]
- [e]->[a]
- 輸出
+---------------------------------------+ | | | | | +-------------------+ | v | v | +---+ +---+ +---+ +---+ +---+ | a | --> | b | --> | c | --> | d | --> | e | +---+ +---+ +---+ +---+ +---+ | ^ +-----------------------------+
雖然graph easy很強大,可以調整很多參數,
但若是簡單的圖,畫完後直接用下列tool 調整一下就很快了
- 線上ascii編輯器
沒有留言:
張貼留言