LoginSignup
1
0

More than 3 years have passed since last update.

longcatのオプションメモ

Last updated at Posted at 2020-06-22

mattn/longcatのオプションまとめ

image.png

インストール

$ go get github.com/mattn/longcat

オプション一覧

longcat [-h][-n,l int][-i float64][-r,R,H][-o filepath][-d dirpath][-t themename][-help][-themes][-pixterm][-dark][-ascii]

-h, help

  • Usageを見る

image.png

-n int

  • how long cat
  • 長さ指定(<-5でエラー)
  • def: 1

image.png

-l int

  • number of columns
  • 横に並ぶ数指定
  • def: 1

image.png

-i float64

  • rate of intervals
  • lオプションを使用した際のカラム同士の幅を指定
  • def: 1.0

image.png

-r

  • flip holizontal
  • 横に反転(左右反転)
  • def: false

image.png

-R

  • flip vertical
  • 縦に反転
  • def: false

image.png

-H

  • holizontal-mode
  • 左90°回転
  • def: false

image.png

-o filepath

  • output image file
  • 出力を引数のファイルに行う(PNGのバイナリを書き込み)
  • def: null(端末上に出力)

image.png
image.png

-d dirpath

  • directory of images(dir/*{1,2,3}.png))
  • 頭(1.png), 腹(2.png), 尾(3.png)の画像を含むディレクトリを指定
  • def: null(テーマに対応するディレクトリを走査)

-t themename

  • name of theme
  • テーマの指定
  • def: longcat

image.png

-themes

  • list themes
  • 使用可能なテーマの一覧を表示。
  • def:false

image.png

-pixterm

  • pixterm mode
  • pixtermを使用しASCII文字で端末上に画像を出力
  • def: false(sixelを使用し出力)

image.png

-dark

  • dark-mode(a.k.a. tacgnol theme)
  • -t tacgnolと同じ
  • def: false

image.png

-ascii

  • ascii mode
  • AA(/[ ',.037:;KOX\[cdklmox]/のみ)で表示
  • def: false

image.png


image.png

↑クリックする度に猫が動いてかわいい

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0