Print QR code on the terminal.
with Homebrew
$ brew install qrencode
from source
$ git clone https://github.com/fukuchi/libqrencode.git && cd libqrencode
$ ./configure && make
# make install
$ gcc -std=c99 -O3 -o qr qr.c -lqrencode
$ qr -h
qr -- print QR code on terminal
usage: $ qr [options] "string to encode"
or $ <some program> | qr [options]
options:
-v version [1-40]
-e EC level [lmqh][1-4]
-m mode [na8k] (number / alphabet / 8bit / kanji)
-s case sensitive mode
-b margin width
-h print help (this message)
$ qr "Hello"
or
$ echo "Hello" | qr
MIT
Copyright (c) 2015-2016 Hajime Suzuki