Print Unicode-friendly QR codes straight in your terminal.
$ make
- libqrencode
$ apt-get install libqrencode-dev$ brew install qrencode$ git clone https://github.com/fukuchi/libqrencode.git && cd libqrencode $ ./configure --prefix=/usr/local $ make # make install
# make install
or
$ sudo PREFIX=/usr/local make install
$ qr "Hello"
or
$ echo -n "Hello" | qr
Usage: qr [OPTIONS] STRING
or: cat FILE | qr [OPTIONS]
Options:
-m QR mode [na8k] (n = number, a = alphabet, 8 = 8-bit, k = Kanji)
-v QR version [1-40]
-e QR EC level [lmqh] or [1-4]
-l use two characters per block
-s use 4 blocks per character
-b border width [1-10] (the default is 2)
-i invert colors
-p force colorless output
-h print help (this message)
# make uninstall
$ make test
- autoconf
$ apt-get install autoconf$ brew install autoconf - zbar
$ apt-get install zbar-tools$ brew install zbar - imagemagick
$ apt-get install imagemagick$ brew install imagemagick - FreeMono font
$ apt-get install fonts-freefont-ttf$ brew tap homebrew/cask-fonts $ brew cask install font-freesans
QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.
The Unlicense